Learn R Programming

cfma (version 1.0)

env.concurrent: 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")

Arguments

Format

An R environment

Z

a \(n\times T\) data matrix, treatment trajectory of \(n\) subjects for \(T\) time points.

M

a \(n\times T\) data matrix, mediator trajectory of \(n\) subjects for \(T\) time points.

Y

a \(n\times T\) data matrix, outcome trajectory of \(n\) subjects for \(T\) time points.

alpha

a length \(T\) vector model coefficient.

beta

a length \(T\) vector model coefficient.

gamma

a length \(T\) vector 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

Run this code
# NOT RUN {
data(env.concurrent)
Z<-get("Z",env.concurrent)
M<-get("M",env.concurrent)
Y<-get("Y",env.concurrent)
# }

Run the code above in your browser using DataLab