# (mostly) taken from Quick R website.
# Data input: generic
# Red indicates stuff you have to edit.
Y <- cbind(infile$dep.var1,infile$dep.var2,...,infile$dep.var)# dependent variables have to be cbind-ed together.
fit <- manova(Y ~ indep.var1*indep.var2*indep.var3*...*indep.var)
summary(fit, test="Pillai")
No comments:
Post a Comment