
Update and re-fit a linear_regression model
Source:R/linear_regression.R
update.linear_regression.RdRe-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_regressionresult (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.