Description Usage Format Details References Examples

"env.single" is an R environment containing a data frame of data generated from 100 trials, the true coefficients and the coavariance matrix of the model errors.

1 | ```
data("env.single")
``` |

An R environment.

`data1`

a data frame with

`Z`

the treatment assignment,`M`

the mediator and`R`

the interested outcome.`Theta`

a 2 by 2 matrix, which is the coefficients of the model.

`Sigma`

a 2 by 2 matrix, which is the covariance matrix of the model errors.

The number of subjects is 100. The coefficients are set to be *A = 0.5*, *C = 0.5* and *B = -1*. The variances of the model errors are *σ_1^2 = 1*, *σ_2^2 = 4* and the correlation is *δ = 0.5*. See Section 5.1 of the reference.

Zhao, Y., & Luo, X. (2014). *Estimating Mediation Effects under Correlated Errors with an Application to fMRI.* arXiv preprint arXiv:1410.7217.

1 2 | ```
data(env.single)
dt<-get("data1",env.single)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.