search for: mymeasure

Displaying 1 result from an estimated 1 matches for "mymeasure".

Did you mean: measure
2010 Dec 26
2
Doing a mixed-ANOVA after accounting for a covariate
...I noticed for handling covariates (i.e. ANCOVA, including the ones in Faraway's "Practical regression and anova using r") use lm(), but this doesn't handle repeated-measures. I thought of a solution in the form of first running a regression on the covariate: > cov.accnt = lm (myMeasure ~ myCovMeasure, data=dat) and then run the aov() on the residuals: > m.aov = aov (cov.accnt$residuals ~ withinVar*betweenVar + Error(subj/withinVar, data=dat) Does it seem to be a valid answer to my problem? Is there an existing function that can do this (perhaps more appropriately)? Thank y...