anova.lm: Analysis of variance (sequential SS)

Description Usage Arguments Value Author(s) See Also Examples

Description

Wrapper for anova.lm in package stats that halts execution if unsupported input is detected.

Usage

1
2
## S3 method for class 'lm'
anova(object, ...)

Arguments

object

object fitted by lm, lmer or similar.

...

possible additional argument to underlying functions.

Value

Returns appropriate analysis of variance or halts if unsupported input is detected.

Author(s)

Kristian Hovde Liland

See Also

lm

Examples

1
2
3
4
5
6
7
8
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))))
## Not run: 
anova(mixlm)

## End(Not run)

Example output

Attaching package: 'mixlm'

The following objects are masked from 'package:stats':

    glm, lm

Analysis of Variance Table

Response: y
          Df Sum Sq Mean Sq F value Pr(>F)
x          1 1.0660 1.06599  0.9692 0.3806
z          1 2.6798 2.67982  2.4366 0.1936
x:z        1 0.2097 0.20971  0.1907 0.6849
Residuals  4 4.3993 1.09983               

mixlm documentation built on May 2, 2019, 6:08 p.m.

Related to anova.lm in mixlm...