Skip to contents

Re-runs linear_regression with a modified formula or arguments, e.g. update(model, . ~ . + income); step() works through it. Needs the data by name: a model fitted inside a %>% pipe cannot be updated.

Usage

# S3 method for class 'linear_regression'
update(object, formula., ..., evaluate = TRUE)

Arguments

object

A linear_regression result (also grouped or pairwise).

formula.

Changes to the formula (see stats::update()).

...

Further arguments of linear_regression() to change.

evaluate

If FALSE, return the updated call.

Value

A new linear_regression result (or the call).