Learn R Programming

lmomco (version 0.88)

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

Description

The distribution parameter object returned by functions of this module 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.

Value

  • TRUEIf the type attribute is exp.
  • FALSEIf the type is not exp.

See Also

parexp

Examples

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

Run the code above in your browser using DataLab