Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_shockinfo

Adding shocks to 'shockinfo' argument


Description

Adds automatically rows to 'shockinfo' data.frame for appropriate use in irf.

Usage

add_shockinfo(shockinfo=NULL, shock=NULL, restriction=NULL, sign=NULL, horizon=NULL, 
prob=NULL, scale=NULL, global=NULL, horizon.fillup=TRUE)

Arguments

shockinfo

Dataframe to append shocks. If shockinfo=NULL appropriate dataframe for sign-restrictions will be created.

shock

String element. Variable of interest for structural shock. Only possible to add restrictions to one structural shock at a time.

restriction

Character vector with variables that are supposed to be sign restricted.

sign

Character vector with signs.

horizon

Numeric vector with horizons to which restriction should hold. Set horizon.fillup to FALSE to just restrict one specific horizon.

prob

Number between zero and one determining the probability with which restriction is supposed to hold.

scale

Scaling parameter.

global

If set to TRUE, shock is defined as global shock.

horizon.fillup

Default set to TRUE, horizon specified up to given horizon. Otherwise just one specific horizon is restricted.

Details

This is only possible for sign restriction, hence if ident="sign" in get_shockinfo().

See Also


BGVAR

Bayesian Global Vector Autoregressions

v2.2.0
GPL-3
Authors
Maximilian Boeck [aut, cre] (<https://orcid.org/0000-0001-6024-8305>), Martin Feldkircher [aut] (<https://orcid.org/0000-0002-5511-9215>), Florian Huber [aut] (<https://orcid.org/0000-0002-2896-7921>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.