Nothing
wtdvar <- function(x, w, na.rm = TRUE){
if (na.rm){
isNA <- is.na(x) | is.na(w)
x <- x[!isNA]
w <- w[!isNA]
}
n <- length(w)
xbarw <- sum(w*x) / sum(w)
varw <- n / (n-1) * sum(w * (x-xbarw)^2) / sum(w)
varw
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.