check_predictors: Starting with a base linear regression, check_predictors...

Description Usage Arguments Value Examples

View source: R/check_predictors.R

Description

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

Usage

1

Arguments

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

Value

A tibble with each tested variable, whether it was good or bad for Adjusted RSquared, and the exact change in Adjusted RSquared.

Examples

1
check_predictors(mtcars, mpg ~ cyl, hp, am)

jameshasbany/fastlm documentation built on July 26, 2020, 9:40 a.m.