reganova function

Expanded ANOVA Table

Expanded ANOVA Table

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.

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). ## Returns

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. ## See Also

anova, lm

References

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

Examples

## Applied to the toy dataset. data(toy) lm.out <- lm(y ~ x, data = toy) anova(lm.out) reg.anova(lm.out)