Density, distribution function, quantile function, hazard function,
cumulative hazard function, and random
generation for the pch distribution with parameters cuts
and levels
.
1 2 3 4 5 6 
x, q 
vector of quantiles. 
p 
vector of probabilities. 
n 
number of observations. If 
cuts, levels 

log, log.p 
logical; if TRUE, probabilities p are given as log(p). 
lower.tail 
logical; if TRUE (default), probabilities are P(X <= x), otherwise, P(X > x). 
The Pch distribution is defined by the cuts and the levels so that the hazard function is constant on intervals.
dpch
gives the density,
ppch
gives the distribution function,
qpch
gives the quantile function,
hpch
gives the hazard function,
Hpch
gives the cumulative hazard function, and
rpch
generates random deviates.
Invalid arguments will result in return value NaN
, with a warning.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.