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

Arguments

n

Number of observations to simulate

b1

Intercept for the linear event hazard

a1

Slope for the linear 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

simConstHaz, fitConstHaz, fitLinHaz