View source: R/model-methods.R
| nobs.revision_model | R Documentation |
Returns the effective number of observations behind the reported
information criteria. Under the default ic_n = "Tp" this is the number
of time periods times the number of releases (KK) or vintages (JVN)
modeled.
## S3 method for class 'revision_model'
nobs(object, ...)
object |
A fitted model object inheriting from revision_model, such
as a |
... |
Ignored. |
A single integer.
Other revision nowcasting:
coef.revision_model(),
fitted.revision_model(),
jvn_nowcast(),
kk_nowcast(),
logLik.revision_model(),
plot.revision_model(),
predict.revision_model(),
print.revision_model(),
residuals.revision_model(),
revision_model,
states(),
summary.revision_model(),
vcov.revision_model()
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")
nobs(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.