bvhar_horseshoe {bvhar} | R Documentation |
This function fits VHAR with horseshoe prior.
bvhar_horseshoe(
y,
har = c(5, 22),
num_chains = 1,
num_iter = 1000,
num_burn = floor(num_iter/2),
thinning = 1,
bayes_spec = set_horseshoe(),
include_mean = TRUE,
minnesota = c("no", "short", "longrun"),
algo = c("block", "gibbs"),
verbose = FALSE,
num_thread = 1
)
## S3 method for class 'bvharhs'
print(x, digits = max(3L, getOption("digits") - 3L), ...)
## S3 method for class 'bvharhs'
knit_print(x, ...)
y |
Time series data of which columns indicate the variables |
har |
Numeric vector for weekly and monthly order. By default, |
num_chains |
Number of MCMC chains |
num_iter |
MCMC iteration number |
num_burn |
Number of burn-in (warm-up). Half of the iteration is the default choice. |
thinning |
Thinning every thinning-th iteration |
bayes_spec |
Horseshoe initialization specification by |
include_mean |
Add constant term (Default: |
minnesota |
Minnesota type |
algo |
Ordinary gibbs sampling ( |
verbose |
Print the progress bar in the console. By default, |
num_thread |
|
x |
|
digits |
digit option to print |
... |
not used |
bvhar_horseshoe
returns an object named bvarhs
class.
It is a list with the following components:
Posterior mean of VHAR coefficients.
Posterior mean of covariance matrix
Posterior mean of precision matrix \Psi
posterior::draws_df with every variable: alpha, lambda, tau, omega, and eta
Name of every parameter.
Numer of Coefficients: 3m + 1
or 3m
3 (The number of terms. It contains this element for usage in other functions.)
Order for weekly term
Order for monthly term
Dimension of the data
Sample size used when training = totobs
- p
Total number of the observation
Matched call
Description of the model, e.g. VHAR_Horseshoe
include constant term (const
) or not (none
)
Usual Gibbs sampling (gibbs
) or fast sampling (fast
)
Horseshoe specification defined by set_horseshoe()
The numer of chains
Total iterations
Burn-in
Thinning
Indicators for group.
Number of groups.
VHAR linear transformation matrix
Y_0
X_0
Raw input
Kim, Y. G., and Baek, C. (n.d.). Working paper.