Compute the design effect due to unequal weighting.
kishFactor(w, na.rm = FALSE)
a numeric vector with weights
a logical value indicating whether NA values should be stripped before the computation proceeds.
The factor is computed acording to 'Weighting for Unequal P_i', Leslie Kish, Journal of Official Statistics, Vol. 8. No. 2, 1992
deff = √ n ∑_j w_j^2 / (∑_j w_j)^2
The function will return the the kish factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.