Skip to contents

Normalise weights so they sum to n (sample) or N (population).

Usage

morie_weights_normalize(
  weights,
  target = c("sample_size", "population"),
  population_size = NULL
)

Arguments

weights

Numeric vector of unit-level design weights.

target

Numeric target sum (normalize).

population_size

Optional known population size used by normalize (target sum = population_size when supplied).