deff_calc returns a single number
a vector of weights
This function returns the design effect of a given sample using the formula length(w)*sum(w^2)/(sum(w)^2). It is designed for use in the moe family of functions. If any weights are equal to 0, they are removed prior to calculation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.