Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN
Pages: 3
Words: 656

And label them data not foundshow frequency table the new variable

Ans. Command mvdecode asthma asthma_b , mv(9=.a) #replaces 9 with .a extension in both the variables.

  1. If applicable, code to extended missing values (.b) all non-applicable values (coded as 8).

    1. Yes asthma but none of the two above options (code 3)

    2. No asthma (code 4)

recode asthmadiagnosis (0=3) if asthma==1 & asthma_b==3

recode asthmadiagnosis (0=4) if asthma==2

Ans. Command:

  • label variable asthmadiagnosis "Asthma diagnosis" # Label the variable as "Asthma diagnosis"

  • label values asthmadiagnosis Asthma_diagnosis # Assigns these label values to the variable asthmadiagnosis

    1. Show a frequency table of the new variable

astm_d_a- If yes, how many days?

  1. Generate a numerical variable indicating the number of days missing, coding as zero (“0”) those reporting not missing any days.

  1. 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.

Ans. Command:-

Note : Data not found

  1. Show a frequency table of the new variable.

Copyright © 2009-2023 UrgentHomework.com, All right reserved.