simdata: Simulated dataset

Description Usage Format

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

1

Format

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


weightQuant documentation built on Jan. 5, 2022, 5:08 p.m.