gce_cutpoints: Risk-score cutpoints for GCE risk stratification

View source: R/cutpoints.R

gce_cutpointsR Documentation

Risk-score cutpoints for GCE risk stratification

Description

Splits subjects into ordered risk groups on the GCE risk score. With method = "optimal" the cutpoint(s) maximize a separation criterion by a greedy forward search; with method = "quantile" equal-sized groups are used.

The default criterion, "omegaplus", maximizes the between-group separation in log \omega^{+} (equivalently, the risk score / linear predictor). This is the additive scale on which the joint event-of-interest-vs-competing \omega^{+} contrast is defined, and – unlike separation measured on the exponential \omega^{+} scale – it is not sensitive to a few extreme high-risk subjects, so the search does not chase high-risk tails and tends to return balanced, well-separated groups. The alternative "cif" maximizes a joint Gray's test statistic (summed across both competing events) on the observed cumulative incidence.

Usage

gce_cutpoints(
  object,
  groups = 2,
  method = c("optimal", "quantile"),
  criterion = c("omegaplus", "cif"),
  min.prop = 0.1,
  nperm = 0,
  labels = NULL
)

## S3 method for class 'gce_cutpoints'
print(x, digits = max(3L, getOption("digits") - 3L), eps = 1e-04, ...)

## S3 method for class 'gce_cutpoints'
summary(object, ...)

## S3 method for class 'summary.gce_cutpoints'
print(x, digits = max(3L, getOption("digits") - 3L), eps = 1e-04, ...)

## S3 method for class 'gce_cutpoints'
plot(x, ...)

Arguments

object

a "gcemod" object from gcecox, gcefg, or gcecif (for the summary method, a "gce_cutpoints" object). For a gcecif fit the per-group summary reports mean \rho and share instead of \omega^{+} / \omega; the "omegaplus" criterion still means separation on the risk-score (linear-predictor) scale.

groups

number of groups (default 2).

method

"optimal" (default) or "quantile".

criterion

optimal-search criterion: "omegaplus" (default, log-\omega^{+} separation) or "cif" (joint Gray statistic on observed cumulative incidence of both events).

min.prop

minimum proportion of subjects per group (default 0.1).

nperm

number of permutations for the selection-adjusted p-value (default 0 = not computed). When nperm > 0, the maximally-selected joint Gray statistic is permuted (risk score vs. outcome) to give a p-value accounting for the data-driven choice of cutpoint.

labels

optional character labels for the groups (low to high risk).

x

a "gce_cutpoints" object.

digits

number of significant digits to print.

eps

threshold for printing the test p-values: values below eps are printed as < eps (see format.pval).

...

unused.

Value

An object of class "gce_cutpoints", with print, summary, and plot methods. print shows the cutpoints, the per-group table, and the group contrast; summary returns the per-group table (a data frame) together with the test results as an object of class "summary.gce_cutpoints"; plot draws the distribution of the risk score with the cutpoints marked. The object is a list with: groups (ordered factor), cutpoints (on the risk-score scale), score (the risk score), summary (per-group n, events, mean \omega^{+} / \omega), and test. The test element reports the Lunn-McNeil \omega^{+} contrast between groups – a test that the ratio of cause-specific (or subdistribution) hazards differs across groups – with the univariable \omega^{+} ratio estimate and CI ($omegaplus), the joint test ($statistic, $df, $p.value), the per-event Gray tests for comparison ($individual_gray), and a selection-adjusted $p.perm when nperm > 0.

Examples

data(hn)
fit <- gcecox(Surv(time, status) ~ age + t_cat + p16, data = hn, t = 5)
cp <- gce_cutpoints(fit, groups = 2)
cp
summary(cp)$groups
plot(cp)
table(cp$groups)

# with a selection-adjusted permutation p-value (slower)
gce_cutpoints(fit, groups = 2, nperm = 200)


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