| Date: | Tue, 17 Jul 2007 19:10:00 -0400 |
| Reply-To: | Arthur Tabachneck <art297@NETSCAPE.NET> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Arthur Tabachneck <art297@NETSCAPE.NET> |
| Subject: | Re: stat question: comparing proportions in 2 dependent samples |
|
Take a look at the proc freq documentation. One thing you will find is:
McNemar's test
Beginning in Release 6.10, use the AGREE option in Base SAS PROC FREQ.
Before Release 6.10, create a three-way table with a stratum variable
identifying each subject (or matched group), a variable indicating each
occasion (condition or individual within matched group), and a binary
response variable. Then use the CMH option. For example, if each subject
gives a binary response to each of two drugs, use the statement:
tables subject*drug*response/cmh2 noprint;
HTH,
Art
--------
On Tue, 17 Jul 2007 13:58:52 -0400, wcw2 <wcw2@CDC.GOV> wrote:
>I'm looking for an appropriate statistical test for the difference in
>proportions. I want to compare the proportion of a factor (for example,
>males) in population A versus the proportion in population B.
>However, population A is a partial subset of the larger population B
(i.e.,
>most, but not all, of population A is contained in population B).
>I can't use the ChiSquare test as the 2 samples are not independent (such
>as cases vs controls). I'm reluctant to use the McNemar's test for
>dependent proportions as the 2 samples are not paired (such as before vs
>after in the same population). Can anyone recommend a suitable statistical
>test for the difference in these proportions? I'd be delighted with any
SAS
>code as well!
|