are.partexp.valid: Are the Distribution Parameters Consistent with the Truncated Exponential Distribution
Description
Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (cdftexp, pdftexp, quatexp, and lmomtexp) require consistent parameters to return the cumulative probability (nonexceedance), density, quantile, and L-moments of the distribution, respectively. These functions internally use the are.partexp.valid function.
Usage
are.partexp.valid(para, nowarn=FALSE)
Value
TRUE
If the parameters are texp consistent.
FALSE
If the parameters are not texp consistent.
Arguments
para
A distribution parameter list returned by parexp or vec2par.
nowarn
A logical switch on warning suppression. If TRUE then options(warn=-1) is made and restored on return. This switch is to permit calls in which warnings are not desired as the user knows how to handle the returned value---say in an optimization algorithm.
Author
W.H. Asquith
References
Vogel, R.M., Hosking, J.R.M., Elphick, C.S., Roberts, D.L., and Reed, J.M., 2008, Goodness of fit of probability distributions for sightings as species approach extinction: Bulletin of Mathematical Biology, DOI 10.1007/s11538-008-9377-3, 19 p.