weighted.mean {surveybootstrap} | R Documentation |
Compute the weighted mean
Description
Given a vector of values and a vector of weights, compute the weighted mean
Usage
weighted.mean(x, w, na.rm = FALSE)
Arguments
x |
The vector of values |
w |
The vector of weights |
na.rm |
if |
Value
The weighted mean
[Package surveybootstrap version 0.0.3 Index]