Learn R Programming

mixlm (version 1.0.8.1)

AnovaMix: Mixed model least squares analysis of variance (mixed ANOVA).

Description

Uses output from lm() in mixlm package to compute ANOVA table, variance components and errors.

Usage

AnovaMix(object)

Arguments

object
object fitted by lm (mixlm package) containing at least one random effect.

Value

  • lmlinear model fitted by lm in package mixlm.
  • anovaANOVA table.
  • err.termslist of denominator information for F tests.
  • denom.dfnumeric of denominator degrees of freedom for F tests.
  • restrictedlogical indicating if ANOVA used restricted modelling.
  • exp.mean.sqcharacter containing expected mean squares.
  • var.compsnumeric containing variance components.
  • random.effectscharacter containing the random effects.
  • ind.randomsnumeric with indices of random effects in the model.
  • formula.textcharacter containing all effects of the model.

encoding

latin1

Details

AnovaMix can either be invoked directly or through the Anova() function (with type III error).

See Also

print.AnovaMix, Anova, lm

Examples

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

Run the code above in your browser using DataLab