residuals.tidyfit.models {tidyfit} | R Documentation |
Obtain residuals from models in a tidyfit.models
frame
Description
The function generates residuals for all models in a tidyfit.models
frame and outputs a tidy frame.
Usage
## S3 method for class 'tidyfit.models'
residuals(object, ...)
Arguments
object |
|
... |
currently not used |
Details
The function uses the 'model_object' column in a tidyfit.model
frame to return residuals for each model.
Value
A 'tibble'.
Author(s)
Johann Pfitzinger
See Also
coef.tidyfit.models
, predict.tidyfit.models
and fitted.tidyfit.models
Examples
data <- dplyr::group_by(tidyfit::Factor_Industry_Returns, Industry)
fit <- regress(data, Return ~ ., m("lm"), .mask = "Date")
resid(fit)
[Package tidyfit version 0.7.1 Index]