Hello,
I would like to know how to conduct a k-sample test of proportion in Stata. I did a google search on the matter but I only found some very old posts talking about it (and without giving, as I would have expected, a program able to do that).
More precisely, I have a binary explicated variable y that should be affected by a treatment x.
I want to see if the proportion of cases in which y = 1 varies significantly across my 8 groups (including the control one). My data looks like that :
Ideally, I would like to see whether there is a significant difference in the proportion of y in each treatment compared to the control group, and if there is a difference between the treatments.
Does someone know of a simple program which could help me, please ?
I would like to know how to conduct a k-sample test of proportion in Stata. I did a google search on the matter but I only found some very old posts talking about it (and without giving, as I would have expected, a program able to do that).
More precisely, I have a binary explicated variable y that should be affected by a treatment x.
I want to see if the proportion of cases in which y = 1 varies significantly across my 8 groups (including the control one). My data looks like that :
Treatment | Proportion of y = 1 |
Group 1 | 6,8% |
Group 2 | 26,5% |
Group 3 | 25,2% |
Group 4 | 23,1% |
Group 5 | 31,4% |
Group 6 | 27,7% |
Group 7 | 28,8% |
Group 8 | 28,1% |
Ideally, I would like to see whether there is a significant difference in the proportion of y in each treatment compared to the control group, and if there is a difference between the treatments.
Does someone know of a simple program which could help me, please ?
Comment