50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


MGBT (version 1.0.7)

gtmoms: Moments of Observations Above the Threshold

Description

Moments of observations above the threshold (xsi, xsi), which has been standardized to a zero mean and unit standard deviation. Define the standard normal hazard function as H(x)=ϕ(x)/(1Φ(x)), where ϕ(x) is the standard normal density function and Φ(x) is the standard normal distribution (cumulative) function. For a truncation index, r, define the recursion formula, Ψ for gtmoms as Ψ(xsi,r)=(r1)Ψ(xsi,r2)+xsir1H(xsi), for which Ψ(xsi,0)=1 and Ψ(xsi,1)=H(xsi).

Usage

gtmoms(xsi, r)

Arguments

xsi

The lower threshold; and

r

The number of truncated observations.

Value

The moments.

References

Cohn, T.A., 2013--2016, Personal communication of original R source code: U.S. Geological Survey, Reston, Va.

U.S. Geological Survey (USGS), 2018, PeakFQ---Flood frequency analysis based on Bulletin 17B and recommendations of the Advisory Committee on Water Information (ACWI) Subcommittee on Hydrology (SOH) Hydrologic Frequency Analysis Work Group (HFAWG), version 7.2: Accessed November 29, 2018, at https://water.usgs.gov/software/PeakFQ/.

See Also

CondMomsChi2, gtmoms

Examples

Run this code
# NOT RUN {
gtmoms(-3.561143, 2)  # Is this a meaningful example?
#[1] 0.9974952
# }

Run the code above in your browser using DataLab