simulate_3rd_order: Simulate Using Third-Order Approximation (Pruned)

View source: R/third-order.R

simulate_3rd_orderR Documentation

Simulate Using Third-Order Approximation (Pruned)

Description

Simulates sample paths using the pruned third-order approximation following Andreasen, Fernandez-Villaverde, and Rubio-Ramirez (2018).

Usage

simulate_3rd_order(sol, n = 200L, n_burn = 200L, seed = NULL)

Arguments

sol

A dsge_solution object with order = 3.

n

Integer. Number of periods to simulate.

n_burn

Integer. Burn-in periods to discard. Default 200.

seed

Random seed.

Details

Pruning tracks first-, second-, and third-order state components separately and combines them, avoiding explosive simulation paths.

Value

A list with states, controls, state_levels, control_levels (all n x n_vars matrices), plus order = 3.


dsge documentation built on Sept. 25, 2026, 5:08 p.m.