.wmean {vtreat} | R Documentation |
Compute weighted mean
Description
Compute the weighted mean of x.
Usage
.wmean(x, weights = NULL)
Arguments
x |
numeric vector without NA to compute mean of |
weights |
weights vector (or NULL) |
Value
weighted mean
Examples
.wmean(c(1, 2, 3))
[Package vtreat version 1.6.5 Index]