Skip to contents

Runs a minimal functional check over ENEMDU microdata. The smoke test is not a substitute for methodological validation or final statistical reporting. Its purpose is to verify that the core analytical pipeline can execute on real or representative microdata:

Usage

enemdu_smoke_test_microdata(
  data,
  dictionary = NULL,
  survey_type,
  core_indicator_ids = c("ingreso_percapita_familiar", "ingreso_laboral"),
  domain_group_vars = NULL,
  include_validation = TRUE,
  include_build_variables = TRUE,
  include_social_bonuses = TRUE,
  include_core_indicators = TRUE,
  sample_n_min = 60,
  strict_domain = FALSE,
  keep_built_data = FALSE,
  emit = TRUE
)

Arguments

data

A data frame with ENEMDU microdata.

dictionary

Optional official dictionary tibble.

survey_type

ENEMDU survey type: "mensual", "trimestral" or "anual".

core_indicator_ids

Character vector of core indicators to estimate after variable construction.

domain_group_vars

Optional grouping variables for a grouped smoke estimate, for example "area".

include_validation

Logical. If TRUE, validates data against dictionary and the internal microdata contract.

include_build_variables

Logical. If TRUE, runs enemdu_build_variables().

include_social_bonuses

Logical. If TRUE, runs enemdu_build_optional_bonuses() and social-bonus KPIs.

include_core_indicators

Logical. If TRUE, runs enemdu_indicator_table() for core_indicator_ids.

sample_n_min

Minimum sample size threshold passed to indicator functions.

strict_domain

Logical. Passed to inferential indicator tables.

keep_built_data

Logical. If TRUE, returns the built data in the output object. Defaults to FALSE to avoid storing large microdata objects.

emit

Logical. If TRUE, emits a compact summary.

Value

A list with summary and smoke-test outputs.

Details

  • optional structural validation against an official dictionary,

  • income-variable construction,

  • validated social-bonus construction,

  • basic indicator estimation,

  • social-bonus KPI estimation.