Skip to content
Prev 321851 / 398500 Next

Mancova with R

On Apr 17, 2013, at 16:47 , R?mi Lesmerises wrote:

            
You can fit two models and compare them with (say)

fit1 <- lm(as.matrix(Y) ~  x+z)
fit2 <- lm(as.matrix(Y) ~  x)
anova(fit1, fit2, test="Wilks")

or, removing terms sequentially:

anova(fit1, test="Wilks")