lb_anovat_lm | R Documentation |
Create a standard ANOVA table for linear regression
lb_anovat_lm(object, reg_collapse = TRUE, ...)
object |
a Linear Regression object as returned from stats::lm() |
reg_collapse |
Logical variable to collapse the elements in the table. Set to FALSE to see each variable and interaction in the model. |
... |
other potential arguments |
This function is by Russell Steel for creating an ANOVA table for a full model linear regression.
a data frame with class anova that shows the Df, SS, MS, F and P for the regression
See https://community.rstudio.com/t/overall-anova-table-in-r/97896 and https://community.rstudio.com/t/anova-table-for-full-linear-model/42074/3
lb_anovat_lm(object = lm(mpg ~ disp * cyl, data = mtcars), reg_collapse = TRUE) lb_anovat_lm(object = lm(mpg ~ disp * cyl, data = mtcars), reg_collapse = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.