simLinHaz.RdsimLinHaz generates simulated event history data assuming the event hazard is linear, hazEvent = b1 + a1*t, and the censoring hazard is constant, hazCens = b2.
simLinHaz(n, b1, a1, b2)
| n | Number of observations to simulate | 
|---|---|
| b1 | Intercept for the linear event hazard | 
| a1 | Slope for the linear 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
simConstHaz, fitConstHaz, fitLinHaz