Hello Stata team,
Unfortunately, I’m really struggling with processing data from a skip question from survey data.
The question flow runs as:
Q7 Do you feel you can be specific about NTWD diagnosis? (yes/no)
*Yes (move on to Question 8) No (Skip to Question 10)
Q8 To what extent are you confident in making diagnosis for the following conditions? (Likert scale 1-5)
DiagnConfGanglia
DiagnConfTendin
This looks like this from my coding:
label values SpecdiagnNTWD SpecdiagnNTWD
label define SpecdiagnNTWD 1 "yes" 3 "no"
*Yes (move on to Question 8) No (Skip to Question 10)
*Q8 ConfDiag
label define Confidence 1 "always" 2 "very often" 3 "sometimes" 4 "rarely" 5 "never"
label values DiagnConfGanglia Confidence
generate New_DiagnConfGanglia 5=SpecdiagnNTWD no
When I generate a table for Q8 it looks as I would wish (below)

However, when I generate a table for each diagnosis, the missing values are lumped together with the 'no' category below:
[ATTACH=CONFIG]n1741817[/ATTACH]
I set the rule of “no” = “never” in my data cleaning guide, but can't work out how to move the 83 'no' values into 'never.
I’ve unsuccessfully tried the following:
Thomas
Unfortunately, I’m really struggling with processing data from a skip question from survey data.
The question flow runs as:
Q7 Do you feel you can be specific about NTWD diagnosis? (yes/no)
*Yes (move on to Question 8) No (Skip to Question 10)
Q8 To what extent are you confident in making diagnosis for the following conditions? (Likert scale 1-5)
DiagnConfGanglia
DiagnConfTendin
This looks like this from my coding:
label values SpecdiagnNTWD SpecdiagnNTWD
label define SpecdiagnNTWD 1 "yes" 3 "no"
*Yes (move on to Question 8) No (Skip to Question 10)
*Q8 ConfDiag
label define Confidence 1 "always" 2 "very often" 3 "sometimes" 4 "rarely" 5 "never"
label values DiagnConfGanglia Confidence
generate New_DiagnConfGanglia 5=SpecdiagnNTWD no
When I generate a table for Q8 it looks as I would wish (below)
However, when I generate a table for each diagnosis, the missing values are lumped together with the 'no' category below:
[ATTACH=CONFIG]n1741817[/ATTACH]
I set the rule of “no” = “never” in my data cleaning guide, but can't work out how to move the 83 'no' values into 'never.
I’ve unsuccessfully tried the following:
- SpecdiagnNTWD = Confidence, sort if Confidence == 5
- by SpecdiagnNTWD, sort if Confidence_5 = SpecdiagnNTWD == 5
- by SpecdiagnNTWD_no = Confidence_5, sort if Confidence == 5
- by SpecdiagnNTWD_no == Confidence_never
Thomas
Comment