simConstHaz generates simulated event history data assuming the event hazard, b1, and censoring hazard, b2, are constants

simConstHaz(n, b1, b2)

Arguments

n

Number of observations to simulate

b1

Event hazard

b2

Censoring hazard

Value

A Surv object (survival package) with:

time

The event or censoring time

status

The status indicator: TRUE for an event and FALSE for censoring

See also

simLinHaz, fitConstHaz, fitLinHaz