Learn R Programming

lmomco (version 2.4.14)

is.texp: Is a Distribution Parameter Object Typed as Truncated Exponential

Description

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

Usage

is.texp(para)

Value

TRUE

If the type attribute is texp.

FALSE

If the type is not texp.

Arguments

para

A parameter list returned from partexp or vec2par.

Author

W.H. Asquith

See Also

partexp

Examples

Run this code
yy <- vec2par(c(123, 2.3, TRUE),  type="texp")
zz <- vec2par(c(123, 2.3, FALSE), type="texp")
if(is.texp(yy) & is.texp(zz)) {
   print(lmomtexp(yy)$lambdas)
   print(lmomtexp(zz)$lambdas)
}

Run the code above in your browser using DataLab