EMSanova: Calculate ANOVA table with EMS

Description Usage Arguments Examples

View source: R/EMSanova.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
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                  

EK-Lee/EMSaov documentation built on May 6, 2019, 3:06 p.m.