
Update and re-fit a logistic_regression model
Source:R/logistic_regression.R
update.logistic_regression.RdRe-runs logistic_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 'logistic_regression'
update(object, formula., ..., evaluate = TRUE)Arguments
- object
A
logistic_regressionresult (also grouped).- formula.
Changes to the formula (see
stats::update()).- ...
Further arguments of
logistic_regression()to change.- evaluate
If
FALSE, return the updated call.