Description Usage Arguments Value Examples
View source: R/check_predictors.R
Starting with a base linear regression, check_predictors takes turns adding a variables from a list of variables to it one at a time, calculating the change in RSquared Adjusted for each variable addition to to the base regression, and showing the user if the variable was good or bad for the RSquared Adjusted
1 | check_predictors(df, model, ...)
|
df |
A dataframe |
model |
A model object of class "lm" or a valid formula. |
... |
Any number of (unquoted) variables to be checked as possible additions to the model |
A tibble with each tested variable, whether it was good or bad for Adjusted RSquared, and the exact change in Adjusted RSquared.
1 | check_predictors(mtcars, mpg ~ cyl, hp, am)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.