Learn R Programming

lmomco (version 2.0.1)

are.parkmu.valid: Are the Distribution Parameters Consistent with the Kappa-Mu Distribution

Description

The distribution parameter object returned by functions of this package such as by parkmu are consistent with the corresponding distribution, otherwise a list would not have been returned. However, other functions (pdfkmu, cdfkmu, quakmu, and lmomkmu require consistent parameters to return the cumulative probability (nonexceedance), quantile, and L-moments of the distribution, respectively. These functions internally use the are.parkmu.valid function. The documentation pdfkmu provides the conditions on valid parameters and their interrelation.

Usage

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

Arguments

para
A distribution parameter list returned by parkmu.
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 kmu consistent.
  • FALSEIf the parameters are not kmu consistent.

See Also

is.kmu

Examples

Run this code
para <- vec2par(c(0.5, 1.5), type="kmu")
if(are.parkmu.valid(para)) Q <- quakmu(0.5,para)

Run the code above in your browser using DataLab