example | R Documentation |

Example dataset for RsqMed.

Contains the following objects:

- Y
a vector of 100 observations, representing outcome.

- X
a vector of 100 observations, representing independent variable.

- M
a 100 * 100 matrix, representing mediators.

- Cov
a 100 * 2 matrix, representing covariates.

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.