Learn R Programming

intmed (version 0.1.2)

sim_data: A simulated dataset for demonstrating mediation analysis with a single mediator

Description

A simulated dataset with three variables.

Usage

sim_data

Arguments

Format

A data frame with 1000 rows:

x

Exposure variable

m

Mediator

y

Outcome