pchcumhaz: Computation of the cumulative hazard function in the PCH...

Description Usage Arguments See Also 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.

See Also

mleIC, rsurv.

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/FastPseudo documentation built on Dec. 22, 2021, 4:12 a.m.