getWeightedMean: getWeightedMean

View source: R/BMisc.R

getWeightedMeanR Documentation

getWeightedMean

Description

Legacy version of 'weighted_mean', please use that function instead. This function will eventually be deleted.

Usage

getWeightedMean(y, weights = NULL, norm = TRUE)

Arguments

y

a vector to compute the mean for

weights

the vector of weights, can be NULL, then will just return mean

norm

normalize the weights so that they have mean of 1, default is to normalize


bcallaway11/BMisc documentation built on Feb. 4, 2025, 10:43 p.m.