Learn R Programming

lmomco (version 2.4.14)

check.fs: Check Vector of Nonexceedance Probabilities

Description

This function checks that a nonexceedance probability (\(F\)) is in the \(0 \le F \le 1\) range. It does not check that the distribution specified by parameters for \(F = 0\) or \(F = 1\) is valid. End point checking is left to additional internal checks within the functions implementing the distribution. The function is intended for internal use to build a flow of logic throughout the distribution functions. Users are not anticipated to need this function themselves. The check.fs function is separate because of the heavy use of the logic across a myriad of functions in lmomco.

Usage

check.fs(fs)

Value

TRUE

The nonexceedance probabilities are valid.

FALSE

The nonexceedance probabilities are invalid.

Arguments

fs

A vector of nonexceedance probablity values.

Author

W.H. Asquith

See Also

quaaep4, quaaep4kapmix, quacau, quaemu, quaexp, quagam, quagep, quagev, quagld, quaglo, quagno, quagov, quagpa, quagum, quakap, quakmu, quakur, qualap, qualmrq, qualn3, quanor, quape3, quaray, quarevgum, quarice, quasla, quast3, quatexp, quawak, quawei

Examples

Run this code
F <- c(0.5,0.7,0.9,1.1)
if(check.fs(F) == FALSE) cat("Bad nonexceedances 0

Run the code above in your browser using DataLab