
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Calculate piecewise hazards, no. of events, and exposure times in each interval indicated by cutpoints.
piecewise(enter, exit, event, cutpoints)
Left interval endpoint
Right interval endpoint
Indicator of event
Vector of cutpoints
A list with components
Vector of number of events
Vector of total exposure time
Vector of hazards, intensity
==
events
/ exposure
Exact calculation.