I am looking for code in order to do a simple a two-proportion test for mutually exclusive groups. To my knowledge, a chi-square test tells you me that the two categories are related (not indepedent) and does not provide what I desire. I need to test whether the proportions of the groups are equal applying the the principles in this https://onlinecourses.science.psu.edu/stat414/node/268 or this online calculator http://www.socscistatistics.com/tests/ztest/Default2.aspx
Example question: Is the proportion of URM students who succeed (58.33%) different than the proportion of non-URM students who also succeed (77.06%).
Table of URM by Success_category | |||
URM | Success_category | ||
Frequency(n) | ABCs | DFWs | Total |
0(non-URM) | 84(n) | 25(n) | 109 |
1(URM) | 70(n) | 50(n) | 120 |
Total | 154(n) | 75(n) | 229 |
Statistics for Table of URM by Success_category |
Statistic | DF | Value | Prob |
Chi-Square | 1 | 9.0987 | 0.0026 |
Likelihood Ratio Chi-Square | 1 | 9.2409 | 0.0024 |
Continuity Adj. Chi-Square | 1 | 8.2681 | 0.0040 |
Mantel-Haenszel Chi-Square | 1 | 9.0589 | 0.0026 |
Phi Coefficient |
| 0.1993 |
|
Contingency Coefficient |
| 0.1955 |
|
Cramer's V |
| 0.1993 |
|
http://support.sas.com/kb/22/561.html
@kfwright23 wrote:
I am looking for code in order to do a simple a two-proportion test for mutually exclusive groups. To my knowledge, a chi-square test tells you me that the two categories are related (not indepedent) and does not provide what I desire. I need to test whether the proportions of the groups are equal applying the the principles in this https://onlinecourses.science.psu.edu/stat414/node/268 or this online calculator http://www.socscistatistics.com/tests/ztest/Default2.aspx
Example question: Is the proportion of URM students who succeed (58.33%) different than the proportion of non-URM students who also succeed (77.06%).
Table of URM by Success_category
URM
Success_category
Frequency(n)
Percent
Row Pct
Col PctABCs
DFWs
Total
0(non-URM)
84(n)
36.68
77.06%
54.5525(n)
10.92
22.94
33.33109
47.601(URM)
70(n)
30.57
58.33%
45.4550(n)
21.83
41.67
66.67120
52.40Total
154(n)
67.2575(n)
32.75229
100.00
Statistics for Table of URM by Success_category
Statistic
DF
Value
Prob
Chi-Square
1
9.0987
0.0026
Likelihood Ratio Chi-Square
1
9.2409
0.0024
Continuity Adj. Chi-Square
1
8.2681
0.0040
Mantel-Haenszel Chi-Square
1
9.0589
0.0026
Phi Coefficient
0.1993
Contingency Coefficient
0.1955
Cramer's V
0.1993
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.