piecewise: Piecewise hazards
Description
Calculate piecewise hazards, no. of events, and exposure times in each
interval indicated by cutpoints.
Usage
piecewise(enter, exit, event, cutpoints)
Value
A list with components
- events
Vector of number of events
- exposure
Vector of total
exposure time
- intensity
Vector of hazards, intensity
==
events
/ exposure
Arguments
- enter
Left interval endpoint
- exit
Right interval endpoint
- event
Indicator of event
- cutpoints
Vector of cutpoints
Details
Exact calculation.