add_residuals | R Documentation |
Add residuals from a model to a data frame
add_residuals(data, model, value = ".residual", ...)
data |
a data frame containing values for the variables used to fit the
model. Passed to |
model |
a fitted model for which a |
value |
character; the name of the variable in which model residuals will be stored. |
... |
additional arguments passed to methods. |
A data frame (tibble) formed from data
and residuals from model
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.