sim_data {intmed}R Documentation

A simulated dataset for demonstrating mediation analysis with a single mediator

Description

A simulated dataset with three variables.

Usage

sim_data

Format

A data frame with 1000 rows:

x

Exposure variable

m

Mediator

y

Outcome


[Package intmed version 0.1.2 Index]