Step 1: The variable kc_care_h is replaced by the variable kc_care_v1 for the year 1987.
Step 2: The variable kc_care_h is replaced with -2 for the years 1997, 1999 to 2002 and 2004 to 2021.
Step 3: The variable kc_care_h is replaced with 4 for the years 2017 to 2019, if kc_care_v6 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v5, kc_care_v7 are not 1.
Step 4: The variable kc_care_h is replaced with 3 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v4 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v5,kc_care_v6, kc_care_v7 are not 1.
Step 5: The variable kc_care_h is replaced with 4 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v5 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v6, kc_care_v7 are not 1.
Step 6: The variable kc_care_h is replaced with 3 for the years 2017 to 2019, if kc_care_v7 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v5, kc_care_v6 are not 1.
Step 7: The variable kc_care_h is replaced with 2 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v3 is 1 and the variables kc_care_v2, kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are not 1.
Step 8: The variable kc_care_h is replaced with 1 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v2 is 1 and the variables kc_care_v3, kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are not 1.
Step 9: The variable kc_care_h is replaced with 5 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_h does not apply to the person asked and the variables kc_care_v2,kc_care_v3,kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are 1.
Step 1: The variable kc_care_h is replaced by the variable kc_care_v1 for the year 1987.
Step 2: The variable kc_care_h is replaced with -2 for the years 1997, 1999 to 2002 and 2004 to 2021.
Step 3: The variable kc_care_h is replaced with 4 for the years 2017 to 2019, if kc_care_v6 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v5, kc_care_v7 are not 1.
Step 4: The variable kc_care_h is replaced with 3 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v4 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v5,kc_care_v6, kc_care_v7 are not 1.
Step 5: The variable kc_care_h is replaced with 4 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v5 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v6, kc_care_v7 are not 1.
Step 6: The variable kc_care_h is replaced with 3 for the years 2017 to 2019, if kc_care_v7 is 1 and the variables kc_care_v2, kc_care_v3,kc_care_v4, kc_care_v5, kc_care_v6 are not 1.
Step 7: The variable kc_care_h is replaced with 2 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v3 is 1 and the variables kc_care_v2, kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are not 1.
Step 8: The variable kc_care_h is replaced with 1 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_v2 is 1 and the variables kc_care_v3, kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are not 1.
Step 9: The variable kc_care_h is replaced with 5 for the years 1997, 1999 to 2002 and 2004 to 2021, if kc_care_h does not apply to the person asked and the variables kc_care_v2,kc_care_v3,kc_care_v4,kc_care_v5, kc_care_v6, kc_care_v7 are 1.