are.paraep4.valid: Are the Distribution Parameters Consistent with the...

are.paraep4.validR Documentation

Are the Distribution Parameters Consistent with the 4-Parameter Asymmetric Exponential Power Distribution

Description

Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (cdfaep4, pdfaep4, quaaep4, and lmomaep4) require consistent parameters to return the cumulative probability (nonexceedance), density, quantile, and L-moments of the distribution, respectively. These functions internally use the are.paraep4.valid function.

Usage

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

Arguments

para

A distribution parameter list returned by paraep4 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 aep4 consistent.

FALSE

If the parameters are not aep4 consistent.

Note

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

Author(s)

W.H. Asquith

References

Asquith, W.H., 2014, Parameter estimation for the 4-parameter asymmetric exponential power distribution by the method of L-moments using R: Computational Statistics and Data Analysis, v. 71, pp. 955–970.

Delicado, P., and Goria, M.N., 2008, A small sample comparison of maximum likelihood, moments and L-moments methods for the asymmetric exponential power distribution: Computational Statistics and Data Analysis, v. 52, no. 3, pp. 1661–1673.

See Also

is.aep4, paraep4

Examples

para <- vec2par(c(0,1, 0.5, 4), type="aep4")
if(are.paraep4.valid(para)) Q <- quaaep4(0.5,para)

lmomco documentation built on Aug. 30, 2023, 5:10 p.m.