Learn R Programming

lmomco (version 1.7.3)

are.paraep4.valid: Are the Distribution Parameters Consistent with the 4-p Asymmetric Exponential Power Distribution

Description

The distribution parameter object returned by functions of this package such as by paraep4 are consistent with the corresponding distribution, otherwise a list would not have been returned. However, other functions (cdfaep4, quaaep4, and lmomaep4 require consistent parameters to return the cumulative probability (nonexceedance), 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.
nowarn
A logical switch on warning surpression. 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 a

Value

  • TRUEIf the parameters are aep4 consistent.
  • FALSEIf the parameters are not aep4 consistent.

References

Ayebo, A., and Kozubowski, T.J., 2003, An asymmetric generalization of Gaussian and Laplace laws: Journal of Probability and Statistical Science, v. 1, no. 2, pp. 187-210.

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

Examples

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

Run the code above in your browser using DataLab