Learn R Programming

eha (version 2.11.2)

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

Author

Göran Broström

Details

Exact calculation.

See Also

perstat