gcecif: Generalized competing event model on the...

View source: R/gcecif.R

gcecifR Documentation

Generalized competing event model on the cumulative-incidence-ratio scale

Description

Fits a generalized competing event (GCE) model on the cumulative incidence scale, estimating covariate effects on the ratio of cumulative incidences \rho(t) = F_1(t) / F_2(t) at a landmark time t, where F_1 and F_2 are the cumulative incidence functions of the event of interest and the competing event. \rho(t) is the odds that a subject's realized event by time t is the event of interest rather than the competing event, so gcecif() is a cumulative-incidence-scale companion to the cause-specific (gcecox) and subdistribution (gcefg) omega+ models and returns a compatible "gcemod" object.

Effects are estimated by a stacked pseudo-observation regression: each subject contributes one jackknife pseudo-observation for F_1(t) and one for F_2(t) (both mean-type functionals of the Aalen-Johansen estimator, for which conditional unbiasedness of pseudo-observations is established), and a single log-link GEE is fit to the stacked pairs with an event-type indicator. The main effects model \log F_2(t \mid z); the event-type interaction coefficients estimate \log \rho(t \mid z) = \log F_1(t \mid z) - \log F_2(t \mid z) directly. Because each subject appears twice, a cluster-robust (subject) sandwich variance is used, which captures the dependence between a subject's two pseudo-observations induced by the shared all-cause survivor. This is the cumulative-incidence-scale analogue of the stacked Lunn-McNeil construction used on the two hazard scales. A GCE risk score is formed from the interaction linear predictor, so exp(riskscore) is a subject's \rho relative to the average subject (see gce_riskscore, gce_scaling).

Usage

gcecif(formula, ...)

## S3 method for class 'formula'
gcecif(
  formula,
  data,
  subset,
  na.action,
  t,
  event = NULL,
  competing = NULL,
  conf.level = 0.95,
  contrasts = NULL,
  model = TRUE,
  ...
)

## Default S3 method:
gcecif(formula, Ind, Cov, M = NULL, t, conf.level = 0.95, ...)

Arguments

formula

a formula with a Surv(time, status) response (formula method), or the numeric vector of follow-up times (default method, where it may also be named Time).

...

unused.

data

a data frame in which the formula is evaluated.

subset, na.action

as in model.frame.

t

landmark time at which \rho is evaluated (required).

event, competing

code (or factor level) marking the event of interest and the competing event; see lunnmcneil.

conf.level

confidence level (default 0.95).

contrasts

optional contrasts specification passed to model.matrix.

model

logical; keep the model frame in the fitted object (default TRUE).

Ind

(default method) a data frame of event indicators. Column 1 = event of interest, column 2 = competing event (0/1).

Cov

(default method) a data frame of covariates.

M

deprecated and ignored. The number of bins is now an argument of the displays (plot(fit, which = "riskscore", bins = ), gce_calibration).

Details

The model is specified with a formula whose response is Surv(time, status), as for gcecox; the landmark time t is part of the estimand and must be supplied. The default method is the matrix interface of earlier versions, retained for backward compatibility.

Because F_k(t) = \int_0^t S(u^-)\,h_k(u)\,du with S the all-cause survivor, \rho(t) is a survival-weighted time-average of the instantaneous cause-specific hazard ratio \omega^{+}(u); under a time-constant \omega^{+} it equals \omega^{+} exactly. The ratio of cumulative incidences is a non-collapsible, marginal-over-time measure, so exp(coef) is interpreted as a conditional association with the realized event mix, not a mechanism-level per-cause effect.

The estimating function is linear in the two per-cause (mean-type) pseudo-observations, so its conditional unbiasedness follows from the standard pseudo-observation theory (Graw et al. 2009; Overgaard et al. 2017); pseudo-observations of the nonlinear ratio itself are not used. The working model comprises a log-linear model for F_2(t \mid z) (the nuisance main effects, reported as $coef_f2) and a log-linear model for \rho(t \mid z) (the target interactions, reported as $coef).

The estimand is defined for a genuine competing-risks setting, in which both F_1(t) and F_2(t) are appreciable at the landmark t. If the competing event is effectively absent, or t precedes appreciable competing-event incidence, \log \rho is weakly identified and the fit may fail or return very large standard errors; this should be read as a signal that the competing-risks premise does not hold.

Value

An object of class c("gcecif", "gcemod"); see gcemod-methods for the available methods. The list contains coef and var (log \rho ratios and their covariance matrix), omnibus (Wald test that all \rho ratios equal 1), riskscore (interaction linear predictor, mean-centered), scaling (covariate means/SDs and per-SD effects), F1, F2, rho0 (marginal F_1(t)/F_2(t)), rho (per-subject fitted \rho), pseudo (a two-column data frame of per-cause pseudo-observations), coef_rho and coef_f2 (the full log-linear models for \rho(t \mid z) and the nuisance F_2(t \mid z), intercepts included), converged, and the model terms, xlevels, contrasts, and model frame.

References

Andersen PK, Klein JP, Rosthoj S (2003). Generalized linear models for correlated pseudo-observations, with applications to multi-state models. Biometrika 90:15-27.

Graw F, Gerds TA, Schumacher M (2009). On pseudo-values for regression analysis in competing risks models. Lifetime Data Analysis 15:241-255.

Overgaard M, Parner ET, Pedersen J (2017). Asymptotic theory of generalized estimating equations based on jack-knife pseudo-observations. The Annals of Statistics 45:1988-2015.

Overgaard M, Parner ET, Pedersen J (2018). Estimating the variance in a pseudo-observation scheme with competing risks. Scandinavian Journal of Statistics 45:923-940.

See Also

gcecox, gcefg, gcemod-methods, gce_tidy

Examples

data(prostate)
fit <- gcecif(Surv(time, status) ~ age + psa + gleason + t2b + comorbidity,
              data = prostate, t = 10)
summary(fit)
predict(fit, newdata = prostate[1:3, ], type = "ratio")

gcemod documentation built on Dec. 1, 2026, 1:06 a.m.