plotVAR1data: Time series plot

Description Usage Arguments Author(s) See Also Examples

View source: R/plotVAR1data.r

Description

Plot of time series data. Per variate and individual a line connecting the observations at each time point is plotted.

Usage

1
plotVAR1data(Y, lwd=1)

Arguments

Y

Three-dimensional array containing the data. The first, second and third dimensions correspond to covariates, time and samples, respectively. The data are assumed to be zero centered covariate-wise, per sample.

lwd

A numeric of length one, specifying the line width.

Author(s)

Wessel N. van Wieringen <w.vanwieringen@vumc.nl>

See Also

dataVAR1.

Examples

 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.
plotVAR1data(Y, lwd=2)

wvanwie/ragt2ridges documentation built on May 4, 2019, 12:03 p.m.