pmcc | R Documentation |
pmcc
computes the conditional product-moment correlation coefficient proposed by Chen et al. (1996).
The conditional product-moment correlation coefficient uses only the uncensored events.
pmcc(trun, obs, a = 0, trans = "linear")
trun |
left truncation time satisfying |
obs |
observed failure time, must be the same length as |
a |
a numeric transformation parameter. The default value is 0, which applies no transformation.
This parameter must be greater than |
trans |
a character string specifying the transformation structure. The following are permitted:
|
A numeric value representing the product-moment correlation coefficient.
#' @seealso trSurvfit
data(channing, package = "boot")
chan <- subset(channing, sex == "Male" & entry < exit & cens == 1)
with(chan, pmcc(entry, exit)) ## cannot handle right censored data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.