| solve_3rd_order | R Documentation |
Computes the third-order approximation of a nonlinear DSGE model around
its deterministic steady state, extending the second-order solution of
solve_2nd_order() with cubic terms and sigma^3 corrections.
solve_3rd_order(model, params, shock_sd, tol = 1e-06)
model |
A |
params |
Named numeric vector of parameter values. |
shock_sd |
Named numeric vector of shock standard deviations. |
tol |
Eigenvalue tolerance for the first-order solution. |
Third-order terms capture:
Skewness effects in impulse responses.
State-dependent risk premia (g_xss).
Higher-order precautionary savings motives (g_sss).
Derivatives of the model equations are computed symbolically (with
finite differences as a fallback for functions stats::D cannot
differentiate). As in Dynare, shocks are symmetric, so the sigma^3 terms
are zero.
Pruned simulation is available via simulate_3rd_order.
A dsge_solution object (order = 3) augmented with:
g_xx, h_xxSecond-order quadratic coefficients.
g_ss, h_ssSecond-order sigma^2 corrections.
g_xxx, h_xxxThird-order cubic coefficients (arrays of dimension n_c|n_s × n_s × n_s × n_s).
g_xss, h_xssThird-order linear-state × sigma^2 corrections (matrices n_c|n_s × n_s).
g_sss, h_sssThird-order pure sigma^3 corrections (vectors of length n_c|n_s).
solve_2nd_order, simulate_3rd_order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.