are.partexp.valid: Are the Distribution Parameters Consistent with the Truncated...

are.partexp.validR Documentation

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)

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.

Value

TRUE

If the parameters are texp consistent.

FALSE

If the parameters are not texp consistent.

Note

This function calls is.texp to verify consistency between the distribution parameter object and the intent of the user.

Author(s)

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.

See Also

is.texp, partexp

Examples

para <- partexp(lmoms(c(90,134,100,114,177,378)))
if(are.partexp.valid(para)) Q <- quatexp(0.5,para)

wasquith/lmomco documentation built on April 10, 2024, 4:20 a.m.