| gcefg | R Documentation |
Fits a generalized competing event (GCE) model on the subdistribution hazard
scale and estimates covariate effects on \tilde\omega^{+} using a
Lunn-McNeil-style stacked Fine-Gray model (see lunnmcneil with
type = "finegray"), giving confidence intervals, Wald tests, and an
omnibus test from one joint model. A GCE risk score is formed from the
model linear predictor.
gcefg(formula, ...)
## S3 method for class 'formula'
gcefg(
formula,
data,
subset,
na.action,
t = NULL,
event = NULL,
competing = NULL,
conf.level = 0.95,
standardize = FALSE,
se = c("robust", "boot"),
B = 200,
contrasts = NULL,
model = TRUE,
...
)
## Default S3 method:
gcefg(
formula,
Ind,
Cov,
M = NULL,
t = NULL,
conf.level = 0.95,
standardize = FALSE,
se = c("robust", "boot"),
B = 200,
...
)
formula |
a formula with a |
... |
passed to |
data |
a data frame in which the formula is evaluated. |
subset, na.action |
as in |
t |
default readout time for time-dependent quantities. If |
event, competing |
code (or factor level) marking the event of interest
and the competing event; see |
conf.level |
confidence level (default |
standardize |
logical; controls only the reported omega+ ratio
scale (default |
se |
standard-error method passed to |
B |
number of bootstrap resamples when |
contrasts |
optional contrasts specification passed to
|
model |
logical; keep the model frame in the fitted object (default
|
Ind |
(default method) a data frame of event indicators. Column 1 =
event of interest, column 2 = competing event ( |
Cov |
(default method) a data frame of covariates. |
M |
deprecated and ignored. The number of bins is now an argument of
the displays ( |
The interface, the role of t, and the returned object are as for
gcecox. Predicted absolute \tilde\omega^{+}(t) values
are obtained from two separate Fine-Gray fits
(crr), stored as $fit1 and $fit2.
An object of class c("gcefg", "gcemod") with the same
components and methods as a gcecox fit, on the
subdistribution scale; see gcemod-methods.
gcecox, lunnmcneil,
gcemod-methods
data(hn)
fit <- gcefg(Surv(time, status) ~ age + smoker + p16, data = hn, t = 5)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.