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