expand_Anova: Expand all contrast terms in car::Anova
Description
expand_Anova is an experimental function to add more detailed results to those returned by car::Anova. In particular, expand_Anova aims to provide test results for all individual contrasts assigned to the factors in a linear model, in addition to the omnibus tests returned by car::Anova.
Usage
expand_Anova(mod, type = c("III", "II", 3, 2), ...)
Value
Object of class anova returned by car::Anova
Arguments
mod
A model of class lm (see ?stats::lm)
type
SS Type (see ?car::Anova)
...
Further arguments passed to Anova
Details
This is an experimental function
See Also
car::Anova() for more information about the Anova tables, and stats::lm() for information about how to specify the model
data("tetris2015")
mod <- lm(Days_One_to_Seven_Number_of_Intrusions ~ Condition, data=tetris2015)
car::Anova(mod,type=3) # default type III Anova tableexpand_Anova(mod,type=3)