Title: | Nonparametric Analysis of Bivariate Gap Time with Competing Risks |
---|---|
Description: | For studying recurrent disease and death with competing risks, comparisons based on the well-known cumulative incidence function can be confounded by different prevalence rates of the competing events. Alternatively, comparisons of the conditional distribution of the survival time given the failure event type are more relevant for investigating the prognosis of different patterns of recurrence disease. This package implements a nonparametric estimator for the conditional cumulative incidence function and a nonparametric conditional bivariate cumulative incidence function for the bivariate gap times proposed in Huang et al. (2016) <doi:10.1111/biom.12494>. |
Authors: | Chenguang Wang [aut, cre], Chiung-Yu Huang [aut], Mei-Cheng Wang [aut] |
Maintainer: | Chenguang Wang <[email protected]> |
License: | GPL (>= 3) |
Version: | 1.1 |
Built: | 2024-12-11 06:57:57 UTC |
Source: | CRAN |
This package implements the non-parametric estimator for the conditional cumulative incidence function and the non-parametric conditional bivariate cumulative incidence function for the bivariate gap times proposed in Huang et al. (2016).
Denote by the time to a failure event of interest. Suppose the study
participants can potentially experience any of several, say
,
different types of failure events. Let
indicate
the failure event type.
The cumulative incidence function (CIF) for the th competing event is
defined as
Huang et al. (2016) proposed a non-parametric estimator for the conditional cumulative incidence function (CCIF)
where the constant is determined from the knowledge that survival times
could potentially be observed up to time
.
To compare the CCIF of different failure types , we consider the
following class of stochastic processes
where is a weight function. For a formal
test, we propose to use the supremum test statistic
an omnibus test that is consistent against any
alternatives under which for some
.
An approximate -value corresponding to the supremum test statistic is
obtained by applying the technique of permutation test.
For bivariate gap times (e.g. time to disease recurrence and the residual
lifetime after recurrence), let and
denote the two gap times so
that
gives the total survival time
. Note that, given the
first gap time
being uncensored, the observable region of the second
gap time
is restricted to
. Because the two gap times
and
are usually correlated, the second gap time
is subject to
induced informative censoring
. As a result, conventional statistical
methods can not be applied directly to estimate the marginal distribution
of
.
Huang et al. (2016) proposed non-parametric estimators for the cumulative
incidence function for the bivariate gap time
and the conditional bivariate cumulative incidence function
To compare the joint distribution functions and
of different failure types
, we consider the supremum test
based on the following class of
processes
where is a prespecified weight function.
The approximate -value can be obtained through simulation by applying
the technique of permutation tests.
To evaluate the association between the bivariate gap times, Huang et al. (2016) proposed a modified Kendall's tau measure that was estimable with observed data
Huang CY, Wang C, Wang MC (2016). Nonparametric analysis of bivariate gap time with competing risks. Biometrics. 72(3):780-90. doi: 10.1111/biom.12494
Estimate the conditional cumulative incidence function. See bigtcr-package
.
get.ccif(obs.y, event, tau = Inf)
get.ccif(obs.y, event, tau = Inf)
obs.y |
|
event |
0: censored; |
tau |
Conditioning time |
A matrix with class ccif that has columns. Columns 1 to
correspond to
to
. Each row represents a distinct observed time
point
and the row name contains the value of
.
Gj <- get.ccif(obs.y = pancancer$obs.y, event = pancancer$min.type, tau = 120);
Gj <- get.ccif(obs.y = pancancer$obs.y, event = pancancer$min.type, tau = 120);
Estimate the conditional bivariate cumulative incidence function. See
bigtcr-package
.
get.gap.ccif(obs.y, event, v, tau = Inf)
get.gap.ccif(obs.y, event, v, tau = Inf)
obs.y |
|
event |
0: censored; |
v |
Time to the first failure event (e.g. disease recurrence) |
tau |
Conditioning time |
A matrix with class gap.ccif
that has columns. Column 1 and
2 are
. The rest columns correspond to
to
. Each row represents a distinct observed time point and the
row name contains the value of this time point.
Hj <- get.gap.ccif(obs.y=pancancer$obs.y, event=pancancer$min.type, v=pancancer$v, tau=120)
Hj <- get.gap.ccif(obs.y=pancancer$obs.y, event=pancancer$min.type, v=pancancer$v, tau=120)
Estimate the modified cause-specific Kendall's tau for the evaluation of
association for bivariate gap time with competing risks. See bigtcr-package
.
get.gap.kt(obs.y, event, v, tau = Inf, nbs = 0)
get.gap.kt(obs.y, event, v, tau = Inf, nbs = 0)
obs.y |
|
event |
0: censored; |
v |
Time to the first failure event (e.g. disease recurrence) |
tau |
Conditioning time |
nbs |
Number of bootstrap samples for bootstrap variances. When nbs is smaller than 1, bootstrap variances are not evaluated. |
A list of the estimation and variances of modified casue-specific Kendall's tau
Kt <- get.gap.kt(obs.y=pancancer$obs.y, event=pancancer$min.type, v=pancancer$v, tau=120, nbs=5)
Kt <- get.gap.kt(obs.y=pancancer$obs.y, event=pancancer$min.type, v=pancancer$v, tau=120, nbs=5)
Compare the bivariate CCIF of different failure typess by applying the technique of
permutation test. See bigtcr-package
.
get.gap.pval(obs.y, event, v, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
get.gap.pval(obs.y, event, v, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
obs.y |
|
event |
0: censored; |
v |
Time to the first failure event (e.g. disease recurrence) |
tau |
Conditioning time |
comp.event |
Failure events for CCIF comparison |
np |
Number of permutations |
Kt |
A weight function that takes one parameter |
P-value of the hypothesis test .
gap.pval <- get.gap.pval(pancancer$obs.y, pancancer$min.type, pancancer$v, tau=120, comp.event=c(1,2), np=20);
gap.pval <- get.gap.pval(pancancer$obs.y, pancancer$min.type, pancancer$v, tau=120, comp.event=c(1,2), np=20);
Estimate Kendall's tau association between two random variables
get.kendalltau(v, w)
get.kendalltau(v, w)
v |
Vector of numeric values. Missing values will be ignored. |
w |
vector of numeric values. Missing values will be ignored. |
kt <- get.kendalltau(pancancer$v, pancancer$w);
kt <- get.kendalltau(pancancer$v, pancancer$w);
Compare the CCIF of different failure typess by applying the technique of
permutation test. See bigtcr-package
.
get.pval(obs.y, event, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
get.pval(obs.y, event, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
obs.y |
|
event |
0: censored; |
tau |
Conditioning time |
comp.event |
Failure events for CCIF comparison |
np |
Number of permutations |
Kt |
A weight function that takes one parameter |
P-value of the hypothesis test .
pval <- get.pval(pancancer$obs.y, pancancer$min.type, tau=120, comp.event=c(1,2), np=20);
pval <- get.pval(pancancer$obs.y, pancancer$min.type, tau=120, comp.event=c(1,2), np=20);
Simulated data used in bigtcr examples.
A dataframe with 3 variables:
Observed time to failure events or censoring in months
Type of failure events
Censored
death with metastasis limited to lung only
death with metastasis that involves sites other than lung (e.g. liver)
death without disease recurrence
Time to recurrence. NA if no recurrence observed
Data simulated based on the patients who had surgical resection of pancreatic adenocarcinomas and had postoperative follow-up at the Johns Hopkins Hospital between 1998 and 2007.