Learn R Programming

lmomco (version 2.0.1)

are.parsla.valid: Are the Distribution Parameters Consistent with the Slash Distribution

Description

The distribution parameter object returned by functions of this package such as by vec2par are consistent with the corresponding distribution, otherwise a list would not have been returned. However, other functions (cdfsla and quasla) require consistent parameters to return the cumulative probability (nonexceedance), quantile, and L-moments of the distribution, respectively.

Usage

are.parsla.valid(para, nowarn=FALSE)

Arguments

para
A distribution parameter list returned by parsla or vec2par.
nowarn
A logical switch on warning surpression. If TRUE then options(warn=-1) is made and restored on return. This switch is to permit calls in which warnings are not desired as the user knows how to handle the returned value---say in a

Value

  • TRUEIf the parameters are sla consistent.
  • FALSEIf the parameters are not sla consistent.

References

Rogers, W.H., and Tukey, J.W., 1972, Understanding some long-tailed symmetrical distributions: Statistica Neerlandica, v. 26, no. 3, pp. 211-226.

See Also

is.sla

Examples

Run this code
para <- vec2par(c(12,1.2),type='sla')
if(are.parsla.valid(para)) Q <- quasla(0.5,para)

Run the code above in your browser using DataLab