This function generates Monte Carlo simulations of sparse VAR and its estimation (at the moment only for VAR(1) processes).
mcSimulations(
N,
nobs = 250,
nMC = 100,
rho = 0.5,
sparsity = 0.05,
penalty = "ENET",
covariance = "Toeplitz",
method = "normal",
modelSel = "cv",
...
)
dimension of the multivariate time series.
number of observations to be generated.
number of Monte Carlo simulations.
base value for the covariance.
density of non zero entries of the VAR matrices.
penalty function to use for LS estimation. Possible values are "ENET"
,
"SCAD"
or "MCP"
.
type of covariance matrix to be used in the generation of the sparse VAR model.
which type of distribution to use in the generation of the entries of the matrices.
select which model selection criteria to use ("cv"
or "timeslice"
).
(TODO: complete)
a nMc
x5 matrix with the results of the Monte Carlo estimation