kishFactor: Kish Factor

View source: R/kishFactor.R

kishFactorR 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 = √ n ∑_j w_j^2 / (∑_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))

surveysd documentation built on Dec. 28, 2022, 2:15 a.m.