medsim {regmed} | R Documentation |
Simulated dataset for regmed package
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
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
[Package regmed version 2.1.0 Index]