mzipmed_data {mzipmed}R Documentation

Data to be used in the mzipmed package examples

Description

Data to be used in the mzipmed package examples

Usage

mzipmed_data

Format

A dataframe with 500 rows and 10 variables.

X

Simulated binary exposure ~Bernoulli(0.5)

C1

Simulated covariate ~Normal(0,1)

C2

Simulated covariate ~Beta(2,2)

ziM

Zero-inflated count mediator based on X,C1,C2

lmM

Continuous mediator based on X,C1,C2 with error term ~Normal(0,4)

binM

Binary mediator based on X,C1,C2

lmY

Continuous outcome to be used for ziM

binY

Binary outcome to be used for ziM

ziY1

Zero-inflated count outcome to be used for lmM

ziY2

Zero-inflated count outcome to be used for binM

@source Simulated to serve as an example

@examples data(mzipmed_data)


[Package mzipmed version 1.4.0 Index]