fitConstHaz.RdfitConstHaz does a maximum likelihood fit of the input data assuming constant event and censoring hazards. The input is a Surv object (package survival) with a time column and a status column. Time is the event or censoring time. Status is 1 (or TRUE) if the event occured and 0 (or FALSE) if censoring occurred.
fitConstHaz(survObj)
| survObj | A Surv object (survival package) with event times and a status indicator (see |
|---|
A list with three fields
bOverall, combined event and censoring rate
b1Event rate
b2Censoring rate
simConstHaz