Skip to contents

Produces a minimal set of general KPIs using stable output columns:

Usage

enemdu_kpi_general(
  data,
  weight = "fexp",
  household_id = "idhogar",
  income_var = "ingtot_pc",
  optional_bonus_total_var = "bonos_optional_total",
  optional_bonus_recipient_var = "bonos_optional_recibe",
  sample_n_min = 60
)

Arguments

data

A data frame.

weight

Weight variable. Defaults to "fexp".

household_id

Household identifier. Defaults to "idhogar" and falls back to "id_hogar" when needed.

income_var

Household per-capita income variable.

optional_bonus_total_var

Optional bonus total variable.

optional_bonus_recipient_var

Optional bonus recipient variable.

sample_n_min

Minimum unweighted sample size for preliminary flag.

Value

A tibble with KPI rows.

Details

  • estimated persons,

  • sample records,

  • estimated households when a household identifier is available,

  • sample households when a household identifier is available,

  • mean household per-capita income when available,

  • optional bonus total and recipients when optional-bonus variables are available.

These KPIs are weighted descriptive estimates. Full precision assessment must be added by the representativity module.