KK_code_priors: Set conjugate N-IW priors as in matlab code of...

Description Usage Arguments Details Value Examples

Description

Set conjugate N-IW priors as in matlab code of Koops-Korobilis

Usage

1
KK_code_priors(Y_in, Z_in = NULL, constant = TRUE, p = 4)

Arguments

Y_in

multivariate time series

Z_in

exogeneous variables

constant

logical, default is TRUE, whether the constant should be included

p

number of lags

Details

Set conjugate N-IW priors as in matlab code of Koops-Korobilis. Mainly for testing.

Value

priors list containing Phi_prior [k x m], Omega_prior [k x k], S_prior [m x m], v_prior [1x1], where k = mp+d

Examples

1
2
3
data(Yraw)
priors <- KK_code_priors(Yraw, p = 4)
model <- bvar_conjugate0(priors = priors, keep = 100)

bdemeshev/bvarr documentation built on May 12, 2019, 3:40 a.m.