plr | R Documentation |
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.
plr(dat, A.name = "As", Y.name = "Ys", D.name = "Ds")
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 |
a list containing the test statistic and the p-value of the paired log-rant test.
Jung, S.H. (1999). Rank tests for matched survival data. Lifetime Data Analysis, 5(1):67-79.
dat = sim.ltrc(n = 50, distr.A = "weibull")$dat
plr(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.