Description Usage Arguments Value Examples
A residuals from model to data.frame
1 | mod_add_residuals(data, model, var = "resid")
|
data |
An object of type data.frame |
model |
Model of class |
var |
The name of residual column. |
A data.frame where the residuals has been added in a column.
1 2 | mod <- mtcars %>% mod_lm(mpg~cyl)
mod_add_residuals(mtcars, mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.