R/weighted.var.R

Defines functions weighted.var

weighted.var <-
function(x,w,...)	sum(w*(x-weighted.mean(x,w,...))^2)/(sum(w)-1)

Try the BayesLCA package in your browser

Any scripts or data that you put into this service are public.

BayesLCA documentation built on July 2, 2020, 12:11 a.m.