env.example: Simulated data

Description Usage Format Details Examples

Description

"env.example" is an R environment containing the data generated from the proposed high-dimensional mediation model with p=50.

Usage

1
data("env.example")

Format

An R environment

X

a n\times 1 vector, the binary treatment assignment of n subjects.

M

a n\times p matrix, the p mediators.

Y

a n\times 1 vector, the outcome of interest.

Phi

a p\times p matrix, the true loading/projection matrix.

alpha

a p\times 1 vector, the true α value in the model.

beta

a p\times 1 vector, the true β value in the model.

gamma

a scalar, the true γ value in the model.

Details

The data was generated from the following mediation models:

\tilde{M}_{i}^{(j)}=α_{j}X_{i}+ξ_{ij},

Y_{i}=γ X_{i}+β_{1}\tilde{M}_{i}^{(1)}+\cdots+β_{p}\tilde{M}_{i}^{(p)}+η_{i},

where \tilde{M}_{i}^{(j)}=M_{i}'φ_{j}, Φ=(φ_{1},…,φ_{p}); ξ_{ij} and η_{i} are model errors normally distributed with mean zero.

Examples

1
2
3
4

zhaoyi1026/spcma documentation built on May 4, 2019, 1:23 p.m.