Description Usage Arguments Value Author(s) See Also Examples
View source: R/centerVAR1data.r
Per individual, covariate-wise zero centering of the time-series data.
1 |
Y |
Three-dimensional |
An array
with dimensions as the input.
Wessel N. van Wieringen <w.vanwieringen@vumc.nl>
1 2 3 4 5 6 7 8 9 10 11 12 | # set dimensions (p=covariates, n=individuals, T=time points)
p <- 3; n <- 4; T <- 10
# set model parameters
SigmaE <- diag(p)/4
A <- createA(p, "chain")
# generate data
Y <- dataVAR1(n, T, A, SigmaE)
# plot data sampled from the VAR(1) model.
Ycentered <- centerVAR1data(Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.