pchcumhaz: Computation of the cumulative hazard function

Description Usage Arguments Examples

View source: R/pchcumhaz.R

Description

Given a sequence of time, a set of cuts and hazard values, compute the cumulative hazard function from a piecewise-constant hazard model

Usage

1
pchcumhaz(seqtime, cuts, alpha)

Arguments

seqtime

the time sequence.

cuts

the sequence of cuts.

alpha

the value of the hazard function between each cut. Should be of length equal to length(cuts)+1.

Examples

1
2
3
4
cuts=c(20,40,50,70)
alpha=c(0,0.05,0.1,0.2,0.4)/10
seqtime=seq(0,100,by=10)
pchcumhaz(seqtime,cuts,alpha)

obouaziz/pchsurv documentation built on Sept. 7, 2020, 11:03 a.m.