weighted.mean: compute the weighted mean

Description Usage Arguments Value

View source: R/helper_functions.r

Description

given a vector of values and a vector of weights, compute the weighted mean

Usage

1
weighted.mean(x, w, na.rm = FALSE)

Arguments

x

the vector of values

w

the vector of weights

na.rm

if TRUE, only consider elmeents of x that are not missing (and their corresponding entries in w). Defaults to FALSE.

Value

the weighted mean



surveybootstrap documentation built on May 19, 2017, 6:54 a.m.
Search within the surveybootstrap package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.