Skip to contents

Builds binary labor-status flags from the official consolidated ENEMDU condition-of-activity variable. This helper does not reconstruct labor status from raw questionnaire items. It assumes that condact already contains the official ENEMDU classification present in the microdata.

Usage

enemdu_build_labor_flags(
  data,
  condact = "condact",
  age = "p03",
  sector = "secemp",
  strict = TRUE
)

Arguments

data

A data frame.

condact

Condition-of-activity variable. Defaults to "condact".

age

Age variable. Defaults to "p03".

sector

Employment-sector variable. Defaults to "secemp".

strict

Logical. If TRUE, invalid observed codes produce an error.

Value

A tibble/data frame with added binary labor flags.