Skip to contents

Divides selected household-level variables by household size when those variables are repeated across household members and are going to be used in representativity or precision assessment workflows.

Usage

enemdu_apply_household_scale_adjustment(
  data,
  vars,
  hsize = "hsize",
  suffix = "_hscale",
  overwrite = FALSE
)

Arguments

data

A data frame.

vars

Character vector of numeric variables to adjust.

hsize

Household-size variable. Defaults to "hsize".

suffix

Suffix for adjusted variables. Defaults to "_hscale".

overwrite

Logical. If TRUE, overwrites existing adjusted variables.

Value

A data frame with adjusted variables added.

Details

This adjustment does not replace the official indicator definition. It creates adjusted analytical contribution variables for representativity diagnostics.