wtd_var: Weighted Variance

View source: R/wtd_moments.R

wtd_varR Documentation

Weighted Variance

Description

Weighted Variance

Usage

wtd_var(x, w, na.rm = TRUE)

Arguments

x

values whose weighted mean is to be computed

w

weights of the same length as x to be used against x

na.rm

a logical values indicating whether NA values in both x and w should be stripped before computation


Rekyt/fdcoexist documentation built on Oct. 16, 2022, 10:27 a.m.