Standard errors in AOCTOOL
文章推薦指數: 80 %
I'm having a problem with aoctool. I'm testing differences in slope for several groups (ie, experiment and controls); each set of measurements are taken at ... comp.soft-sys.matlab Discussion: StandarderrorsinAOCTOOL (toooldtoreply) Tom 2011-07-2523:28:10UTC Permalink I'mhavingaproblemwithaoctool.I'mtestingdifferencesinslopeforseveralgroups(ie,experimentandcontrols);eachsetofmeasurementsaretakenatthesamesettings(dependentvariables).Inotherwords,foreachx-valueIhavethreey-valuesandwanttofitlinestoeachgroup.Inoticethatwhenthisisthecase,thestandarderrors,andthustheconfidenceintervalsinmultcompare,arethesameforeachgroup,eveniftheyshouldnotbe.Forexample,considerthefollowingdummydata:x=-10:10;y1=2*x+6*randn(1,21);y2=4*x+4*randn(1,21);y3=6*x+2*randn(1,21);groups=[1*ones(1,21)2*ones(1,21)3*ones(1,21)];aoctool([xxx],[y1y2y3],groups);Wehavetworegressionswithdefinitelydifferentstandarderrors,butinthecoefficienttable,thestandarderrorofbothslopeandinterceptarethesameforbothgroupsandthe"sameline"regression(Choosethe"SeparateLines"modeltoseethis).Ifyouuselscovtofittothelinesindividually,thestandarderrorsareobviouslydifferent.Iamnotreallyastatsguy,soImaybeunawareofanassumptionmadehere,orperhapsImisunderstandwhatthoseSEsare-Ithoughttheywerethestandarderrorofdifferencebetweenthe'sameslope'fitandtheindividualfits.Ifthex-coordinatesforthetwogroupsaredifferent,theSEsaredifferent,butstillmoresimilarthanIwouldexpect.Forexample:x1r=rand(1,21)*20-10;x2r=rand(1,21)*20-10;x3r=rand(1,21)*20-10;y1r=2*x1r+6*randn(1,21);y2r=4*x2r+4*randn(1,21);y3r=6*x3r+2*randn(1,21);Becauseofthisissue,IcannottrusttheANCOVAresults,orthecomparisonbetweenslopes.Anyideas?Thanks! TomLane 2011-07-2715:00:34UTC Permalink PostbyTomI'mhavingaproblemwithaoctool.I'mtestingdifferencesinslopeforseveralgroups(ie,experimentandcontrols);eachsetofmeasurementsaretakenatthesamesettings(dependentvariables).Inotherwords,foreachx-valueIhavethreey-valuesandwanttofitlinestoeachgroup.Inoticethatwhenthisisthecase,thestandarderrors,andthustheconfidenceintervalsinmultcompare,arethesameforeachgroup,evenif...PostbyTomIfthex-coordinatesforthetwogroupsaredifferent,theSEsareTheaoctoolfunctionimplementstheusualanalysisofcovariancemodel,whichhasanassumptionofequalvariancesacrossgroups.Itsoundslikethat'snotwhatyouwant.Ifyoudidwantthat,theappropriatethingwouldbetocomputeasingleerrorvarianceestimate.Thestandarderrorsarefunctionsofthatvarianceestimateandthexvalues.Ifthexvaluesarethesameacrossgroups,thenthecoefficientstandarderrorswouldbethesameacrossgroupsasyoufound.That'swhataoctooldoes.Ifyouhavesomepriorknowledgeofthevariancesofthedifferentgroups,youcoulddefineweightshasthereciprocalsofthesevariances.Thelscovandglmfitfunctionssupportweights.You'dhavetosetuptheXmatrixtoincludebothyourcurrentxvariableandindicatorvariablesforthecategories.Thedummyvarfunctionmightbeofusethere.Ifyoudon'tknowtheweights,Ibelievepeoplesometimesfitamodel,estimatethevariancesfromtheresiduals,usethesevariancestodefineweights,re-fit,anditerate.I'venevertriedthatmyself.--Tom 1Reply 17Views Permalinktothispage Disableenhancedparsing ThreadNavigation Tom 2011-07-2523:28:10UTC TomLane 2011-07-2715:00:34UTC about-legalese Loading...
延伸文章資訊
- 1aoctool : Advent of Code Downloader / Initializer - GitHub
aoctool : Advent of Code Downloader / Initializer. The AOC tool is an opinionated and configurabl...
- 2Standard errors in AOCTOOL
I'm having a problem with aoctool. I'm testing differences in slope for several groups (ie, exper...
- 3saving an aoctool figure in matlab - Stack Overflow
- 4matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB ...
matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB代码. weixin_39898733 于 2020-11-22 03:24:37 发布 174 收藏 ...
- 5单因素协方差分析+aoctool+MATLAB代码 - 知乎专栏
单因素协方差分析+aoctool+MATLAB代码 · 直线回归关系 · 对回归关系假设检验,Slope为直线斜率,p值为0,小于默认0.05,则认为需要矫正 · 说明xx和group均有 ...