Learn R Programming

plac (version 0.1.3)

plr: 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")

Value

a list containing the test statistic and the p-value of the paired log-rant test.

Arguments

dat

a data.frame of left-truncated right-censored data.

A.name

the name of the truncation time variable in dat.

Y.name

the name of the survival time variable in dat.

D.name

the name of the event indicator in dat.

References

Jung, S.H. (1999). Rank tests for matched survival data. Lifetime Data Analysis, 5(1):67-79.

Examples

Run this code
dat = sim.ltrc(n = 50, distr.A = "weibull")$dat
plr(dat)

Run the code above in your browser using DataLab