med_dat: Mediation Example Dataset

med_datR Documentation

Mediation Example Dataset

Description

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

Usage

med_dat

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

...


hdmed documentation built on May 29, 2024, 10:26 a.m.