IRFResult#

class impulso.results.IRFResult(*, idata, horizon, var_names)[source]#

Bases: VARResultBase

Result from impulse response function computation.

Parameters:
  • idata (InferenceData)

  • horizon (int)

  • var_names (list[str])

idata#

ArviZ InferenceData with IRF draws.

horizon#

Number of IRF horizons.

Type:

int

var_names#

Names of variables.

Type:

list[str]

hdi(prob=0.89)[source]#

HDI for IRF.

Returns:

HDIResult whose lower / upper DataFrames mirror the shape and labels of median().

Parameters:

prob (float)

Return type:

HDIResult

median()[source]#

Posterior median IRF.

Returns:

DataFrame indexed by horizon (integer 0..H) with a MultiIndex([‘response’, ‘shock’]) on columns.

Return type:

DataFrame

model_config = {'arbitrary_types_allowed': True, 'frozen': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

plot()[source]#

Plot impulse response functions.

Return type:

Figure

to_dataframe()[source]#

Convert IRF to DataFrame (passthrough to median()).

Return type:

DataFrame