
R6 Class representing the specification of the BSVAR model with t-distributed structural shocks.
Source:R/specify_bsvar_t.R
specify_bsvar_t.RdThe class BSVART presents complete specification for the BSVAR model with t-distributed structural shocks.
Public fields
pa non-negative integer specifying the autoregressive lag order of the model.
identificationan object IdentificationBSVARs with the identifying restrictions.
prioran object PriorBSVART with the prior specification.
data_matricesan object DataMatricesBSVAR with the data matrices.
starting_valuesan object StartingValuesBSVART with the starting values.
adaptiveMHa vector of two values setting the Robust Adaptive Metropolis sampler for df: target acceptance rate and adaptive rate.
Methods
Method new()
Create a new specification of the BSVAR model with t-distributed structural shocks, BSVART.
Usage
specify_bsvar_t$new(
data,
p = 1L,
B,
A,
exogenous = NULL,
stationary = rep(FALSE, ncol(data))
)Arguments
dataa
(T+p)xNmatrix with time series data.pa positive integer providing model's autoregressive lag order.
Ba logical
NxNmatrix containing valueTRUEfor the elements of the structural matrix \(B\) to be estimated and valueFALSEfor exclusion restrictions to be set to zero.Aa logical
NxKmatrix containing valueTRUEfor the elements of the autoregressive matrix \(A\) to be estimated and valueFALSEfor exclusion restrictions to be set to zero.exogenousa
(T+p)xdmatrix of exogenous variables.stationaryan
Nlogical vector - its element set toFALSEsets the prior mean for the autoregressive parameters of theNth equation to the white noise process, otherwise to random walk.
Examples
data(us_fiscal_lsuw)
spec = specify_bsvar_t$new(
data = us_fiscal_lsuw,
p = 4
)
#> The identification is set to the default option of lower-triangular structural matrix.