1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
\name{simMLgvar}
\alias{simMLgvar}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
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)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{nTime}{
Number of time points per subject
}
  \item{nVar}{
Number of variables
}
  \item{nPerson}{
Number of subjects
}
  \item{propPositive}{
Proportion of positive edges
}
  \item{kappaRange}{
Range of partial contemporaneous correlation coefficients
}
  \item{betaRange}{
Range of temporal coefficients
}
  \item{betweenRange}{
Range of partial between-subjects coefficients
}
  \item{rewireWithin}{
Rewiring probability of contemporaneous networks
}
  \item{betweenVar}{
Between-subjects variabce
}
  \item{withinVar}{
Contemporaneous variance
}
  \item{temporalOffset}{
Specifies the temporal network. Setting this to 2 connects X_i to X_(i+2)
}
}
\value{
A \code{"simMLgvar"} object with the following elements:
\item{data }{Generated dataset}
\item{fixedKappa }{Fixed inverse contemporaneous covariance matrix}
\item{fixedPCC }{Fixed contemporaneous partial correlation network}
\item{fixedBeta }{Fixed temporal network}
\item{fixedPDC }{Fixed standardized temporal network}
\item{between }{Fixed between-subjects network}
\item{means }{True means}
\item{personData }{Dataset split per person}
\item{idvar }{String indicating the id variable}
\item{vars }{Vector of strings indicating the variables}
}
\author{
Sacha Epskamp <mail@sachaepskamp.com>
}