Learn R Programming

graphicalVAR (version 0.3.4)

simMLgvar: Generate graphical VAR data of multiple subjects

Description

See arxiv.org/abs/1609.04156 for details.

Usage

simMLgvar(nTime, nVar, nPerson, propPositive = 0.5, kappaRange = c(0.25, 0.5), 
          betaRange = c(0.25, 0.5), betweenRange = c(0.25, 0.5), 
          rewireWithin = 0, betweenVar = 1, withinVar = 0.25, 
          temporalOffset = 2)

Value

A "simMLgvar" object with the following elements:

data

Generated dataset

fixedKappa

Fixed inverse contemporaneous covariance matrix

fixedPCC

Fixed contemporaneous partial correlation network

fixedBeta

Fixed temporal network

fixedPDC

Fixed standardized temporal network

between

Fixed between-subjects network

means

True means

personData

Dataset split per person

idvar

String indicating the id variable

vars

Vector of strings indicating the variables

Arguments

nTime

Number of time points per subject

nVar

Number of variables

nPerson

Number of subjects

propPositive

Proportion of positive edges

kappaRange

Range of partial contemporaneous correlation coefficients

betaRange

Range of temporal coefficients

betweenRange

Range of partial between-subjects coefficients

rewireWithin

Rewiring probability of contemporaneous networks

betweenVar

Between-subjects variabce

withinVar

Contemporaneous variance

temporalOffset

Specifies the temporal network. Setting this to 2 connects X_i to X_(i+2)

Author

Sacha Epskamp <mail@sachaepskamp.com>