The data were simulated from a linear mixed model. Repeated data of the longitudinal outcome were simulated for 500 subjects. Death time was simulated depending on the (observed and unobserved) longitudinal outcome and on the binary covariate. Missing data before death were simulated using a logistic regression model including the binary covariate, the outcome at the previous visit and the observation status at the previous visit.
1 |
A data frame with 2123 observations over 500 different subjects and 7 variables.
id
subject identification number
X
binary covariate
death
death time (missing for subjects alive)
time
measurement time
age
age at measurement time
Y
longitudinal outcome
Ytrunc
longitudinal outcome truncated at the first missing value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.