plr {plac} | R Documentation |
Perform the paired log-rank test.
Description
Perform the paired log-rank test on the truncation times and the residual survival times to check the stationarity assumption (uniform truncation assumption) of the left-truncated right-censored data.
Usage
plr(dat, A.name = "As", Y.name = "Ys", D.name = "Ds")
Arguments
dat |
a data.frame of left-truncated right-censored data. |
A.name |
the name of the truncation time variable in |
Y.name |
the name of the survival time variable in |
D.name |
the name of the event indicator in |
Value
a list containing the test statistic and the p-value of the paired log-rant test.
References
Jung, S.H. (1999). Rank tests for matched survival data. Lifetime Data Analysis, 5(1):67-79.
Examples
dat = sim.ltrc(n = 50, distr.A = "weibull")$dat
plr(dat)
[Package plac version 0.1.3 Index]