reganova: Expanded ANOVA Table

Description Usage Arguments Value References See Also Examples

Description

Calculate the ANOVA table for an object of class lm. The results are identical to those obtained from anova, but an extra line is included that prints the total degrees of freedom and the total sum of squares.

Usage

1
reg.anova(lm.out)

Arguments

lm.out

An object of class lm (i.e., the results from the linear model fitting routine such that the anova function can act upon).

Value

reg.anova returns exactly the same output as the anova function applied to an object of class lm, but includes an extra line that summarizes the total source of variability.

References

Young, D. S. (2017), Handbook of Regression Methods, CRC Press.

See Also

anova, lm

Examples

1
2
3
4
5
6
7
8
 
## Applied to the toy dataset.

data(toy)

lm.out <- lm(y ~ x, data = toy)
anova(lm.out)
reg.anova(lm.out)

HoRM documentation built on March 11, 2021, 9:07 a.m.