specify_data_matrices | R Documentation |
The class DataMatricesBSVAR presents the data matrices of dependent variables, Y
,
and regressors, X
, for the homoskedastic bsvar model.
Y
an NxT
matrix of dependent variables, Y
.
X
an KxT
matrix of regressors, X
.
new()
Create new data matrices DataMatricesBSVAR.
specify_data_matrices$new(data, p = 1L, exogenous = NULL)
data
a (T+p)xN
matrix with time series data.
p
a positive integer providing model's autoregressive lag order.
exogenous
a (T+p)xd
matrix of exogenous variables.
This matrix should not include a constant term.
New data matrices DataMatricesBSVAR.
get_data_matrices()
Returns the data matrices DataMatricesBSVAR as a list
.
specify_data_matrices$get_data_matrices()
data(us_fiscal_lsuw) YX = specify_data_matrices$new(data = us_fiscal_lsuw, p = 4) YX$get_data_matrices()
clone()
The objects of this class are cloneable with this method.
specify_data_matrices$clone(deep = FALSE)
deep
Whether to make a deep clone.
data(us_fiscal_lsuw)
YX = specify_data_matrices$new(data = us_fiscal_lsuw, p = 4)
dim(YX$Y); dim(YX$X)
## ------------------------------------------------
## Method `specify_data_matrices$get_data_matrices`
## ------------------------------------------------
data(us_fiscal_lsuw)
YX = specify_data_matrices$new(data = us_fiscal_lsuw, p = 4)
YX$get_data_matrices()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.