.

NAG questionnairet Assignment Help

NOTE: Some of the data manipulation you will do in this assignment will be needed for the next week’s assignment.

The following task requires you to use “asthmatx.dta” and have the NAG questionnaire at hand.

  1. The NAG questionnaire includes a question on “have you ever had asthma?” (variable names is “asthma”) and a follow-up question on whether or not the asthma had been confirmed by a doctor (“asthma_b”). Work with these two variables to:
    1. Code to extended missing (.a) all missing values (coded as 9) in both variables.
    2. If applicable, code to extended missing values (.b) all non-applicable values (coded as 8).
    3. Create a new combined variables indicating:
      1. Yes asthma and confirmed by a doctor (code 1)
      2. Yes asthma but not confirmed by a doctor (code 2)
      3. Yes asthma but none of the two above options (code 3)
      4. No asthma (code 4)
      5. No response (code 5)

      NAG questionnairet Assignment Help Through Online Tutoring Sessions at MyAssignmentHelp



      TIP: you should consider that some people may not have responded to the first question, but may have responded to the second…… What is y our decision going to be?  Justify your decision when coding the variable.

    4. Label the variables as “Asthma diagnosis”.
    5. Label each of the values of your variable
    6. Show a frequency table of the new variable
  2. The NAG questionnaire includes a couple of questions on days missed at work due to asthma. Work with these variables to:
    1. Identify these two variables in the dataset
    2. Generate a numerical variable indicating the number of days missing, coding as zero (“0”) those reporting not missing any days.
    3. TIP: there is a typo in the first of the two items with a code that does not match the questionnaire.  You should code this value missing.

    4. The first question on days missed due to asthma is a filter question, so the first item on missing days has a code for non-applicable. Code these NA in the first variable as extended missing (.b) and label them.
    5. Code missings (coded 9 in the first variable and 999 in the second) as the extended missings (.a), and label them.
    6. Show a frequency table of the new variable.
.