conditional_forecast.dsge_dsgevar: Conditional Forecast for a DSGE-VAR Posterior

View source: R/dsge-var-forecast.R

conditional_forecast.dsge_dsgevarR Documentation

Conditional Forecast for a DSGE-VAR Posterior

Description

Produces forecasts from a DSGE-VAR posterior conditional on a user-specified path for a subset of variables. For each posterior draw of the VAR coefficients, the function applies an algorithm analogous to Waggoner-Zha (1999) at the VAR level: at each period the conditioning constraints pin down a minimum-norm sequence of VAR innovations.

Usage

## S3 method for class 'dsge_dsgevar'
conditional_forecast(object, horizon = 12L, condition, ...)

## S3 method for class 'dsge_dsgevar_mh'
conditional_forecast(object, horizon = 12L, condition, ...)

Arguments

object

A dsge_dsgevar or dsge_dsgevar_mh object.

horizon

Integer. Forecast horizon.

condition

A named list of numeric vectors (use NA for unconditioned periods). Names must match VAR variable names.

...

Additional arguments (currently unused).

Value

An object inheriting from dsge_forecast with posterior summary statistics of the conditional forecast.


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