| model_properties | R Documentation |
The standard calibration check: does the model reproduce the
volatilities and persistence actually observed? Reports the
population standard deviation and autocorrelations implied by the
solved model — from the stationary covariance
V = P V P' + Q S Q' and corr_k = diag(P^k V) / diag(V) —
next to the same statistics computed from data, plus the shock that
accounts for most of each variable's unconditional variance.
model_properties(x, data = NULL, vars = NULL, lags = c(1, 4))
x |
A |
data |
Optional data frame of observations in levels (columns
named for model variables, an optional |
vars |
Variables to report; default all declared variables. |
lags |
Autocorrelation orders to report. |
Population moments exist only for stationary models. When the model
has unit roots (random-walk trends) they are undefined, and the
function reports that rather than returning nonsense; use
fevd() and qpm_filter() diagnostics instead.
An object of class qpm_properties: a data frame with the
model and (optionally) data moments.
sol <- qpm_solve(qpm_template("bkl"))
model_properties(sol, vars = c("y_gap", "pi", "i", "q"))
# against simulated data
obs <- simulate(sol, nsim = 200, seed = 5, burn = 50)
model_properties(sol, data = obs, vars = c("y_gap", "pi", "i"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.