Learn R Programming

hdmed (version 1.0.0)

med_dat: Mediation Example Dataset

Description

A toy dataset for demonstrating mediation analysis in settings where there are multiple mediators

Usage

med_dat

Arguments

Format

med_dat

A list with three items:

Y

numeric vector containing the outcome variable

M

numeric matrix of 20 continuous mediators

A

numeric vector containing the exposure variable

...