View source: R/readmission_prep.R
| readmission_prep | R Documentation |
Reads the hospital readmission data of 403 colorectal cancer patients
(Gonzalez et al., 2005), shipped with wnpmle as a copy of the
readmission data from the frailtypack package, and converts
them to the format used by wnpmle_fit: one row per
readmission (status 1), plus a final row for death (status 2) or censoring
(status 0) unless the follow-up of a surviving patient ends with a
readmission.
readmission_prep(tau = NULL)
tau |
Optional end of follow-up (days). If given, readmissions after
|
The data contain 403 patients with 458 readmissions and 109 deaths. All covariates are taken at baseline (the first record of each patient), as required by the marginal rate model with external covariates; the Charlson index recorded later in follow-up is not used. This is the data set analysed in Bellach and Kosorok (2026).
A data frame with columns:
id |
Patient identifier. |
time |
Days since surgery of the readmission, death or censoring. |
status |
0 = censored, 1 = readmission (recurrent event), 2 = death (terminal event). |
chemo |
Chemotherapy: factor with levels |
sex |
Factor with levels |
dukes |
Dukes' tumour stage: factor with levels |
charlson |
Charlson comorbidity index at baseline: factor with
levels |
Copy of the readmission data from the frailtypack package
(Rondeau et al.; GPL (>= 2)).
Gonzalez, J.R., Fernandez, E., Moreno, V., Ribes, J., Peris, M., Navarro, M., Cambray, M. and Borras, J.M. (2005). Sex differences in hospital readmission among colorectal cancer patients. Journal of Epidemiology and Community Health, 59(6), 506-511. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1136/jech.2004.028902")}
rdata <- readmission_prep()
head(rdata)
table(rdata$status)
table(readmission_prep(tau = 1460)$status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.