piecewise {eha}R Documentation

Piecewise hazards

Description

Calculate piecewise hazards, no. of events, and exposure times in each interval indicated by cutpoints.

Usage

piecewise(enter, exit, event, cutpoints)

Arguments

enter Left interval endpoint
exit Right interval endpoint
event Indicator of event
cutpoints Vector of cutpoints

Details

Exact calculation.

Value

A list with components

deaths Vector of number of deaths
exposure Vector of total exposure time
hazard Vector of hazards, hazard == deaths / exposure

Author(s)

Göran Broström

See Also

perstat


[Package eha version 0.98-0 Index]