Using the database nhanes_merged that you created in question 6 of Assignment 7 (a copy is also available in the Final Exam folder):
- create indicator variables for the 6 disability variables (DLQ010, DLQ020, DLQ040, DLQ050, DLQ060, DLQ080) by recoding any value other than 1 equal to 0. NOTE: In this case, we will ignore the missing values because they are mainly associated to the population targeted for the disability questions.
- It is considered best practice to keep the original variables and create new ones when recoding a variable:
- Original Variable NameName of Recoded VariableDLQ010hearDLQ020seeDLQ040concentrateDLQ050walkDLQ060dressDLQ080independentCreate 2 summary variables:dis = 1 if ANY of the 6 disability variables equal to 1label the variable "At least one disability"
- ndis = number of disabilities, obtained by summing the 6 disability variables label the variable "Number of disabilities"
Remember to use the corresponding survey procedure to answer the following questions:
Among those 15 years and older ( WHERE = RIDAGEYR>14; )
a. what percentage has at least one disability?
b. what percentage has more than one disability
c. what is the most common disability?