Hi, I have an outcome variable 'count_selectoptionsh' which is the count of high value options chosen by participants in a study with three treatments, giving independent variable 'treatment' that can take values 1(control), 2 and 3. I have also pooled treatments 2 and 3, and generated variable 'pooled' that equals 1 if treatment > 1, but 0 otherwise (if it helps with distribution tests). I basically want to gauge the effect of treatment (2 and 3) on the outcome variable 'count_selectoptionsh'.
For this kind of count survey data - is testing for poisson then using command:
Is this a good idea? If yes, how do I test for Poisson distribution?
If no, are there better ways to achieve this?
Thank you so much for your help!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float count_selectoptionsh byte treatment float pooled 1 2 1 0 1 0 5 2 1 0 1 0 3 1 0 4 3 1 2 3 1 5 2 1 1 3 1 1 2 1 2 1 0 0 1 0 1 2 1 4 3 1 0 1 0 4 2 1 1 1 0 0 1 0 4 2 1 3 1 0 2 1 0 0 1 0 1 2 1 2 3 1 0 1 0 1 2 1 3 1 0 2 1 0 1 2 1 0 1 0 1 1 0 2 1 0 3 1 0 1 2 1 2 3 1 2 1 0 2 3 1 1 1 0 5 1 0 3 3 1 3 2 1 4 3 1 7 1 0 2 1 0 0 1 0 2 1 0 4 2 1 3 1 0 4 2 1 0 3 1 2 2 1 1 1 0 1 3 1 0 1 0 1 3 1 0 2 1 4 2 1 3 2 1 3 3 1 2 2 1 2 3 1 1 3 1 1 1 0 5 3 1 7 2 1 1 2 1 2 2 1 1 3 1 2 2 1 2 1 0 4 2 1 2 2 1 2 1 0 2 2 1 3 1 0 0 2 1 1 3 1 1 1 0 1 3 1 4 2 1 2 3 1 1 1 0 1 1 0 3 3 1 1 3 1 4 2 1 2 2 1 3 3 1 0 3 1 0 1 0 1 1 0 1 3 1 1 3 1 2 2 1 2 3 1 4 1 0 7 2 1 5 3 1 1 3 1 2 3 1 end
Code:
poisson count_selectoptionsh i.treatment, vce(robust)
If no, are there better ways to achieve this?
Thank you so much for your help!
Comment