powered by
This will provide the quantile function of the specified piecewise exponential distribution
qpwe(p=seq(0,1,by=0.1),rate=c(0,5,0.8),tchange=c(0,3))
quantiles
a vector of probabilities
piecewise constant event rate
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.
Xiaodong Luo
More details
Luo, et al. (2017)
piecewise exponential
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