AnovaMix | R Documentation |
Uses output from lm() in mixlm package to compute ANOVA table, variance components and errors.
AnovaMix(object, SStype)
object |
object fitted by lm (mixlm package) containing at least one random effect. |
SStype |
type of sums-of-squares (I/II/III) for Analysis of Variance. |
AnovaMix
can either be invoked directly or through the Anova() function (with type III error).
lm |
linear model fitted by lm in package mixlm. |
anova |
ANOVA table. |
err.terms |
|
denom.df |
|
restricted |
|
exp.mean.sq |
|
var.comps |
|
random.effects |
|
ind.randoms |
|
formula.text |
|
Only balanced models are fully supported.
Kristian Hovde Liland
print.AnovaMix
, Anova
, lm
mydata <- data.frame(y = rnorm(12),
x = factor(c(rep(2,4),rep(1,4),rep(0,4))),
z = factor(rep(c(1,0),6)))
mixlm <- lm(y~x*r(z),
data = mydata)
Anova(mixlm,type="III")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.