var_wtd_mean_cochran {NetOrigin}R Documentation

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

var_wtd_mean_cochran(x, w)

Arguments

x

numeric vector of values

w

numeric vector of weights

Value

numeric value of weighted variance

References


[Package NetOrigin version 1.1-6 Index]