Learn R Programming

EMSaov (version 2.3)

EMSanova: 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

Run this code
# NOT RUN {
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                  
# }

Run the code above in your browser using DataLab