MATLAB: Using aoctool for a 1-way ANCOVA (+plot)
文章推薦指數: 80 %
MATLAB: Using aoctool for a 1-way ANCOVA (+plot). plotstatistics. I have two groups of subjects, each with scores on a memory task and on an IQ test. Skiptocontent plotstatistics Ihavetwogroupsofsubjects,eachwithscoresonamemorytaskandonanIQtest.Iwouldliketocheckwhetherthere'sasignificantgroupdifferenceinthememorymeasurewhilecontrollingforIQ. Ireckonedthatforthat,Ineeda1-waybetween-subjectsANCOVA,withDV=memoryscore,predictor=group,andcovariate=IQ.TheMatlabcommandtoachievethisappearstobeaoctool. Followingtheexampleinits(ratherincomplete)documentation,andhavingcodedgroupasacategoricalvariable,Ityped: [h,a,c,s]=aoctool(PIQ,mem,group,0.05,'PIQ','mem','group','off','separatelines'); However,thatjustgivesmetheslopes&interceptsforthegroups,whichdoesnothelpme.WhatIneedisacategoricalcomparisonbetweenthegroups,ratherthanaregressionbetweenxvsy,astheaoctoolexampleseemstoputit. HowcanIuseaoctoolto: obtainap-valueforthebetween-subjectseffectofthegroupfactor? scatter-plotthememoryscoreasafunctionofIQ,withgroupscolor-codedasinthedocumentationexample?Theabovecommanddoesreturnafigurehandleh,butit'sanemptymatrix(eveninthecaseoftheexampledataset!),andIdon'tthinkitcanbeusedtobaseaplotonit. Thanksforanyhelp! BestAnswer Hey,Unfortunately,Ialsodonotknowhowtogetwhatyouwantusingaoctool.However,giventhatnooneelsehasrepliedsofar,Ithoughtyoumightbeinterestedinalternativeways...AsIjusttriedtosolveasimilarproblem,Icameacrossthesetwosolution,whichbothworkfineforcarryingoutanACOVAasyoudescribed:1.Thereisatoolonmatlabcentralfileexchange,whichIfoundveryusefulandeasytouse:https://de.mathworks.com/matlabcentral/fileexchange/27014-mancovan2.BraniVidakovicgivescodeexamplesinthebook"EngineeringBiostatistics:AnIntroductionusingMATLABandWinBUGS".Ithink,Example14.8.describesalmostexactlywhatyouwant,soyoucanjustre-programwhatisshowninthebook.Best,Matthias RelatedSolutionsMATLAB:ComparetheMeansbetweenindividualgroupsinanova Seeifthemultcompare(link)functionwilldowhatyouwant. MATLAB:CurveFittingDiscrepancies–ExponentialversusLog-Transformed Haveyouseenthis?http://www.mathworks.com/products/statistics/demos.html?file=/products/demos/shipping/stats/xform2lineardemo.html RelatedQuestion3-wayRepeatedMeasuresANOVApairwisecomparisonsusingmultcompareANCOVA(aoctool)with2ormorecovariatesDelimitatextfilebasedoncolumnsofcellsHowtomakeallpossiblepairwisecomparisonsforthethree-wayrepeatedmeasuresANOVA
延伸文章資訊
- 1aoctool - Interactive analysis of covariance - MathWorks
aoctool(x,y,group) fits a separate line to the column vectors, x and y , for each group defined b...
- 2Interactive analysis of covariance (ANCOVA) - Bradley Monk
aoctool(x,y,group) fits a separate line to the column vectors, x and y, for each group defined by...
- 3matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB ...
matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB代码. weixin_39898733 于 2020-11-22 03:24:37 发布 174 收藏 ...
- 4单因素协方差分析+aoctool+MATLAB代码 - 知乎专栏
单因素协方差分析+aoctool+MATLAB代码 · 直线回归关系 · 对回归关系假设检验,Slope为直线斜率,p值为0,小于默认0.05,则认为需要矫正 · 说明xx和group均有 ...
- 5MATLAB: Using aoctool for a 1-way ANCOVA (+plot)
MATLAB: Using aoctool for a 1-way ANCOVA (+plot). plotstatistics. I have two groups of subjects, ...