weightedVariance: weightedVariance

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

the weightedVariance function

Usage

1

Arguments

x

x is a data vector

y

default to NULL, if given it is ignored

w

weight vector, values should be between 0 and 1

Value

numeric weighted variance value for x

Examples

1
2
3
x = rnorm(100)
w = runif(100)
weightedVariance(x,w)

shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.