weighted_var: weighted_var

Description Usage Arguments Value

View source: R/weighted_var.r

Description

Calculate weighted variance of x using weights w.

Usage

1
weighted_var(x, w = NULL, na.rm = FALSE)

Arguments

x

A numeric vector.

w

A numeric vector to weight x by.

na.rm

Logical indicating whether to ignore NAs.

Value

The weighted variance of x.


lina2497/alextools documentation built on June 7, 2020, 10:29 a.m.