Step 1: The variable plg0155_h is replaced by the variable plg0155_v10 for the years 2000 and 2004 and 2008.
Step 2: The variable plg0155_h is replaced with -2 for the years 1989 and 1993.
Step 3: The variable plg0155_h is replaced with 1 for the years 1989 and 1993 if plg0155_v1 is 1 and !inlist(1,plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 4: The variable plg0155_h is replaced with 2 for the years 1989 and 1993 if plg0155_v2 is 1 and !inlist(1,plg0155_v1, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 5: The variable plg0155_h is replaced with 3 for the years 1989 and 1993 if plg0155_v3 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 6: The variable plg0155_h is replaced with 4 for the years 1989 and 1993 if plg0155_v4 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 7: The variable plg0155_h is replaced with 5 for the years 1989 and 1993 if plg0155_v5 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v6, plg0155_v7, plg0155_v8).
Step 8: The variable plg0155_h is replaced with 6 for the years 1989 and 1993 if plg0155_v6 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v7, plg0155_v8).
Step 9: The variable plg0155_h is replaced with 7 for the years 1989 and 1993 if plg0155_v7 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v8).
Step 10: The variable plg0155_h is replaced with 8 for the years 1989 and 1993 if plg0155_v8 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7).
Step 11: The variable plg0155_h is replaced with 9 for the years 1989 and 1993 if plg0155_h is -2 and inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 1: The variable plg0155_h is replaced by the variable plg0155_v10 for the years 2000 and 2004 and 2008.
Step 2: The variable plg0155_h is replaced with -2 for the years 1989 and 1993.
Step 3: The variable plg0155_h is replaced with 1 for the years 1989 and 1993 if plg0155_v1 is 1 and !inlist(1,plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 4: The variable plg0155_h is replaced with 2 for the years 1989 and 1993 if plg0155_v2 is 1 and !inlist(1,plg0155_v1, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 5: The variable plg0155_h is replaced with 3 for the years 1989 and 1993 if plg0155_v3 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 6: The variable plg0155_h is replaced with 4 for the years 1989 and 1993 if plg0155_v4 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).
Step 7: The variable plg0155_h is replaced with 5 for the years 1989 and 1993 if plg0155_v5 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v6, plg0155_v7, plg0155_v8).
Step 8: The variable plg0155_h is replaced with 6 for the years 1989 and 1993 if plg0155_v6 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v7, plg0155_v8).
Step 9: The variable plg0155_h is replaced with 7 for the years 1989 and 1993 if plg0155_v7 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v8).
Step 10: The variable plg0155_h is replaced with 8 for the years 1989 and 1993 if plg0155_v8 is 1 and !inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7).
Step 11: The variable plg0155_h is replaced with 9 for the years 1989 and 1993 if plg0155_h is -2 and inlist(1,plg0155_v1, plg0155_v2, plg0155_v3, plg0155_v4, plg0155_v5, plg0155_v6, plg0155_v7, plg0155_v8).