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

is.triR Documentation

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)

Arguments

para

A parameter list returned from partri or vec2par.

Value

TRUE

If the type attribute is tri.

FALSE

If the type is not tri.

Author(s)

W.H. Asquith

See Also

partri

Examples

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

lmomco documentation built on May 29, 2024, 10:06 a.m.