cf: Counterfactuals for SVAR Models

View source: R/cf.R

cfR Documentation

Counterfactuals for SVAR Models

Description

Calculation of Counterfactuals for an identified SVAR object 'svars' derived by function id.st( ), id.cvm( ),id.cv( ),id.dc( ) or id.ngml( ).

Usage

cf(x, series = 1, transition = 0)

Arguments

x

SVAR object of class "svars"

series

Integer. indicating the series for which the counterfactuals should be calculated.

transition

Numeric. Value from [0, 1] indicating how many initial values should be discarded, i.e., 0.1 means that the first 10 per cent observations of the sample are considered as transient.

Value

A list with class attribute "hd" holding the Counterfactuals as data frame.

References

Kilian, L., Luetkepohl, H., 2017. Structural Vector Autoregressive Analysis, Cambridge University Press.

See Also

id.cvm, id.dc, id.ngml, id.cv, id.garch or id.st

Examples


v1 <- vars::VAR(USA, lag.max = 10, ic = "AIC" )
x1 <- id.dc(v1)
x2 <- cf(x1, series = 2)
plot(x2)



svars documentation built on Feb. 16, 2023, 7:52 p.m.