example_data {BayesGmed} | R Documentation |

## example_data: A simulated data set for illustrating mediation analysis in BayesGmed.

### Description

The data set contains a binary outcome variable Y, a binary exposure A,
a binary mediator M, and two confounding variables (Z1 and Z2) for
300 individuals.

### Usage

```
example_data
```

### Format

`example_data`

A data frame with 300 rows and 5 columns:

- Z1, Z2
confounders

- A
binary exposure

- M
binary mediator

- Y
binary outcome

...

[Package

*BayesGmed* version 0.0.3

Index]