Learn R Programming

lmomco (version 2.4.14)

is.tri: Is a Distribution Parameter Object Typed as Asymmetric Triangular

Description

The distribution parameter object returned by functions of lmomco such as by partri are typed by an attribute type. This function checks that type is tri for the Asymmetric Triangular distribution.

Usage

is.tri(para)

Value

TRUE

If the type attribute is tri.

FALSE

If the type is not tri.

Arguments

para

A parameter list returned from partri or vec2par.

Author

W.H. Asquith

See Also

partri

Examples

Run this code
para <- partri(lmoms(c(46, 70, 59, 36, 71, 48, 46, 63, 35, 52)))
if(is.tri(para) == TRUE) {
  Q <- quatri(0.5,para)
}

Run the code above in your browser using DataLab