50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

MGBT (version 1.0.7)

VMS: Covariance matrix of M and S

Description

Compute the covariance matrix of M and S given qmin. Define the vector of four moment expectations Ei1,2=Ψ(Φ(1)(qmin),i), where Ψ(a,b) is the gtmoms function and Φ(1) is the inverse of the standard normal distribution. Define the scalar quantity Es= EMS(n,r,qmin)[2] as the expectation of S using the EMS function, and define the scalar quantity Es2=E2E12 as the expectation of S2. Finally, compute the covariance matrix COV of M and S using the V function: COV1,1=V1,1, COV1,2=COV2,1=V1,2/2Es, COV2,2=Es2(Es)2.

Usage

VMS(n, r, qmin)

Arguments

n

The number of observations;

r

The number of truncated observations; and

qmin

A nonexceedance probability threshold for X>qmin.

Value

A 2-by-2 covariance matrix.

References

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

See Also

EMS, V, gtmoms

Examples

Run this code
# NOT RUN {
VMS(58,2,.5) # Note that [1,1] is the same as [1,1] for Examples under V().
#            [,1]        [,2]
#[1,] 0.006488933 0.003279548
#[2,] 0.003279548 0.004682506
# }

Run the code above in your browser using DataLab