print.AnovaMix | R Documentation |
Prints relevant information like the ANOVA table, variance components and errors.
## S3 method for class 'AnovaMix'
print(x, ...)
## S3 method for class 'AnovaMixMLM'
print(x, var, ...)
x |
|
var |
which response variable to print. |
... |
Additional arguments (not supported yet). |
Only balanced models are fully supported.
Kristian Hovde Liland
AnovaMix
, lm
, Anova
# Single response (AnovaMix)
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,type="III")
# Double response (AnovaMixMLM)
mydata <- data.frame(Y = I(as.matrix(cbind(y1=rnorm(12), y2=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.