SurvLR | R Documentation |

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`

.

```
SurvLR(x)
```

`x` |
a |

Currently type='counting' not supported.

A data frame with two variables:

`L` |
left end of interval |

`R` |
right end of interval |

Called from `icfit`

and `ictest`

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.