Computes the conditional Kendall's tau and inference
cKendall(
trun,
obs,
delta = NULL,
method = "MB",
weights = NULL,
a = 0,
trans = "linear",
...
)
left truncation time satisfying trun
<= obs
.
observed failure time, must be the same length as trun
, might be right-censored.
an optional 0-1 vector of censoring indicator (0 = censored, 1 = event) for obs
.
If this vector is not specified, cKendall
assumes no censoring and all observed failure time
denote events.
a character string specifying the different version of conditional Kendall's tau to be computed. The following are permitted:
MB
conditional Kendall's tau proposed in Martin and Betensky (2005) as \(\hat{\tau}_c,\)
IPW1
inverse probability weighted estimator proposed in Austin and Betensky (2014) as \(\hat{\tau}_{c2},\)
IPW2
restricted inverse probability weighted estimator proposed in Austin and Betensky (2014) as \(\hat{\tau}_{c3}.\)
an optional vector of sampling weights used when method = IPW1
or method = IPW2
.
Inverse probability censored weighting (IPCW) is the default.
a numeric transformation parameter. The default value is 0, which applies no transformation.
This parameter must be greater than -1
.
See ?tranSurvfit
for the transformation model structure.
a character string specifying the transformation structure. The following are permitted:
linear transformation structure,
log-linear transformation structure,
exponential transformation structure.
for future methods.
This function performs statistical test for quasi-independence between truncation time and failure time. The hypothesis test is based on the conditional Kendall's tau of Martin and Betensky (2005) and the two versions of the inverse probability weighted Kendall's tau of Austin and Betensky (2014).
The output contains the following components:
consistent point estimate of the conditional Kendall's tau.
asymptotic standard error of the conditional Kendall's tau estimator.
the value of the normal test statistic.
the (Wald) p-value of the test.
the transformation model (if applied).
the estimated transformation parameter.
Martin E. and Betensky R. A. (2005), Testing quasi-independence of failure and truncation times via conditional Kendall's tau, Journal of the American Statistical Association, 100 (470): 484-492.
Austin, M. D. and Betensky R. A. (2014), Eliminating bias due to censoring in Kendall's tau estimators for quasi-independence of truncation and failure, Computational Statistics & Data Analysis, 73: 16-26.
# NOT RUN {
data(channing, package = "boot")
chan <- subset(channing, sex == "Male" & entry < exit)
attach(chan)
cKendall(entry, exit, cens)
cKendall(entry, exit, cens, method = "IPW1")
cKendall(entry, exit, cens, method = "IPW2")
detach(chan)
# }
Run the code above in your browser using DataLab