View source: R/simulate-param.R
sim_mnvhar_coef | R Documentation |
This function generates parameters of BVAR with Minnesota prior.
sim_mnvhar_coef(bayes_spec = set_bvhar(), full = TRUE)
bayes_spec |
A BVHAR model specification by |
full |
Generate variance matrix from IW (default: |
Normal-IW family for vector HAR model:
\Phi \mid \Sigma_e \sim MN(M_0, \Omega_0, \Sigma_e)
\Sigma_e \sim IW(\Psi_0, \nu_0)
List with the following component.
BVHAR coefficient (MN)
BVHAR variance (IW or diagonal matrix of sigma
of bayes_spec
)
Kim, Y. G., and Baek, C. (2024). Bayesian vector heterogeneous autoregressive modeling. Journal of Statistical Computation and Simulation, 94(6), 1139-1157.
set_bvhar()
to specify the hyperparameters of VAR-type Minnesota prior.
set_weight_bvhar()
to specify the hyperparameters of HAR-type Minnesota prior.
# Generate (Phi, Sigma)
# BVHAR-S
# sigma: 1, 1, 1
# lambda: .1
# delta: .1, .1, .1
# epsilon: 1e-04
set.seed(1)
sim_mnvhar_coef(
bayes_spec = set_bvhar(
sigma = rep(1, 3),
lambda = .1,
delta = rep(.1, 3),
eps = 1e-04
),
full = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.