env.historical {cfma}R Documentation

Simulated data from the historical influence mediation model

Description

"env.historical" is an R environment containing the data generated from a historical influence mediation model.

Usage

data("env.historical")

Format

An R environment

Z

a n×Tn\times T data matrix, treatment trajectory of nn subjects for TT time points.

M

a n×Tn\times T data matrix, mediator trajectory of nn subjects for TT time points.

Y

a n×Tn\times T data matrix, outcome trajectory of nn subjects for TT time points.

alpha

a T×TT\times T matrix model coefficient.

beta

a T×TT\times T matrix model coefficient.

gamma

a T×TT\times T matrix model coefficient.

Details

The data was generated from the historical influence mediation model

M(t)=Ωt1Z(s)α(s,t)ds+ϵ1(t),M(t)=\int_{\Omega_{t}^{1}}Z(s)\alpha(s,t)ds+\epsilon_{1}(t),

Y(t)=Ωt2Z(s)γ(s,t)ds+Ωt3M(s)β(s,t)ds+ϵ2(t),Y(t)=\int_{\Omega_{t}^{2}}Z(s)\gamma(s,t)ds+\int_{\Omega_{t}^{3}}M(s)\beta(s,t)ds+\epsilon_{2}(t),

where α(s,t)\alpha(s,t), β(s,t)\beta(s,t), γ(s,t)\gamma(s,t) are coefficient curves; Ωtj=[(tδj)0,t]\Omega_{t}^{j}=[(t-\delta_{j})\vee 0,t] for j=1,2,3j=1,2,3. Z(t)Z(t) is the convolution of hemodynamic response function (HRF) and event onsets.

Examples

data(env.historical)
Z<-get("Z",env.historical)
M<-get("M",env.historical)
Y<-get("Y",env.historical)

[Package cfma version 1.0 Index]