Hello all,
I am very new to the stata world and I am having some trouble with a question that was separated in a questionnaire about the source. It is actually 10 questions but in a,b,c,d,e.. format, e.g. Qn32a, Qn32b, Qn32c...Qn32k. I have the following command when it comes to my new variable for source:
generate source = .
replace source = 0 if Qn32b == 1
replace source = 0 if Qn32c == 1
replace source = 0 if Qn32d == 1
replace source = 0 if Qn32e == 1
replace source = 1 if Qn32f == 1
replace source = 0 if Qn32g == 1
replace source = 0 if Qn32h == 1
replace source = 0 if Qn32i == 1
replace source = 0 if Qn32j == 1
replace source = 0 if Qn32k == 1
Qn32a is the never selection and makes no real changes. Would this be the correct way to group my sources if I am only interested in Qn32f?
I am very new to the stata world and I am having some trouble with a question that was separated in a questionnaire about the source. It is actually 10 questions but in a,b,c,d,e.. format, e.g. Qn32a, Qn32b, Qn32c...Qn32k. I have the following command when it comes to my new variable for source:
generate source = .
replace source = 0 if Qn32b == 1
replace source = 0 if Qn32c == 1
replace source = 0 if Qn32d == 1
replace source = 0 if Qn32e == 1
replace source = 1 if Qn32f == 1
replace source = 0 if Qn32g == 1
replace source = 0 if Qn32h == 1
replace source = 0 if Qn32i == 1
replace source = 0 if Qn32j == 1
replace source = 0 if Qn32k == 1
Qn32a is the never selection and makes no real changes. Would this be the correct way to group my sources if I am only interested in Qn32f?
Comment