Learn R Programming

lmomco (version 0.88)

is.gpa: Is a Distribution Parameter Object Typed as Generalized Pareto

Description

The distribution parameter object returned by functions of this module such as by pargpa are typed by an attribute type. This function checks that type is gpa for the Generalized Pareto distribution.

Usage

is.gpa(para)

Arguments

para
A parameter list returned from pargpa.

Value

  • TRUEIf the type attribute is gpa.
  • FALSEIf the type is not gpa.

See Also

pargpa

Examples

Run this code
para <- pargpa(lmom.ub(c(123,34,4,654,37,78)))
if(is.gpa(para) == TRUE) {
  Q <- quagpa(0.5,para)
}

Run the code above in your browser using DataLab