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                  

Example output

               Df         SS         MS   Fvalue  Pvalue Sig Model.Level
Group           2  28.139200 14.0696000   1.0426  0.3729               1
Subject(Group) 18 242.905914 13.4947730  115.517 <0.0001 ***           1
test            1  21.257486 21.2574857 181.9669 <0.0001 ***           2
Group:test      2  12.381943  6.1909714  52.9955 <0.0001 ***           2
Residuals      18   2.102771  0.1168206                                2
                                         EMS
Group          Error+2Subject(Group)+14Group
Subject(Group)         Error+2Subject(Group)
test                            Error+21test
Group:test                 Error+7Group:test
Residuals                              Error

EMSaov documentation built on May 2, 2019, 8:31 a.m.

Related to EMSanova in EMSaov...