Learn R Programming

panelvar (version 0.5.6)

girf: Generalized Impulse Response Function

Description

Generalized Impulse Response Function

Usage

girf(model, n.ahead, ma_approx_steps)

# S3 method for pvargmm girf(model, n.ahead, ma_approx_steps)

Arguments

model

A PVAR model

n.ahead

Any stable AR() model has an infinite MA representation. Hence any shock can be simulated infinitely into the future. For each forecast step t you need an additional MA term.

ma_approx_steps

MA approximation steps

Examples

Run this code
data("ex1_dahlberg_data")
girf(ex1_dahlberg_data, n.ahead = 8, ma_approx_steps= 8)

Run the code above in your browser using DataLab