Compute inverse-probability design weights
Usage
morie_compute_design_weights(df, strata_col, population_sizes)
Arguments
- df
A data frame.
- strata_col
Name of the stratification column.
- population_sizes
Named integer vector: stratum level -> population size.
Value
Numeric vector of design weights (same length as nrow(df)).
Examples
# See the package vignettes for usage examples:
# vignette(package = "rmorie")