Computes the variance of a weighted mean following the definition by Cochran (1977; see Gatz and Smith, 1995)
Description
This is a helper method for weighted variance computation in origin_edm
, which is the closest to the bootstrap.
Usage
1  var_wtd_mean_cochran(x, w)

Arguments
x 
numeric vector of values 
w 
numeric vector of weights 
Value
numeric value of weighted variance
References
Gatz, D. F., and Smith, L. (1995). The standard error of a weighted mean concentrationI. Bootstrapping vs other methods. Atmospheric Environment, 29(11), 11851193. <DOI: 10.1016/13522310(94)00210C>
Gatz, D. F., and Smith, L. (1995). The standard error of a weighted mean concentrationII. Estimating confidence intervals. Atmospheric Environment, 29(11), 11951200. <DOI: 10.1016/13522310(94)002094>

http://r.789695.n4.nabble.com/ProblemwithWeightedVarianceinHmisctd826437.html
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.