data.table::setDTthreads(1)
if (FALSE) {
get_final_codes(
# Führungsaufgaben mit Personalverantwortung bei der Lebensmittelherstellung
"9076",
followup_answers = list(
# The first answer option in the first followup question
"Q9076_1" = 2
)
)
# The same, but using standardized answer levels
get_final_codes(
# Führungsaufgaben mit Personalverantwortung bei der Lebensmittelherstellung
"9076",
standardized_answer_levels = list(
# A response corresponding to the standard ISCO Level "supervisor"
"isco_supervisor_manager" = "isco_supervisor"
)
)
# Same example with approximate matching, due to conflicting information:
# External data suggest the person is not a supervisor, but the person still
# says she does supervisory tasks (Führungsaufgaben, as encoded in "9076").
# If approximate_standardized_answer_levels = TRUE (the default), the
# selected answer "9076" trumps the external data and we will code this
# person as a supervisor.
get_final_codes(
# Führungsaufgaben mit Personalverantwortung bei der Lebensmittelherstellung
"9076",
standardized_answer_levels = list(
# A response corresponding to the standard ISCO Level "not manager nor supervisor"
"isco_supervisor_manager" = "isco_not_supervising"
)
)
}
Run the code above in your browser using DataLab