sim.data: Multivariate time series simulation with chain graphical models
Description
Generates sparse vector autoregressive coefficients matrices and
precision matrix from various network structures and using these matrices
generates repeated multivariate time series dataset.
Repeated multivariate time series data in longitudinal format.
Arguments
model
Specifies the order of vector autoregressive models. Vector autoregressive
model of order 1 is applied if model = "ar1" and Vector autoregressive
model of order 2 is applied if method = "ar2".
time
Number of time points.
n.obs
Number of observations or replicates.
n.var
Number of variables.
seed
Random number seed.
prob0
Initial sparsity level.
network
Specifies the type of network structure. This could be random, scale-free, hub
or user defined structures. Details on simultions from the various network
structures can be found in the R package flare.