plr: Perform the paired log-rank test.

Description Usage Arguments Value References Examples

View source: R/data.gen.R

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

1
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

1
2
dat = sim.ltrc(n = 100, distr.A = "weibull")$dat
plr(dat)

Example output

Loading required package: survival
$Stat
[1] 0.7840221

$P
[1] 0.4330271

plac documentation built on May 1, 2019, 10:24 p.m.