medsim: Simulated dataset for regmed package

Description Usage Format

Description

Example data simulated from 2 response (y) variables, 10 exposure (x) variables, and 200 mediators (med). The all variables are generated from multivariate standard normal, with varying degrees of association between exposure, mediators, and responses.

Usage

1
data("medsim")

Format

Three data frames with 100 observsations each:

x

matrix with 10 columns of continuous exposure variables

y

matrix with 2 columns of continuous response variables

med

numeric matrix of 200 columns of simulated mediators between exposures and responses


regmed documentation built on April 13, 2021, 1:07 a.m.