mbsts-class {mbsts} | R Documentation |
Constructor for the MBSTS model
Description
This class constructor build an object of MBSTS class, encoding a state space model together with a uni- or multi-variate time series, which is central to all the package's functionality. One implements the MBSTS model by specifying some or all of its basic components.
Slots
Xtrain
A (
n*K
)-dimensional matrix containing all candidate predictor series for each target series.K=\sum k_i
is the number of all candidate predictors for all target series. The firstk_1
variables are the set of candidate predictors for the first target series, and the nextk_2
variables are the set of candidate predictors for the second target series, etc. Note that, one variable can appear in the X.star several times, since different target series can contain the same candidate predictors.Ind
A (
K*
(mc-burn))-dimensional matrix containing MCMC draws of the indicator variable. If X.star is null, it will not be returned.beta.hat
A (
K*
(mc-burn))-dimensional matrix containing MCMC draws of regression coefficients. If X.star is null, it will not be returned.B.hat
A (
K*m*
(mc-burn))-dimensional array generated by combining beta.hat for all target series. If X.star is null, it will not be returned.ob.sig2
A (
m*m*
(mc-burn))-dimensional array containing MCMC draws of variance-covariance matrix for residuals.States
A (
n*m1*
(mc-burn))-dimensional array containing MCMC draws of all time series components, wherem1
is the number of all time series components. If the STmodel is null, it will not be returned.st.sig2
A (
K*
(mc-burn))-dimensional matrix containing MCMC draws of variances for time series components. If the STmodel is null, it will not be returned.ki
A vector of integer values denoting the acumulated number of predictors for target series. For example, if there are three target series where the first has
8
predictors, the second has6
predictors, and the third has10
predictors, then the vector is c(8,14,24
).ntrain
A numerical value for number of observations.
mtrain
A numerical value for number of response variables.
Author(s)
Jinwen Qiu qjwsnow_ctw@hotmail.com Ning Ning patricianing@gmail.com
References
Ning and Qiu (2021), The mbsts package: Multivariate Bayesian Structural Time Series Models in R.