is.exp: Is a Distribution Parameter Object Typed as Exponential

is.expR Documentation

Is a Distribution Parameter Object Typed as Exponential

Description

The distribution parameter object returned by functions of lmomco such as by parexp are typed by an attribute type. This function checks that type is exp for the Exponential distribution.

Usage

is.exp(para)

Arguments

para

A parameter list returned from parexp or vec2par.

Value

TRUE

If the type attribute is exp.

FALSE

If the type is not exp.

Author(s)

W.H. Asquith

See Also

parexp

Examples

para <- parexp(lmoms(c(123,34,4,654,37,78)))
if(is.exp(para) == TRUE) {
  Q <- quaexp(0.5,para)
}

wasquith/lmomco documentation built on April 10, 2024, 4:20 a.m.