Compute the (gtmoms(xsi,2) -
gtmoms(xsi,1)^2)
that is in the first returned column. The second moment (variance of S-squared) is V(n,r,pnorm(xsi))[2,2]
that is in the second returned column. Further mathematical details are available under functions gtmoms
and V
.
CondMomsChi2(n, r, xsi)
The number of observations;
The number of truncated observations; and
The lower threshold (see gtmoms
).
The value a two-column, one-row R matrix
.
Cohn, T.A., 2013--2016, Personal communication of original R source code: U.S. Geological Survey, Reston, Va.
# NOT RUN {
CondMomsChi2(58, 2, -3.561143)
# [,1] [,2]
#[1,] 0.9974947 0.03574786
# Note that CondMomsChi2(58, 2, -3.561143)[2] == V(58, 2, pnorm(-3.561143))[2,2]
# }
Run the code above in your browser using DataLab