| env.concurrent {cfma} | R Documentation |
Simulated data from the concurrent mediation model
Description
"env.concurrent" is an R environment containing the data generated from a concurrent mediation model.
Usage
data("env.concurrent")
Format
An R environment
Za
n\times Tdata matrix, treatment trajectory ofnsubjects forTtime points.Ma
n\times Tdata matrix, mediator trajectory ofnsubjects forTtime points.Ya
n\times Tdata matrix, outcome trajectory ofnsubjects forTtime points.alphaa length
Tvector model coefficient.betaa length
Tvector model coefficient.gammaa length
Tvector model coefficient.
Details
The data was generated from the concurrent mediation model
M(t)=Z(t)\alpha(t)+\epsilon_{1}(t),
R(t)=Z(t)\gamma(t)+M(t)\beta(t)+\epsilon_{2}(t).
Z(t) is the convolution of hemodynamic response function (HRF) and event onsets.
Examples
data(env.concurrent)
Z<-get("Z",env.concurrent)
M<-get("M",env.concurrent)
Y<-get("Y",env.concurrent)
[Package cfma version 1.0 Index]