Returns the smoothed estimate of the model's latent signal for the
in-sample periods, i.e. the revision-adjusted series. The signal is the
latent efficient value for a kk_model and the latent true value for a
jvn_model.
Usage
# S3 method for class 'revision_model'
fitted(object, ...)Arguments
- object
A fitted model object inheriting from revision_model, such as a
kk_modelor ajvn_model.- ...
Ignored.
See also
Other revision nowcasting:
coef.revision_model(),
jvn_nowcast(),
kk_nowcast(),
logLik.revision_model(),
nobs.revision_model(),
plot.revision_model(),
predict.revision_model(),
print.revision_model(),
residuals.revision_model(),
revision_model,
states(),
summary.revision_model(),
vcov.revision_model()
Examples
df <- get_nth_release(
tsbox::ts_span(
tsbox::ts_pc(dplyr::filter(reviser::gdp, id == "US")),
start = "1980-01-01"
),
n = 0:1
)
df <- na.omit(dplyr::select(df, -c("id", "pub_date")))
fit <- kk_nowcast(df, e = 1, model = "KK", method = "MLE")
head(fitted(fit))
#> # A tibble: 6 × 4
#> time estimate lower upper
#> <date> <dbl> <dbl> <dbl>
#> 1 1980-07-01 -0.154 -0.157 -0.152
#> 2 1980-10-01 1.78 1.78 1.78
#> 3 1981-01-01 1.94 1.94 1.95
#> 4 1981-04-01 -0.699 -0.702 -0.697
#> 5 1981-07-01 1.19 1.19 1.19
#> 6 1981-10-01 -1.18 -1.18 -1.18
