Description Usage Arguments Value Author(s) See Also Examples
Sample data from a VARX(1) model.
1 | dataVARX1(X, A, B, SigmaE, lagX)
|
X |
Three-dimensional |
A |
A |
B |
A |
SigmaE |
Covariance |
lagX |
An |
A three dimensional array
containing the data. The first, second and third dimensions correspond to covariates, time and samples, respectively.
Wessel N. van Wieringen <w.vanwieringen@vumc.nl>
createA
, createS
, dataVAR1
, dataVAR2
, ridgeVARX1
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # set dimensions (p=covariates, n=individuals, T=time points)
p <- 3; n <- 12; T <- 10
# set model parameters
SigmaE <- diag(p)/4
Ax <- createA(3, "chain")
# generate time-varying covariate data
X <- dataVAR1(n, T, Ax, SigmaE)
# autoregression parameter matrices of VARX(1) model
A <- createA(p, topology="clique", nonzeroA=0.1, nClique=1)
B <- createA(p, topology="hub", nonzeroA=0.1, nHubs=1)
# generate data
Y <- dataVARX1(X, A, B, SigmaE, lagX=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.