powered by
Cumulative Hazard for Piecewise Constant Hazards
pwA(t, haz, pw)
This returns the value of cumulative hazard at time t.
(numeric) study time-points.
numeric
(numeric vector) constant transition hazards.
numeric vector
(numeric vector) time intervals for the piecewise constant hazards.
pwA(1:5, c(0.5, 0.9), c(0, 4))
Run the code above in your browser using DataLab