simConstHaz.RdsimConstHaz 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:
timeThe event or censoring time
statusThe status indicator: TRUE for an event and FALSE for censoring
simLinHaz, fitConstHaz, fitLinHaz