ANCOVA (aoctool) with 2 or more covariates

조회 수: 70 (최근 30일)
Right Grievous
Right Grievous 2013년 11월 25일
편집: Adam Danz 2022년 1월 2일
Is there any way to run an ANCOVA in Matlab with more than one covariate? The aoctool function only seems able to accept an IV a DV and one covariate but I have 2, possibly 3 covariates.
I can't seem to find if this is possible using aoctool or if there is another way to do it in Matlab...
As always, any help would be greatly appreciated,
Rod.

채택된 답변

Right Grievous
Right Grievous 2013년 12월 2일
I'll answer my own question... again.
aoctool can't take more than one covariate and there's no way round it. However, there is a file on the file exchange called MANCOVAN which can do all sorts of things - including an ANCOVA with more than one covariate.
That function does not output the stats array required by multcompare though, so really it's a bit of a dead end. Matlab really sucks sometimes.
  댓글 수: 5
Adam Danz
Adam Danz 2019년 4월 30일
편집: Adam Danz 2022년 1월 2일
Here's a demo provided in the Matlab documentation that demonstrates the use of ANOVAN() to perform ANCOVA (matlab uses the acronym ANOCOVA, same thing). And yes, I think you can have multiple covariates by labeling multiple variables as continuous.
Alex Sabrekov
Alex Sabrekov 2022년 1월 1일
But the bad thing is anovan() doesn't give enough statistics to compare slopes and intersepts. It can give you just coefficients for all terms. So if you have more than one categorial IV or covariate, you can't obtain detail statics on slopes in matlab, because aoctool() performs analysis with just one categorial IV and one covariate.
It is a pity for me as a matlab patriot, since ANCOVA is a popular instrument.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by