IdentifiedVAR¶
IdentifiedVAR — structural VAR with identified shocks.
IdentifiedVAR
¶
Bases: ImpulsoBaseModel
Immutable structural VAR with identified shocks.
Attributes:
| Name | Type | Description |
|---|---|---|
idata |
InferenceData
|
InferenceData with structural_shock_matrix in posterior. |
n_lags |
int
|
Lag order. |
data |
VARData
|
Original VARData. |
var_names |
list[str]
|
Endogenous variable names. |
volatility |
VolatilityProcess
|
Volatility process carried through from the fitted VAR.
Required for |
scheme |
IdentificationScheme
|
Identification scheme used to produce the structural shock
matrix. Required for |
shock_names
property
¶
Shock coordinate labels from the structural shock matrix.
fevd(horizon=20, at=None)
¶
Compute forecast error variance decomposition.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
horizon
|
int
|
Number of periods. |
20
|
at
|
AtParam
|
Time index for the structural shock matrix:
|
None
|
Returns:
| Type | Description |
|---|---|
FEVDResult
|
FEVDResult with FEVD posterior draws. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
historical_decomposition(start=None, end=None, cumulative=False, at=None)
¶
Compute historical decomposition of observed series.
Historical decomposition is intrinsically time-indexed: it attributes
each in-sample observation to past structural shocks. The at=
parameter controls which Cholesky factor identifies those shocks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
Timestamp | None
|
Optional start date to restrict decomposition. |
None
|
end
|
Timestamp | None
|
Optional end date to restrict decomposition. |
None
|
cumulative
|
bool
|
If True, return cumulative shock contributions. |
False
|
at
|
AtParam
|
Time index for the structural shock matrix:
|
None
|
Returns:
| Type | Description |
|---|---|
HistoricalDecompositionResult
|
HistoricalDecompositionResult. |
impulse_response(horizon=20, at=None)
¶
Compute structural impulse response functions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
horizon
|
int
|
Number of periods. |
20
|
at
|
AtParam
|
Time index for the structural shock matrix:
|
None
|
Returns:
| Type | Description |
|---|---|
IRFResult
|
IRFResult with IRF posterior draws. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When |