Skip to contents

Returns a conservative set of raw ENEMDU variables expected for structural validation of current monthly, quarterly, or annual microdata.

Usage

enemdu_required_microdata_variables(
  survey_type = NULL,
  include_design = TRUE,
  include_domain = TRUE,
  include_household_id = TRUE,
  include_income_core = TRUE,
  include_social_bonuses = TRUE
)

Arguments

survey_type

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

include_design

Logical. Include upm, estrato, and fexp.

include_domain

Logical. Include expected design-domain variables by survey type.

include_household_id

Logical. Include id_hogar.

include_income_core

Logical. Include core income variables used in the current income contract.

include_social_bonuses

Logical. Include p75/p76 and p77/p78 social bonus pairs.

Value

Character vector of required raw variables.

Details

This helper is designed for validation of raw or near-raw ENEMDU files. It therefore uses id_hogar as the raw official household identifier, while the package can later standardize it to the internal canonical idhogar.