Hi! I have two variables: doctors and their smoking status (smoking or don't smoking). I want to find out if doctors of different specialties differ in smoking status. What should I use in this case? Chi square test or ANOVA? Help please! I am confused about this simple question.
HTML Code:
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input long(speciality smoking_status)
1 2
1 2
1 1
1 1
2 1
2 1
2 2
2 2
3 1
3 1
3 1
3 1
4 2
4 2
4 2
4 2
5 1
5 2
5 1
5 1
end
label values speciality speciality
label def speciality 1 "cardiologist", modify
label def speciality 2 "endocrinologist", modify
label def speciality 3 "internal_medicine", modify
label def speciality 4 "surgery", modify
label def speciality 5 "traumatology", modify
label values smoking_status smoking_status
label def smoking_status 1 "no", modify
label def smoking_status 2 "yes", modify
[/CODE]