Wrapper for anova.lm
in package stats
that halts execution
if unsupported input is detected.
# S3 method for lmm
anova(object, ...)
Returns appropriate analysis of variance or halts if unsupported input is detected.
object fitted by lm
, lmer
or similar.
possible additional argument to underlying functions.
Kristian Hovde Liland
mixlm <- lm(y~x*r(z),
data = data.frame(y = rnorm(8),
x = factor(c(rep(1,4),rep(0,4))),
z = factor(rep(c(1,0),4))))
anova(mixlm)
Run the code above in your browser using DataLab