View source: R/residuals.tidyfit.models.R
residuals.tidyfit.models | R Documentation |
tidyfit.models
frameThe function generates residuals for all models in a tidyfit.models
frame and outputs a tidy frame.
## S3 method for class 'tidyfit.models'
residuals(object, ...)
object |
|
... |
currently not used |
The function uses the 'model_object' column in a tidyfit.model
frame to return residuals for each model.
A 'tibble'.
Johann Pfitzinger
coef.tidyfit.models
, predict.tidyfit.models
and fitted.tidyfit.models
data <- dplyr::group_by(tidyfit::Factor_Industry_Returns, Industry)
fit <- regress(data, Return ~ ., m("lm"), .mask = "Date")
resid(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.