Description Usage Format Details Examples
"env.example" is an R environment containing the data generated from the proposed high-dimensional mediation model with p=50.
1 | data("env.example")
|
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.
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.
1 2 3 4 | data(env.example)
X<-get("X",env.example)
M<-get("M",env.example)
Y<-get("Y",env.example)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.