Learn R Programming

lmomco (version 1.7.3)

is.rice: Is a Distribution Parameter Object Typed as Rice

Description

The distribution parameter object returned by functions of this module such as by parrice are typed by an attribute type. This function checks that type is rice for the Rice distribution.

Usage

is.rice(para)

Arguments

para
A parameter list returned from parrice.

Value

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

See Also

parrice

Examples

Run this code
para <- vec2par(c(3, 4),type='rice')
if(is.rice(para)) {
  Q <- quarice(0.5,para)
}

Run the code above in your browser using DataLab