EMSanova {EMSaov} | R Documentation |
Calculate ANOVA table with EMS for various experimental design - factorial design, nested design, mixed effect model, etc.
EMSanova(formula,data,type=NULL,nested=NULL, level=NULL,approximate=FALSE)
formula |
model formula |
data |
data frame for ANOVA |
type |
the list of fixed/random for each factor. "F" for the fixed effect, "R" for the random effect |
nested |
the list of nested effect |
level |
list of model level |
approximate |
calculate approximated F for "TRUE" |
data(baseball) anova.result<-EMSanova(velocity~Group+Subject+test,data=baseball, type=c("F","R","F"), nested=c(NA,"Group",NA), level=c(1,1,2)) anova.result