BVAR.SV | R Documentation |
Bayesian inference of VAR model with RW-SV
y_t = B x_t + SQRT(w_t) A^(-1) H_t eps_t
BVAR.SV(y, K, p, dist, y0 = NULL, prior = NULL, inits = NULL)
y |
The input data as matrix T x K where T is the number of observations and K is the number of variables |
K |
The number of variables in BVAR model. |
p |
The number of lags in BVAR model. |
dist |
The variable specifies the BVAR error distribution. It should be one of c("Gaussian","Student","Skew.Student","Skew.Student", "MT","Skew.MT","MST"). |
y0 |
The number of observations |
prior |
The prior specification of BVAR. |
inits |
The initial values of BVAR. |
A coda object of the posterior samples.
## Not run: datagen <- sim.VAR.SV(dist="Gaussian") y <- datagen$y prior <- get_prior(y, p = 2, dist="Gaussian", SV = T) inits <- get_init(prior) Chain1 <- BVAR.SV(y, K = 5, p = 2, dist = "Gaussian", y0 = NULL, prior = prior, inits = inits) plot(Chain1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.