Generalized competing event (GCE) modeling of omega+ — the ratio of the hazard for an event of interest to the hazard for a competing event — on the cause-specific (Cox) and subdistribution (Fine-Gray) scales, with confidence intervals and p-values from the Lunn-McNeil stacked-data approach.
gcecox(),
gcefg(), lunnmcneil()).$riskscore).gce_cutpoints(method = "optimal")).gce_alligator()).gce_calibration()).gce_tidy(fit, effects = TRUE)).gce_riskscore(), gce_scaling()).gcecif()). Returns a gcemod object, so it
works with gce_tidy(), gce_scaling(), and
gce_riskscore() like the gcecox() /
gcefg() fits.Per-subject omega = omega+/(1+omega+) is kept as a descriptive
quantity ($omega) so model-predicted values can be compared
with observed ones. Discrimination is available via
gce_performance() (cause-specific C-index).
# one time: build the bundled example datasets
source("data-raw/make_sample.R") # writes data/hn.rda and data/prostate.rda
# regenerate man/ and NAMESPACE from the roxygen headers
devtools::document()
devtools::check()library(gcemod)
data(hn) # head-and-neck cohort: status 1 = recurrence, 2 = death w/o recurrence
Ind <- data.frame(event = as.integer(hn$status == 1),
competing = as.integer(hn$status == 2))
Cov <- hn[, c("age", "smoker", "t_cat", "n_cat", "p16")]
fit <- gcecox(hn$time, Ind, Cov, M = 5, t = 5) # or gcefg(...) / gcecif(...)
summary(fit)
cif <- gcecif(hn$time, Ind, Cov, t = 5) # cumulative-incidence-ratio scale
gce_tidy(cif) # same tidy interface as gcecox/gcefg
gce_tidy(fit, effects = TRUE) # primary / competing / total / relative HRs
cuts <- gce_cutpoints(fit, groups = 3, method = "optimal")
gce_alligator(fit, groups = cuts)
gce_calibration(fit, which = "omegaplus", groups = 5)See vignette("gcemod") for the full workflow.
Lunn M, McNeil D (1995) Applying Cox regression to competing risks. Biometrics 51:524-32.
Carmona R, et al. (2014) Validated competing event model for the stage I-II endometrial cancer population. Int J Radiat Oncol Biol Phys 89:888-98.
Carmona R, et al. (2016) Improved method to stratify elderly patients with cancer at risk for competing events. J Clin Oncol 34:1270-77.
Mell LK, et al. (2019) Nomogram to predict the benefit of intensive treatment for locoregionally advanced head and neck cancer. Clin Cancer Res 25:7078-7088.
Zakeri K, et al. (2020) Predictive classifier for intensive treatment of head and neck cancer. Cancer 126:5263-5273.
Mell LK, et al. (2024) Effects of androgen deprivation therapy on prostate cancer outcomes according to competing event risk. Eur Urol 85:373-381.