Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

Is there a remedy for this error message, "Error in UseMethod("irf", x) : no applicable method for 'irf' applied to an object of class "bvar" "

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)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
by (100 points)
Did you solve this? Same problem here.
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...