wKendall | R Documentation |
This is function computes the perturbed version of the conditional Kendall's tau.
wKendall(trun, obs, delta = NULL, weights = NULL)
trun |
left truncation time satisfying |
obs |
observed failure time, must be the same length as |
delta |
an optional 0-1 vector of censoring indicator (0 = censored, 1 = event) for |
weights |
an optional perturbation weights. |
A numeric value representing the weighted conditional Kendall's tau.
data(channing, package = "boot")
chan <- subset(channing, sex == "Male" & entry < exit)
## When weights is not specified, this function reduces to condKendall()
with(chan, wKendall(entry, exit, cens))
mean(replicate(1000, with(chan, wKendall(entry, exit, cens, rexp(nrow(chan))))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.