msmdata {WeightIt} | R Documentation |
Simulated data for a 3 time point sequential study
Description
This is a simulated dataset of 7500 units with covariates and treatment measured three times and the outcome measured at the end from a hypothetical observational study examining the effect of treatment delivered at each time point on an adverse event.
Usage
msmdata
Format
A data frame with 7500 observations on the following 10 variables.
X1_0
a count covariate measured at baseline
X2_0
a binary covariate measured at baseline
A_1
a binary indicator of treatment status at the first time point
X1_1
a count covariate measured at the first time point (after the first treatment)
X2_1
a binary covariate measured at the first time point (after the first treatment)
A_2
a binary indicator of treatment status at the second time point
X1_2
a count covariate measured at the second time point (after the second treatment)
X2_2
a binary covariate measured at the first time point (after the first treatment)
A_3
a binary indicator of treatment status at the third time point
Y_B
a binary indicator of the outcome event (e.g., death)
Examples
data("msmdata")