fitConstHaz 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)

Arguments

survObj

A Surv object (survival package) with event times and a status indicator (see simConstHaz)

Value

A list with three fields

b

Overall, combined event and censoring rate

b1

Event rate

b2

Censoring rate

See also

simConstHaz