Skip to contents

Runs a local NBI workflow from final NBI components: preflight checks, NBI flag construction, consistency validation, survey-design-aware estimates, and benchmark comparison readiness.

Usage

enemdu_run_nbi_reproducibility(
  data,
  period = NULL,
  benchmark_set = NULL,
  survey_type = "mensual",
  component_vars = c("comp1", "comp2", "comp3", "comp4", "comp5"),
  area_var = "area",
  ids = "upm",
  strata = "estrato",
  weight = "fexp",
  urban_values = c("urban", "urbano", "1", 1),
  rural_values = c("rural", "2", 2),
  run_area = TRUE,
  benchmarks = enemdu_official_nbi_benchmarks(),
  tolerance_pp = 0.1,
  strict = FALSE,
  run_preflight = TRUE,
  ...
)

Arguments

data

A data frame containing ENEMDU-like microdata.

period

Optional benchmark period.

benchmark_set

Optional benchmark set identifier.

survey_type

ENEMDU survey type.

component_vars

Final NBI component variables.

area_var

Urban/rural domain variable.

ids

Primary sampling unit variable passed to enemdu_kpi_nbi().

strata

Survey strata variable passed to enemdu_kpi_nbi().

weight

Survey expansion factor variable passed to enemdu_kpi_nbi().

urban_values

Values in area_var interpreted as urban.

rural_values

Values in area_var interpreted as rural.

run_area

Logical. If TRUE, estimate urban/rural domains.

benchmarks

Official NBI benchmark table.

tolerance_pp

Comparison tolerance in percentage points.

strict

Logical. If TRUE, benchmark comparison errors on missing or outside-tolerance rows.

run_preflight

Logical. If TRUE, run input preflight checks first.

...

Additional arguments passed to enemdu_kpi_nbi().

Value

A structured list with preflight, validation, estimates, benchmark comparison, and validation-status metadata.

Details

This workflow does not reconstruct NBI from raw questionnaire variables and does not constitute official validation by INEC.