expand_Anova {sdamr} | R Documentation |
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), ...)
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
Value
Object of class anova returned by car::Anova
See Also
car::Anova()
for more information about the Anova tables, and stats::lm()
for information about how to specify the model
Examples
data("tetris2015")
mod <- lm(Days_One_to_Seven_Number_of_Intrusions ~ Condition, data=tetris2015)
car::Anova(mod,type=3) # default type III Anova table
expand_Anova(mod,type=3)
[Package sdamr version 0.2.0 Index]