Skip to content
Prev 80901 / 398502 Next

Repeates Measures MANOVA for Time*Treatment Interactions

Jarrett Byrnes <redbeard at arrr.net> writes:
cbind() would be more like it
No... idata is the *intra*-block structure, so it should just be your
five times. I'm somewhat baffled that you're getting away with
supplying a data frame that doesn't have the right number of rows, but
maybe that's because you're supplying the transposed matrix as a
response. 

Try 

mlmfit <- lm(response ~ Treatment)
mlmfit1 <- lm(response ~ 1)
mlmfit0 <- lm(response ~ 0)
 
Then 

anova.mlm(mlmfit, mlmfit1, X=~1, test="Spherical")

tests whether time contrasts depend on treatment, which is the
time*treatment effect.

anova.mlm(mlmfit, mlmfit1, M=~1) 

is the test for overall treatment effect

and 

anova.mlm(mlmfit1, mlmfit0, X=~1, test="Spherical")

is the test for overall time effect.

(If Time1 is a pre-randomization baseline measurement you should
consider including it as a covariate, but that is another matter)