View source: R/predetermined.R
| predetermined | R Documentation |
Thin alias for state(formula, shock = FALSE) that names the role
of the variable explicitly, matching Dynare's
predetermined_variables command. Use whenever you want a
state-like variable whose current value is fully determined by past
values (no contemporaneous shock channel).
predetermined(formula)
formula |
A formula of the form
|
Dynare declares var k; predetermined_variables k; so that
references to k inside the model block mean the
predetermined (period-t) value, with k(+1)
referring to the forward value. The equivalent in our framework is
predetermined(k ~ <law of motion>), which contributes a row to
the state transition with no shock column attached. This is identical
to state(k ~ <law of motion>, shock = FALSE) – the two
declarations are interchangeable.
Lagged controls: predetermined(c_lag ~ c) makes
c_lag carry the previous period's consumption into the
next period.
Capital accumulation: predetermined(k ~ (1 - delta) * k +
inv).
Stocks of any kind that evolve via accounting identities.
A dsge_equation of state type with shock = FALSE.
state, obs, unobs,
dsge_model.
# AR(1) with a lagged-output term in the observation equation
m <- dsge_model(
obs(y ~ rho * y_lag + e),
predetermined(y_lag ~ y),
state(e ~ phi * e),
fixed = list(rho = 0.5, phi = 0.5))
sol <- solve_dsge(m, params = c(rho = 0.5, phi = 0.5),
shock_sd = c(e = 1))
sol$stable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.