Step 1: The variable hlc0006_v1 is recoded (1 2=1) (3=2) (4 5=3) (6=4) for the years 1999 to 2000 and subsequently integrated into the harmonized variable hlc0006_h.
Step 2: The variable hlc0006_v2 is recoded (1 2 12=1) (3=2) (4 5=3) (6=4) (13=31) (14=41) (15=51) for the years 2001 to 2002 and subsequently integrated into the harmonized variable hlc0006_h.
Step 3: The variable hlc0006_v3 is recoded (1 2 21=1) (3=2) (4 5=3) (6=4) (31=31) (41=41) (51=51) for the years 2003 to 2020 and subsequently integrated into the harmonized variable hlc0006_h.
Step 4: The variable hlc0006_h is replaced with -9 for the years 2021 to 2022 if hlc0006_v4 interview was aborted before this point and hlc0006_v5 interview was aborted before this point and hlc0006_v6 interview was aborted before this point and hlc0006_v7 interview was aborted before this point and hlc0006_v8 interview was aborted before this point.
Step 5: The variable hlc0006_h is replaced with -8 for the years 2021 to 2022 if hlc0006_v4 was not included in the survey program that year and hlc0006_v5 was not included in the survey program that year and hlc0006_v6 was not included in the survey program that year and hlc0006_v7 was not included in the survey program that year and hlc0006_v8 was not included in the survey program that year.
Step 6: The variable hlc0006_h is replaced with -5 for the years 2021 to 2022 if hlc0006_v4 is not included in that version of the questionnaire and hlc0006_v5 is not included in that version of the questionnaire and hlc0006_v6 is not included in that version of the questionnaire and hlc0006_v7 is not included in that version of the questionnaire and hlc0006_v8 is not included in that version of the questionnaire.
Step 7: The variable hlc0006_h is replaced with -2 for the years 2021 to 2022 if hlc0006_v4 does not apply to the person asked and hlc0006_v5 does not apply to the person asked and hlc0006_v6 does not apply to the person asked and hlc0006_v7 does not apply to the person asked and hlc0006_v8 does not apply to the person asked.
Step 8: The variable hlc0006_h is replaced with -1 for the years 2021 to 2022 if hlc0006_v4 is -1.
Step 9: The variable hlc0006_h is replaced with 1 for the years 2021 to 2022 if hlc0006_v4 is 1 and inlist(hlc0006_v5,-1,1,2).
Step 10: The variable hlc0006_h is replaced with 2 for the years 2021 to 2022 if hlc0006_v4 is 2 and hlc0006_v6 is 1.
Step 11: The variable hlc0006_h is replaced with 31 for the years 2021 to 2022 if hlc0006_v4 is 2 and hlc0006_v6 is -1.
Step 12: The variable hlc0006_h is replaced with 3 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 1.
Step 13: The variable hlc0006_h is replaced with 41 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is -1.
Step 14: The variable hlc0006_h is replaced with 3 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is 1.
Step 15: The variable hlc0006_h is replaced with 4 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is 2.
Step 16: The variable hlc0006_h is replaced with 51 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is -1.
Step 17: The variable hlc0006_h is replaced with -9 for the years 2023 to 2025 if hlc0006_v12 interview was aborted before this point.
Step 18: The variable hlc0006_h is replaced with -8 for the years 2023 to 2025 if hlc0006_v12 was not included in the survey program that year.
Step 19: The variable hlc0006_h is replaced with -5 for the years 2023 to 2025 if hlc0006_v12 is not included in that version of the questionnaire.
Step 20: The variable hlc0006_h is replaced with -2 for the years 2023 to 2025 if hlc0006_v12 does not apply to the person asked.
Step 21: The variable hlc0006_h is replaced with -1 for the years 2023 to 2025 if hlc0006_v12 is -1.
Step 22: The variable hlc0006_h is replaced with 1 for the years 2023 to 2025 if hlc0006_v12 is 1 and inlist(hlc0006_v9,-1,1,2,3).
Step 23: The variable hlc0006_h is replaced with 2 for the years 2023 to 2025 if hlc0006_v12 is 2 and the variable hlc0006_v10 is 1 or 2.
Step 24: The variable hlc0006_h is replaced with 3 for the years 2023 to 2025 if hlc0006_v12 is 2 and hlc0006_v10 is 3.
Step 25: The variable hlc0006_h is replaced with 31 for the years 2023 to 2025 if hlc0006_v12 is 2 and hlc0006_v10 is -1.
Step 26: The variable hlc0006_h is replaced with 3 for the years 2023 to 2025 if hlc0006_v12 is 3 and the variable hlc0006_v11 is 1 or 2.
Step 27: The variable hlc0006_h is replaced with 4 for the years 2023 to 2025 if hlc0006_v12 is 3 and hlc0006_v11 is 3.
Step 28: The variable hlc0006_h is replaced with 51 for the years 2023 to 2025 if hlc0006_v12 is 3 and hlc0006_v11 is -1.
Step 1: The variable hlc0006_v1 is recoded (1 2=1) (3=2) (4 5=3) (6=4) for the years 1999 to 2000 and subsequently integrated into the harmonized variable hlc0006_h.
Step 2: The variable hlc0006_v2 is recoded (1 2 12=1) (3=2) (4 5=3) (6=4) (13=31) (14=41) (15=51) for the years 2001 to 2002 and subsequently integrated into the harmonized variable hlc0006_h.
Step 3: The variable hlc0006_v3 is recoded (1 2 21=1) (3=2) (4 5=3) (6=4) (31=31) (41=41) (51=51) for the years 2003 to 2020 and subsequently integrated into the harmonized variable hlc0006_h.
Step 4: The variable hlc0006_h is replaced with -9 for the years 2021 to 2022 if hlc0006_v4 interview was aborted before this point and hlc0006_v5 interview was aborted before this point and hlc0006_v6 interview was aborted before this point and hlc0006_v7 interview was aborted before this point and hlc0006_v8 interview was aborted before this point.
Step 5: The variable hlc0006_h is replaced with -8 for the years 2021 to 2022 if hlc0006_v4 was not included in the survey program that year and hlc0006_v5 was not included in the survey program that year and hlc0006_v6 was not included in the survey program that year and hlc0006_v7 was not included in the survey program that year and hlc0006_v8 was not included in the survey program that year.
Step 6: The variable hlc0006_h is replaced with -5 for the years 2021 to 2022 if hlc0006_v4 is not included in that version of the questionnaire and hlc0006_v5 is not included in that version of the questionnaire and hlc0006_v6 is not included in that version of the questionnaire and hlc0006_v7 is not included in that version of the questionnaire and hlc0006_v8 is not included in that version of the questionnaire.
Step 7: The variable hlc0006_h is replaced with -2 for the years 2021 to 2022 if hlc0006_v4 does not apply to the person asked and hlc0006_v5 does not apply to the person asked and hlc0006_v6 does not apply to the person asked and hlc0006_v7 does not apply to the person asked and hlc0006_v8 does not apply to the person asked.
Step 8: The variable hlc0006_h is replaced with -1 for the years 2021 to 2022 if hlc0006_v4 is -1.
Step 9: The variable hlc0006_h is replaced with 1 for the years 2021 to 2022 if hlc0006_v4 is 1 and inlist(hlc0006_v5,-1,1,2).
Step 10: The variable hlc0006_h is replaced with 2 for the years 2021 to 2022 if hlc0006_v4 is 2 and hlc0006_v6 is 1.
Step 11: The variable hlc0006_h is replaced with 31 for the years 2021 to 2022 if hlc0006_v4 is 2 and hlc0006_v6 is -1.
Step 12: The variable hlc0006_h is replaced with 3 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 1.
Step 13: The variable hlc0006_h is replaced with 41 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is -1.
Step 14: The variable hlc0006_h is replaced with 3 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is 1.
Step 15: The variable hlc0006_h is replaced with 4 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is 2.
Step 16: The variable hlc0006_h is replaced with 51 for the years 2021 to 2022 if hlc0006_v6 is 2 and hlc0006_v7 is 2 and hlc0006_v8 is -1.
Step 17: The variable hlc0006_h is replaced with -9 for the years 2023 to 2025 if hlc0006_v12 interview was aborted before this point.
Step 18: The variable hlc0006_h is replaced with -8 for the years 2023 to 2025 if hlc0006_v12 was not included in the survey program that year.
Step 19: The variable hlc0006_h is replaced with -5 for the years 2023 to 2025 if hlc0006_v12 is not included in that version of the questionnaire.
Step 20: The variable hlc0006_h is replaced with -2 for the years 2023 to 2025 if hlc0006_v12 does not apply to the person asked.
Step 21: The variable hlc0006_h is replaced with -1 for the years 2023 to 2025 if hlc0006_v12 is -1.
Step 22: The variable hlc0006_h is replaced with 1 for the years 2023 to 2025 if hlc0006_v12 is 1 and inlist(hlc0006_v9,-1,1,2,3).
Step 23: The variable hlc0006_h is replaced with 2 for the years 2023 to 2025 if hlc0006_v12 is 2 and the variable hlc0006_v10 is 1 or 2.
Step 24: The variable hlc0006_h is replaced with 3 for the years 2023 to 2025 if hlc0006_v12 is 2 and hlc0006_v10 is 3.
Step 25: The variable hlc0006_h is replaced with 31 for the years 2023 to 2025 if hlc0006_v12 is 2 and hlc0006_v10 is -1.
Step 26: The variable hlc0006_h is replaced with 3 for the years 2023 to 2025 if hlc0006_v12 is 3 and the variable hlc0006_v11 is 1 or 2.
Step 27: The variable hlc0006_h is replaced with 4 for the years 2023 to 2025 if hlc0006_v12 is 3 and hlc0006_v11 is 3.
Step 28: The variable hlc0006_h is replaced with 51 for the years 2023 to 2025 if hlc0006_v12 is 3 and hlc0006_v11 is -1.