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

MGBT (version 1.0.4)

V: Covariance matrix of M and S-squared

Description

Compute the covariance matrix of M and S2 (S-squared) given qmin. Define the vector of four moment expectations Ei1,2,3,4=Ψ(Φ(1)(qmin),i), where Ψ(a,b) is the gtmoms function and Φ(1) is the inverse of the standard normal distribution. Using these E, define a vector Ci1,2,3,4 as a system of nonlinear combinations: C1=E1, C2=E2E12, C3=E33E2E1+2E13, and C4=E44E3E1+6E2E123E14. Given k=nr from the arguments of this function, compute the symmetrical covariance matrix COV with variance of M as COV1,1=C2/k, the covariance between M and S2 as COV1,2=COV2,1=C3k(k1), and the variance of S2 as COV2,2=C4C22k+2C22k(k1).

Usage

V(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, VMS, gtmoms

Examples

Run this code
# NOT RUN {
V(58,2,.5)
#            [,1]        [,2]
#[1,] 0.006488933 0.003928333
#[2,] 0.003928333 0.006851120
# }

Run the code above in your browser using DataLab