weighted.var: Weighted variance

Description Usage Arguments Value

View source: R/weighted.var.r

Description

Weighted variance

Usage

1
weighted.var(x, w, na.rm = FALSE)

Arguments

x

an object containing the values whose weighted variance is to be computed

w

a numerical vector of weights the same length as x giving the weights to use for elements of x

na.rm

a logical value indicating whether NA values in x should be stripped before the computation proceeds

Value

a length-one numeric vector


rogiersbart/rtoolz documentation built on Aug. 20, 2020, 2:48 p.m.