data5: Toy dataset 5

data5R Documentation

Toy dataset 5

Description

A toy dataset for causal mediation analysis with 3 uncausally related mediators and survival outcome.

Usage

data("data4")

Format

A data frame with 3000 observations on the following 8 variables.

Exposure

a numeric vector

M1

a numeric vector

M2

a numeric vector

M3

a numeric vector

event

event

surv_time

time before event

Examples

#data(data5)
#modM1=lm(M1 ~ Exposure, data = data5)
#modM2=lm(M2 ~ Exposure, data = data5)
#modM3=lm(M3 ~ Exposure, data = data5)
#lmodel.m=list(modM1,modM2, modM3)
#model.y=aalen(Surv(surv_time, event) ~ const(Exposure) + const(M1) + const(M2)
#+ const(M3), data = data5, robust=T)
#multi.media=multimediate(lmodel.m,correlated=TRUE,model.y,treat='Exposure',
#treat.value=1,control.value=0,J=1000,conf.level=0.95,data=data5)
#summary(multi.media, opt='avg')

AllanJe/multimediate documentation built on July 25, 2024, 12:14 p.m.