The class StartingValuesBSVARMSH presents starting values for the bsvar model with Markov Switching Heteroskedasticity.
Examples
# starting values for a bsvar model for a 3-variable systemsv = specify_starting_values_bsvar_msh$new(N =3, p =1, M =2, T =100)## ------------------------------------------------## Method `specify_starting_values_bsvar_msh$get_starting_values`## ------------------------------------------------# starting values for a homoskedastic bsvar with 1 lag for a 3-variable systemsv = specify_starting_values_bsvar_msh$new(N =3, p =1, M =2, T =100)sv$get_starting_values()# show starting values as list## ------------------------------------------------## Method `specify_starting_values_bsvar_msh$set_starting_values`## ------------------------------------------------# starting values for a bsvar model with 1 lag for a 3-variable systemsv = specify_starting_values_bsvar_msh$new(N =3, p =1, M =2, T =100)# Modify the starting values by:sv_list = sv$get_starting_values()# getting them as listsv_list$A <- matrix(rnorm(12),3,4)# modifying the entrysv$set_starting_values(sv_list)# providing to the class object
Create new starting values StartingValuesBSVAR-MS.
Usage
specify_starting_values_bsvar_msh$new(N, p, M, T, d = 0, finiteM = TRUE)
Arguments
N: a positive integer - the number of dependent variables in the model.
p: a positive integer - the autoregressive lag order of the SVAR model.
M: an integer greater than 1 - the number of Markov process' heteroskedastic regimes.
T: a positive integer - the the time series dimension of the dependent variable matrix Y.
d: a positive integer - the number of exogenous variables in the model.
finiteM: a logical value - if true a stationary Markov switching model is estimated. Otherwise, a sparse Markov switching model is estimated in which M=20 and the number of visited states is estimated.
Returns
Starting values StartingValuesBSVAR-MS.
Method get_starting_values()
Returns the elements of the starting values StartingValuesBSVAR-MS as a list.
# starting values for a homoskedastic bsvar with 1 lag for a 3-variable system
sv = specify_starting_values_bsvar_msh$new(N = 3, p = 1, M = 2, T = 100)
sv$get_starting_values() # show starting values as list
Method set_starting_values()
Returns the elements of the starting values StartingValuesBSVARMSH as a list.
An object of class StartingValuesBSVAR-MS including the last draw of the current MCMC as the starting value to be passed to the continuation of the MCMC estimation using estimate().
Examples
# starting values for a bsvar model with 1 lag for a 3-variable system
sv = specify_starting_values_bsvar_msh$new(N = 3, p = 1, M = 2, T = 100)
# Modify the starting values by:
sv_list = sv$get_starting_values() # getting them as list
sv_list$A <- matrix(rnorm(12), 3, 4) # modifying the entry
sv$set_starting_values(sv_list) # providing to the class object
Method clone()
The objects of this class are cloneable with this method.