Usage Note 22561: How do I test the equality of proportions from two independent samples?
The Pearson chi-square test, which is available using the CHISQ
option in the TABLES statement of PROC FREQ, enables you to test the equality of proportions from two independent samples. Suppose you want to compare the proportions of males and females who responded yes to a question. The proportions are MALE, 30 out of 100; and FEMALE, 40 out of 100. Arrange the data as a 2x2 table:
YES NO TOTAL
MALE 30 70 100
FEMALE 40 60 100
Run the data in PROC FREQ by entering these cell counts (
using the WEIGHT statement).
Note that the Pearson test is a test of independence of the row and column
variables (gender and response in this example). But this hypothesis can be shown to be equivalent to the hypothesis of equality of proportions. Also note that you can use the same approach if you have more than two proportions from independent samples.
A detailed example with discussion is available.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> Procedures ==> FREQ Analytics ==> Longitudinal Analysis Analytics ==> Nonparametric Analysis Analytics ==> Categorical Data Analysis Analytics ==> Descriptive Statistics Analytics ==> Exact Methods
|
| Date Modified: | 2005-10-18 13:55:05 |
| Date Created: | 2002-12-16 10:56:39 |