Learn R Programming

mixlm (version 1.4.3)

print.AnovaMix: Print method for objects of class(AnovaMix) and class(AnovaMixMLM)

Description

Prints relevant information like the ANOVA table, variance components and errors.

Usage

# S3 method for AnovaMix
print(x, ...)
# S3 method for AnovaMixMLM
print(x, var, ...)

Arguments

x

AnovaMix(MLM) object to be printed.

var

which response variable to print.

...

Additional arguments (not supported yet).

Author

Kristian Hovde Liland

See Also

AnovaMix, lm, Anova

Examples

Run this code
# 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")

Run the code above in your browser using DataLab