Sign In
New User? Register
Statisticians_group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can set the sort order of messages? Just click on the link in the date column. Your preferences will be remembered, so you don't have to do it again when you return.

Messages

  Messages Help
Advanced
Congratulations and Need help   Message List  
Reply | Forward Message #16 of 4102 |
Re: Need help - comparing proportions

Dear Sohail,

To test equality of two proportions, the usual test is chi-square.
This is available in SPSS and other widely used software. SPSS like
most packages expects data to be in a rectangular format in which
each line of data represents one individual (n lines for n subjects)
and each column represents one variable. If the data is in this
format, and the two variables of interest are both binary, use
Analyse - Descriptive Statistics - Crosstabs, select the two
variables of interest as the row and column variables, then select
Statistics - Chi-square. SPSS will produce the crosstabulation and
several different chi-square tests - the first one (Pearson chi-
square) is usually the appropriate one. If numbers are small, SPSS
will issue a warning, you should then use the p-value reported for
the Fisher exact test.

If you have a tabulation of the data, and not a file with n records,
set up a new file with 3 columns named 'row', 'col' and 'freq', set
1,1,2,2 in column 'row', 1,2,1,2 in column 'col' and the 4 cell
counts in column 'freq'. Select Data - Weight cases - Weight cases
by 'freq', then get the crosstabulation of 'row' by 'column' as above.

As well as a p-value, you should get an appropriate measure of effect
size, with a confidence interval (CI). The most important measures
used to compare two proportions p1 and p2 are the difference p1-p2,
the relative risk p1/p2 and the odds ratio (p1/(1-p1))/(p2/(1-p2)).
Which is the most relevant to report depends on your research
question and study design. SPSS gives the relative risk and odds
ratio, if you select Statistics - Risk, but you need to make sure
it's calculating it in the right way - there are 8 possible 'relative
risk' ratios that can be calculated for a 2 by 2 table - you need to
swap group labels (1 and 2) for one or both variables, or swap which
you select as the row and which as the column variable, until you get
the right one i.e. the one that agrees with calculating this measure
directly from your p1 and p2.

If you want to report the difference of 2 proportions, SPSS doesn't
calculate this or its CI. I've just uploaded an Excel file that
calculates confidence intervals for proportions and their differences
using recommended methods. You need to use the second block of this
for a difference of two proportions. Simply overwrite the values in
bold with your own figures, the value of p1-p2 and its CI for your
data will then appear in place of those for the specimen data.

In all of the above I've assumed that your data is unpaired. If
subjects in the two groups are individually matched, the appropriate
test is the McNemar test, which is available under Non-parametric
Tests - Two related samples. The third block of the spreadsheet
calculates a CI for the difference. If the odds ratio is more
meaningful, this is calculated as the ratio of the two cell
frequencies representing disagreement - upper right and lower left (b
and c) cells. A CI can be calculated based on one for the simple
proportion b/(b+c), using the first block of the spreadsheet.

Hope this helps.


> > --- In Statisticians_group@..., "sohail"
<sohail@s...>
> > wrote:
> >> I
> > want to
> >> test the hypothesis of equality of two population proportions
> > using
> >> SPSS. I am unable to find the command, someone who knows it, help
> > me
> >> in this regard.
> >> Thanks
> >






Fri Oct 28, 2005 11:04 am

newcomberobert
Offline Offline
Send Email Send Email

Forward
Message #16 of 4102 |
Expand Messages Author Sort by Date

Congratulations Kundu on starting this gruoup. Dear fellows, I want to test the hypothesis of equality of two population proportions using SPSS. I am unable to...
sohail
sohail_stat
Online Send Email
Oct 27, 2005
6:18 am

I think what you are looking for is t test to compare means, If I am not wrong, it is in analyze, compare means, independent samples t test. Best regards, ...
ahmedmousa
Offline Send Email
Oct 27, 2005
7:51 am

Hi, And if you have Minitab, you can also try 2-Sample t (Two-sample t-tests are used to perform hypothesis tests of the difference in means). It's in Stat,...
Mai Sotto
maitsotto
Offline Send Email
Oct 27, 2005
9:01 am

Thank you, My query is to test the hypothesis about equality of two population proportions not two population means....
SOHAIL CHAND
sohail_stat
Online Send Email
Oct 28, 2005
7:18 am

Dear Sohail, To test equality of two proportions, the usual test is chi-square. This is available in SPSS and other widely used software. SPSS like most...
Robert Newcombe
newcomberobert
Offline Send Email
Oct 28, 2005
11:04 am

Dear Colleagues, No, this is not what is required here. I sent an email to the group last week indicating that you need to use Crosstabs to get the chi- ...
Robert Newcombe
newcomberobert
Offline Send Email
Nov 1, 2005
9:24 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help