EMSanova {EMSaov}R Documentation

Calculate ANOVA table with EMS

Description

Calculate ANOVA table with EMS for various experimental design - factorial design, nested design, mixed effect model, etc.

Usage

EMSanova(formula,data,type=NULL,nested=NULL,
                 level=NULL,approximate=FALSE)

Arguments

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"

Examples

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                  

[Package EMSaov version 2.3 Index]