env.historical: Simulated data from the historical influence mediation model

Description Usage Format Details Examples

Description

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

Usage

1
data("env.historical")

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 T\times T matrix model coefficient.

beta

a T\times T matrix model coefficient.

gamma

a T\times T matrix model coefficient.

Details

The data was generated from the historical influence mediation model

M(t)=\int_{Ω_{t}^{1}}Z(s)α(s,t)ds+ε_{1}(t),

Y(t)=\int_{Ω_{t}^{2}}Z(s)γ(s,t)ds+\int_{Ω_{t}^{3}}M(s)β(s,t)ds+ε_{2}(t),

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

Examples

1
2
3
4

cfma documentation built on May 2, 2019, 2:07 a.m.