kishFactor {surveysd} | R Documentation |
Kish Factor
Description
Compute the design effect due to unequal weighting.
Usage
kishFactor(w, na.rm = FALSE)
Arguments
w |
a numeric vector with weights |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Details
The factor is computed acording to 'Weighting for Unequal P_i', Leslie Kish, Journal of Official Statistics, Vol. 8. No. 2, 1992
deff = \sqrt n \sum_j w_j^2 / (\sum_j w_j)^2
Value
The function will return the the kish factor
Author(s)
Alexander Kowarik
Examples
kishFactor(rep(1,10))
kishFactor(rlnorm(10))
[Package surveysd version 1.3.1 Index]