add_one_predictor: Helper function that adds one predictor to a model.

Description Usage Arguments Value

View source: R/check_predictors.R

Description

Helper function that adds one predictor to a model.

Usage

1
add_one_predictor(df, model, new_predictor)

Arguments

df

A dataframe

model

A model object of class "lm" or a valid formula.

new_predictor

An (unquoted) variable to try in the model

Value

A new model object


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