Skip to contents

deff = 1 + CV^2(w) = m * sum(w^2) / (sum(w))^2, over the active weights. The effective sample size is n_eff = m / deff.

Usage

design_effect(w)

Arguments

w

vector of weights (zeros are dropped).

Value

list with deff, n_eff, cv and n.

Examples

design_effect(sample_survey$pw)
#> $deff
#> [1] 1.055596
#> 
#> $n_eff
#> [1] 442.4043
#> 
#> $cv
#> [1] 0.2357872
#> 
#> $n
#> [1] 467
#>