inst/examples/ex_trSurvfit.R

data(channing, package = "boot")
chan <- subset(channing, sex == "Male" & entry < exit)

## No display
(fit <- with(chan, trSurvfit(entry, exit, cens)))

## With diagnostic plots and the survival estimate
with(chan, trSurvfit(entry, exit, cens, plots = TRUE))

## Plots survival estimate

plot(fit)

Try the tranSurv package in your browser

Any scripts or data that you put into this service are public.

tranSurv documentation built on June 8, 2025, 11:47 a.m.