Learn R Programming

ragt2ridges (version 0.3.4)

plotVAR1data: Time series plot

Description

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

Usage

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.

See Also

dataVAR1.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab