Learn R Programming

PWEALL (version 1.3.0.1)

qpwe: Piecewise exponential distribution: quantile function

Description

This will provide the quantile function of the specified piecewise exponential distribution

Usage

qpwe(p=seq(0,1,by=0.1),rate=c(0,5,0.8),tchange=c(0,3))

Value

q

quantiles

Arguments

p

a vector of probabilities

rate

piecewise constant event rate

tchange

time points at which event rate changes. This must be an strictly increasing sequence starting from zero. rate and tchange must have the same length.

Author

Xiaodong Luo

Details

More details

References

Luo, et al. (2017)

See Also

piecewise exponential

Examples

Run this code
p<-seq(0,1,by=0.1)
rate<-c(0.6,0.3)
tchange<-c(0,1.75)
pweq<-qpwe(p=p,rate=rate,tchange=tchange)
pweq

Run the code above in your browser using DataLab