are.par.valid {lmomco} | R Documentation

## Are the Distribution Parameters Consistent with the Distribution

### Description

This function is a dispatcher on top of the `are.parCCC.valid` functions, where `CCC` represents the distribution type: `exp`, `gam`, `gev`, `glo`, `gno`, `gpa`, `gum`, `kap`, `nor`, `pe3`, `revgum`, `wak`, or `wei`. Internally, this function is called only by `vec2par` in the process of converting a vector into a proper distribution parameter object for this package.

### Usage

    are.par.valid(para,...)

### Arguments

`para` | A distribution parameter object having at least attributes `type` and `para`.
`...` | Additional arguments for the `are.parCCC.valid` call that is made internally.

### Value

`TRUE` | If the parameters are consistent with the distribution specified by the `type` attribute of the parameter object.
`FALSE` | If the parameters are not consistent with the distribution specified by the `type` attribute of the parameter object.

### Author(s)

W.H. Asquith

### References

Hosking, J.R.M., 1996, FORTRAN routines for use with the method of L-moments: Version 3, IBM Research Report RC20525, T.J. Watson Research Center, Yorktown Heights, New York.

Hosking, J.R.M. and Wallis, J.R., 1997, Regional frequency analysis—An approach based on L-moments: Cambridge University Press.

### See Also

`vec2par`

### Examples

    vec  <- c(12,120)           # parameters of exponential distribution
    para <- vec2par(vec,'exp')  # build exponential distribution parameter
                                # object
    # The following two conditionals are equivalent as are.parexp.valid()
    # is called within are.par.valid().
    if(are.par.valid(para))    Q <- quaexp(0.5,para)
    if(are.parexp.valid(para)) Q <- quaexp(0.5,para)

[Package lmomco version 0.92 Index]