updateModel.Rd
updateModel
adds new variables to model and re-fit it.
updateModel(object, x, placeholder = NULL, backquote = TRUE, collapse = " + ")
An existing fit from a model function such as lm, glm and many others.
Character vector specifying variables to be added to model.
String specifying term to substitute with value from
x
. Ignored if set to NULL
.
Logical indicating if added variables should be quoted.
Elements of this vector are recycled over x
.
String specifying how variables should be combined. Defaults
to " + "
ie. linear combination.
Updated fitted object.