Skip to contents

Produces minimal household-level KPIs from an ENEMDU person-level data frame. This is a descriptive household profile helper and does not yet replace full survey-design estimation.

Usage

enemdu_kpi_households(
  data,
  household_id = "idhogar",
  weight = "fexp",
  hsize = "hsize",
  income_var = "ingtot_pc",
  sample_n_min = 60
)

Arguments

data

A data frame.

household_id

Household identifier. Defaults to "idhogar".

weight

Weight variable. Defaults to "fexp".

hsize

Household-size variable.

income_var

Optional per-capita household income variable.

sample_n_min

Minimum unweighted sample size for preliminary flag.

Value

A tibble with household KPI rows.