Step 1: The variable plg0293_h is replaced by the variable plg0293_v9 for the years 1999 to 2021.
Step 2: The variable plg0293_h is replaced with -2 for the years 1984 to 1998.
Step 3: The variable plg0293_h is replaced with 1 for the years 1984 to 1998, if plg0293_v1 is 1 and the variables plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 4: The variable plg0293_h is replaced with 2 for the years 1984 to 1998, if plg0293_v2 is 1 and the variables plg0293_v1,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 5: The variable plg0293_h is replaced with 5 for the years 1984 to 1998, if plg0293_v5 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 6: The variable plg0293_h is replaced with 6 for the years 1984 to 1998, if plg0293_v6 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v7,plg0293_v8 are not 1.
Step 7: The variable plg0293_h is replaced with 8 for the years 1984 to 1998, if plg0293_v8 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7 are not 1.
Step 8: The variable plg0293_h is replaced with 4 for the years 1984 to 1998, if plg0293_v4 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 9: The variable plg0293_h is replaced with 3 for the years 1984 to 1998, if plg0293_v3 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 10: The variable plg0293_h is replaced with 7 for the years 1984 to 1998, if plg0293_v7 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v8 are not 1.
Step 11: The variable plg0293_h is replaced with 9 for the years 1989 and 1993, if plg0155_h is -2 and the variables plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8 are 1.
Step 12: The variable plg0293_h is replaced with 9 for the years 1984 to 1998, if plg0293_h is -2 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7, plg0293_v8 are 1.
Step 13: The variable plg0293_h is replaced by the variable plg0293_v10 for the years 2018 and 2019, if plg0293_v10 is greater than 0 and plg0293_v9 is less than 0.
Step 14: The variable plg0293_h is replaced by the variable plg0293_v11 for the years 2020 to 2021, if plg0293_v9 is not included in that version of the questionnaire.
Step 1: The variable plg0293_h is replaced by the variable plg0293_v9 for the years 1999 to 2021.
Step 2: The variable plg0293_h is replaced with -2 for the years 1984 to 1998.
Step 3: The variable plg0293_h is replaced with 1 for the years 1984 to 1998, if plg0293_v1 is 1 and the variables plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 4: The variable plg0293_h is replaced with 2 for the years 1984 to 1998, if plg0293_v2 is 1 and the variables plg0293_v1,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 5: The variable plg0293_h is replaced with 5 for the years 1984 to 1998, if plg0293_v5 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 6: The variable plg0293_h is replaced with 6 for the years 1984 to 1998, if plg0293_v6 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v7,plg0293_v8 are not 1.
Step 7: The variable plg0293_h is replaced with 8 for the years 1984 to 1998, if plg0293_v8 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7 are not 1.
Step 8: The variable plg0293_h is replaced with 4 for the years 1984 to 1998, if plg0293_v4 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 9: The variable plg0293_h is replaced with 3 for the years 1984 to 1998, if plg0293_v3 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7,plg0293_v8 are not 1.
Step 10: The variable plg0293_h is replaced with 7 for the years 1984 to 1998, if plg0293_v7 is 1 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v8 are not 1.
Step 11: The variable plg0293_h is replaced with 9 for the years 1989 and 1993, if plg0155_h is -2 and the variables plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8 are 1.
Step 12: The variable plg0293_h is replaced with 9 for the years 1984 to 1998, if plg0293_h is -2 and the variables plg0293_v1,plg0293_v2,plg0293_v3,plg0293_v4,plg0293_v5,plg0293_v6,plg0293_v7, plg0293_v8 are 1.
Step 13: The variable plg0293_h is replaced by the variable plg0293_v10 for the years 2018 and 2019, if plg0293_v10 is greater than 0 and plg0293_v9 is less than 0.
Step 14: The variable plg0293_h is replaced by the variable plg0293_v11 for the years 2020 to 2021, if plg0293_v9 is not included in that version of the questionnaire.