sim_t4: Simulated Longitudinal Data

sim_t4R Documentation

Simulated Longitudinal Data

Description

A dataset with a binary outcome, four time varying treatment nodes, and four time varying covariates.

Usage

sim_t4

Format

A data frame with 5000 rows and 10 variables:

ID

observation ID

L_1

Time varying covariate time 1

A_1

Treatment node at time 1, effected by L_1

L_2

Time varying covariate time 1, effected by L_1 and A_1

A_2

Treatment node at time 2, effected by L_2 and A_1

L_3

Time varying covariate time 1, effected by L_2 and A_2

A_3

Treatment node at time 3, effected by L_3 and A_2

L_4

Time varying covariate time 1, effected by L_3 and A_3

A_4

Treatment node at time 3, effected by L_4 and A_3

Y

Binary outcome at time 5, effected by L_4 and A_4


lmtp documentation built on June 27, 2024, 9:10 a.m.