Skip to contents

Calculates the unequal weighting effect (UWE) for a given set of survey weights. Use to assess variance inflation due to weighting.

Usage

calc_uwe(weights)

Arguments

weights

numeric vector. Survey weights to evaluate.

Value

numeric(1). UWE value.

Details

  • Computes UWE as 1 + (variance of weights / mean^2).

  • Assumes weights are numeric and non-negative.

Examples

weights <- c(1, 2, 3, 4)
calc_uwe(weights)
#> [1] 1.266667