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

are.paremu.validR Documentation

Are the Distribution Parameters Consistent with the Eta-Mu Distribution

Description

Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (cdfemu, pdfemu, quaemu, lmomemu), and lmomemu require consistent parameters to return the cumulative probability (nonexceedance), density, quantile, and L-moments of the distribution, respectively. These functions internally use the are.paremu.valid function. The documentation for pdfemu provides the conditions for valid parameters.

Usage

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

Arguments

para

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

FALSE

If the parameters are not emu consistent.

Note

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

Author(s)

W.H. Asquith

See Also

is.emu, paremu

Examples

## Not run: 
para <- vec2par(c(0.4, .04), type="emu")
if(are.paremu.valid(para)) Q <- quaemu(0.5,para) # 
## End(Not run)

lmomco documentation built on May 29, 2024, 10:06 a.m.