Learn R Programming

BayesGmed (version 0.0.3)

example_data: 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

Arguments

Format

example_data

A data frame with 300 rows and 5 columns:

Z1, Z2

confounders

A

binary exposure

M

binary mediator

Y

binary outcome

...