Skip to contents

Reports whether the variables required for NBI reproducibility workflows are present and usable. The function reports problems instead of stopping when variables are absent.

Usage

enemdu_validate_nbi_reproducibility_inputs(
  data,
  component_vars = c("comp1", "comp2", "comp3", "comp4", "comp5"),
  area_var = "area",
  weight_var = "fexp",
  psu_var = "upm",
  strata_var = "estrato",
  required_vars = NULL
)

Arguments

data

A data frame.

component_vars

Final NBI component variables.

area_var

Urban/rural domain variable. Use NULL to omit area checks.

weight_var

Survey expansion factor variable.

psu_var

Primary sampling unit variable.

strata_var

Survey strata variable.

required_vars

Optional additional required variables.

Value

A tibble with one row per required variable and a preflight_passed attribute.