| simdata {weightQuant} | R Documentation |
Simulated dataset
Description
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.
Usage
simdata
Format
A data frame with 2123 observations over 500 different subjects and 7 variables.
idsubject identification number
Xbinary covariate
deathdeath time (missing for subjects alive)
timemeasurement time
ageage at measurement time
Ylongitudinal outcome
Ytrunclongitudinal outcome truncated at the first missing value
[Package weightQuant version 1.0.1 Index]