qpwu {PWEALL} | R Documentation |
Piecewise uniform distribution: quantile function
Description
This will provide the quantile function of the specified piecewise uniform distribution
Usage
qpwu(p=seq(0,1,by=0.1),u=c(0,5,0.5),ut=c(1,2))
Arguments
p |
a vector of probabilities |
u |
piecewise constant density |
ut |
time points at which event rate changes. This must be an strictly increasing sequence. |
Details
Let be the density function, where
are the corresponding elements of u and
are the corresponding elements of ut and
.
The distribution function
User must make sure that before using this function.
Value
q |
quantiles |
Note
This provides the quantile function related to the piecewise uniform distribution
Author(s)
Xiaodong Luo
References
Luo, et al. (2017)
See Also
piecewise uniform
Examples
p<-seq(0,1,by=0.1)
u<-c(0.6,0.4)
ut<-c(1,2)
pwuq<-qpwu(p=p,u=u,ut=ut)
pwuq
[Package PWEALL version 1.3.0.1 Index]