simConstHaz.Rd
simConstHaz
generates simulated event history data assuming the event hazard, b1, and censoring hazard, b2, are constants
simConstHaz(n, b1, b2)
n | Number of observations to simulate |
---|---|
b1 | Event hazard |
b2 | Censoring hazard |
A Surv object (survival package) with:
time
The event or censoring time
status
The status indicator: TRUE for an event and FALSE for censoring
simLinHaz, fitConstHaz, fitLinHaz