Preflight checks for IPM reproducibility workflows
Source:R/ipm_reproducibility.R
enemdu_validate_ipm_reproducibility_inputs.RdChecks whether the minimum variables required to estimate IPM KPIs are present and usable. This function validates already-built IPM score and flag variables plus survey design variables. It does not process microdata files, derive raw IPM components, or claim official validation.
Usage
enemdu_validate_ipm_reproducibility_inputs(
data,
survey_type = "anual",
ids = "upm",
strata = "estrato",
weight = "fexp",
score_var = "ipm_score",
tpm_var = "tpm",
tpem_var = "tpem",
strict = TRUE
)Arguments
- data
A data frame.
- survey_type
ENEMDU survey type.
- ids
Primary sampling unit variable.
- strata
Survey strata variable.
- weight
Survey expansion factor variable.
- score_var
Row-level IPM score variable.
- tpm_var
Row-level multidimensional poverty flag variable.
- tpem_var
Row-level extreme multidimensional poverty flag variable.
- strict
Logical. If
TRUE, abort when preflight fails.