| gce_cutpoints | R Documentation |
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.
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, ...)
object |
a |
groups |
number of groups (default |
method |
|
criterion |
optimal-search criterion: |
min.prop |
minimum proportion of subjects per group (default |
nperm |
number of permutations for the selection-adjusted p-value
(default |
labels |
optional character labels for the groups (low to high risk). |
x |
a |
digits |
number of significant digits to print. |
eps |
threshold for printing the test p-values: values below
|
... |
unused. |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.