A dataset containing simulated data where a time to event outcome depends quadratically on a partially observed covariate.
ex_coxquad
A data frame with 1000 rows and 6 variables:
Time to event or censoring
Binary indicator of whether event occurred or individual was censored
Fully observed covariate, with linear effect on outcome (on log hazard scale)
Partially observed normally distributed covariate, with quadratic effect on outcome (on log hazard scale)
The square of x, which thus has missing values also
An auxiliary variable (i.e. not contained in the substantive model)