I am trying to replicate "BVAR: Bayesian Vector Autoregression with Hierarchical Prior Selection in R" by Nikolas Kuschnig and Lukas Vashold. The code is exactly the same. However, if I run the bvar() function I keep getting the error below. Any ideas?
Code:
run <- bvar(x, lags = 5, n_draw = 50000, n_burn = 25000, n_thin = 1, priors = priors, mh = mh, verbose = TRUE)
error:
Error in bvar(x, lags = 5, n_draw = 50000, n_burn = 25000, n_thin = 1, :
unused arguments (lags = 5, n_draw = 50000, n_burn = 25000, n_thin = 1, priors = priors, mh = mh, verbose = TRUE)