Learn R Programming

lmomco (version 2.4.14)

are.parcau.valid: Are the Distribution Parameters Consistent with the Cauchy Distribution

Description

Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (cdfcau, pdfcau, quacau, and lmomcau) require consistent parameters to return the cumulative probability (nonexceedance), density, quantile, and L-moments of the distribution, respectively. These functions internally use the are.parcau.valid function.

Usage

are.parcau.valid(para, nowarn=FALSE)

Value

TRUE

If the parameters are cau consistent.

FALSE

If the parameters are not cau consistent.

Arguments

para

A distribution parameter list returned by parcau 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

Elamir, E.A.H., and Seheult, A.H., 2003, Trimmed L-moments: Computational Statistics and Data Analysis, v. 43, pp. 299--314.

Gilchrist, W.G., 2000, Statistical modeling with quantile functions: Chapman and Hall/CRC, Boca Raton, FL.

See Also

is.cau, parcau

Examples

Run this code
para <- vec2par(c(12,12),type='cau')
if(are.parcau.valid(para)) Q <- quacau(0.5,para)

Run the code above in your browser using DataLab