update.LinRegProblem | R Documentation |
LinRegProblem
Object with a New FormulaUpdate a LinRegProblem
Object with a New Formula
## S3 method for class 'LinRegProblem' update(object, new_formula, ...)
object |
A |
new_formula |
A new model formula. |
... |
Additional arguments to |
This function refits an existing LinRegProblem
object to a new formula.The formula must be valid in the context of existing column names.
If successful, the updated LinRegProblem
object.
X <- LinRegProblem(mtcars[, -1], mtcars[, 1], Y_transform = scale) update(X, Y ~ X1 + X2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.