Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SurvLR

Transform Surv object to data frame with L and R values


Description

Takes a Surv object and transforms it into a data frame with two variables, L and R, representing the left and right interval of interval censored data. The failure time is known to be in the interval (L,R]. Right censored data are handled by setting L=R for observed and R=Inf for right censored. These are interpreted correctly by icfit and ictest.

Usage

SurvLR(x)

Arguments

x

a Surv object

Details

Currently type='counting' not supported.

Value

A data frame with two variables:

L

left end of interval

R

right end of interval

See Also

Called from icfit and ictest

Examples

time<-c(1,5,3,7)
status<-c(1,1,0,1)
y<-Surv(time,status)
SurvLR(y)

interval

Weighted Logrank Tests and NPMLE for Interval Censored Data

v1.1-0.7
GPL (>= 2)
Authors
Michael P. Fay
Initial release
2020-09-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.