kishFactor | R Documentation |
Compute the design effect due to unequal weighting.
kishFactor(w, na.rm = FALSE)
w |
a numeric vector with weights |
na.rm |
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
Alexander Kowarik
kishFactor(rep(1,10)) kishFactor(rlnorm(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.