I am trying to construct a Bayesian Impulse Response Function, but keep running into the above error message. I have tried restarting R and reinstalling all the relevant packages. Here is my relevant code.
x1 <- bvar(data1, lags = 1, n_draw = 5000, n_burn = 2500, priors = priors, mh =mh, verbose = TRUE, n_thin = 1)
opt_irf <- bv_irf(horizon = 12, identification = TRUE)
irf(x1) <- irf(x1, opt_irf, conf_bands = 0.05)