Hello,
I have a general question that involves determining which groups differ from each other in a chi-square test. The following data come from the 2008 Canadian Community Health Survey, I am not interested in the specifics of this particular analysis (receiving tangible social support x education), but I am interested in the general form of this analysis. For example:
tab rectan educ, chi2 cchi2 expected
+--------------------+
| Key |
|--------------------|
| frequency |
| expected frequency |
| chi2 contribution |
+--------------------+
Received |
tangible | Highest level/edu. - HH 4 levels - (D)
social support | < THAN SE SECONDARY OTHER POS POST-SEC. | Total
---------------+--------------------------------------------+----------
0 | 1,507 1,529 845 4,880 | 8,761
| 1,759.3 1,513.0 826.1 4,662.6 | 8,761.0
| 36.2 0.2 0.4 10.1 | 46.9
---------------+--------------------------------------------+----------
YES | 1,172 775 413 2,220 | 4,580
| 919.7 791.0 431.9 2,437.4 | 4,580.0
| 69.2 0.3 0.8 19.4 | 89.8
---------------+--------------------------------------------+----------
Total | 2,679 2,304 1,258 7,100 | 13,341
| 2,679.0 2,304.0 1,258.0 7,100.0 | 13,341.0
| 105.4 0.5 1.3 29.5 | 136.7
Pearson chi2(3) = 136.6756 Pr = 0.000
As you can see, the chi-square test is significant. But I want to know which column proportions are significantly different from the others. I think a z-test would be appropriate for testing the difference in proportions, but I am unsure of how to go about this in Stata 13. Is there a relatively straightfoward way of testing these differences?
Cheers,
David.
I have a general question that involves determining which groups differ from each other in a chi-square test. The following data come from the 2008 Canadian Community Health Survey, I am not interested in the specifics of this particular analysis (receiving tangible social support x education), but I am interested in the general form of this analysis. For example:
tab rectan educ, chi2 cchi2 expected
+--------------------+
| Key |
|--------------------|
| frequency |
| expected frequency |
| chi2 contribution |
+--------------------+
Received |
tangible | Highest level/edu. - HH 4 levels - (D)
social support | < THAN SE SECONDARY OTHER POS POST-SEC. | Total
---------------+--------------------------------------------+----------
0 | 1,507 1,529 845 4,880 | 8,761
| 1,759.3 1,513.0 826.1 4,662.6 | 8,761.0
| 36.2 0.2 0.4 10.1 | 46.9
---------------+--------------------------------------------+----------
YES | 1,172 775 413 2,220 | 4,580
| 919.7 791.0 431.9 2,437.4 | 4,580.0
| 69.2 0.3 0.8 19.4 | 89.8
---------------+--------------------------------------------+----------
Total | 2,679 2,304 1,258 7,100 | 13,341
| 2,679.0 2,304.0 1,258.0 7,100.0 | 13,341.0
| 105.4 0.5 1.3 29.5 | 136.7
Pearson chi2(3) = 136.6756 Pr = 0.000
As you can see, the chi-square test is significant. But I want to know which column proportions are significantly different from the others. I think a z-test would be appropriate for testing the difference in proportions, but I am unsure of how to go about this in Stata 13. Is there a relatively straightfoward way of testing these differences?
Cheers,
David.
Comment