View source: R/residuals_flashlight.R
residuals.flashlight | R Documentation |
Residuals method for an object of class "flashlight". Pass additional elements to update the flashlight before calculation of residuals.
## S3 method for class 'flashlight'
residuals(object, ...)
object |
An object of class "flashlight". |
... |
Arguments used to update the flashlight before calculating the residuals. |
A numeric vector with residuals.
fit <- lm(Sepal.Length ~ ., data = iris)
x <- flashlight(model = fit, data = iris, y = "Sepal.Length", label = "ols")
residuals(x)[1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.