Learn R Programming

lmomco (version 2.4.14)

is.pdq4: Is a Distribution Parameter Object Typed as Polynomial Density-Quantile4

Description

The distribution parameter object returned by functions of lmomco such as by parpdq4 are typed by an attribute type. This function checks that type is pdq4 for the Polynomial Density-Quantile4 distribution.

Usage

is.pdq4(para)

Value

TRUE

If the type attribute is pdq4.

FALSE

If the type is not pdq4.

Arguments

para

A parameter list returned from parpdq4 or vec2par.

Author

W.H. Asquith

See Also

parpdq4

Examples

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

Run the code above in your browser using DataLab