Learn R Programming

lmomco (version 1.7.3)

are.paremu.valid: Are the Distribution Parameters Consistent with the Eta-Mu Distribution

Description

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

Usage

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

Arguments

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

See Also

is.emu

Examples

Run this code
para <- vec2par(c(0.4, .04), type="emu")
if(are.paremu.valid(para)) Q <- quaemu(0.5,para)

Run the code above in your browser using DataLab