plr: Perform the paired log-rank test.

View source: R/data.gen.R

plrR 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 dat.

Y.name

the name of the survival time variable in dat.

D.name

the name of the event indicator in dat.

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)

plac documentation built on July 9, 2023, 6:37 p.m.