Learn R Programming

lmomco (version 2.2.5)

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)

Arguments

para
A parameter list returned from partri or vec2par.

Value

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