pmcc: Product-Moment Correlation Coefficient

Description Usage Arguments See Also Examples

View source: R/pmcc.R

Description

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.

Usage

1
pmcc(trun, obs, a = 0, trans = "linear")

Arguments

trun

left truncation time satisfying trun <= obs.

obs

observed failure time, must be the same length as trun, might be right-censored.

a

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.

trans

a character string specifying the transformation structure. The following are permitted:

linear

linear transformation structure,

log

log-linear transformation structure,

exp

exponential transformation structure.

See Also

trSurvfit

Examples

1
2
3
data(channing, package = "boot")
chan <- subset(channing, sex == "Male" & entry < exit & cens == 1)
with(chan, pmcc(entry, exit)) ## cannot handle right censored data

stc04003/tranSurv documentation built on July 21, 2021, 6:46 p.m.