PerturbationDSGEPosterior.impulse_responses#

PerturbationDSGEPosterior.impulse_responses(*, horizon=40, size=1.0, n_draws=200, seed=None)[source]#

Posterior draws of the responses.

Returns (states, controls) of shapes (n_draws, n_eps, horizon, n_x) and (n_draws, n_eps, horizon, n_y).

Each draw resolves the model at one kept parameter draw, so the band is the posterior of the response and not the response at the posterior mean.

Parameters:
  • horizon (int) – Periods after the impulse.

  • size (float) – Impulse size in standard deviations.

  • n_draws (int) – Parameter draws to propagate.

  • seed (int | None) – Seed for the draw selection.

Raises:

SpecificationError – If the horizon is not positive.

Return type:

tuple[NDArray[double], NDArray[double]]