Chi-square from contingency tables with SPSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Chi-square from contingency tables with SPSS

Bob Schacht-3
I seem to recall that someone wrote that SPSS can calculate all chi-square
statistics from a contingency table as input. But I can't find that
message. I've also checked the syntax command manual, without success.
Would someone please point me in the right direction?

Thanks,
Bob

Robert M. Schacht, Ph.D. <[hidden email]>
Pacific Basin Rehabilitation Research & Training Center
1268 Young Street, Suite #204
Research Center, University of Hawaii
Honolulu, HI 96814

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Chi-square from contingency tables with SPSS

Johnny Amora
Hi Bob,
You need to create a datafile with three columns containing your two "categorical variables" and a "count variable".  Consider the 2x2 table on gender and opinion:

                             Opinion
                      Agree    Disagree

Male                 10          20
Female             30          40

Your three-column datafile should be:

Gender         opinion        count
Male             agree            10
Male             disagree        20
female           agree            30
female           disagree       40

Then run the syntax:

WEIGHT
  BY count .
CROSSTABS
  /TABLES=gender  BY opinion
  /FORMAT= AVALUE TABLES
  /STATISTIC=CHISQ CC PHI
  /CELLS= COUNT
  /COUNT ROUND CELL .

Cheers, 

Johnny T. Amora   Statistician, Center for Learning and Performance Assessment
De La Salle-College of Saint Benilde
Manila, Philippines

--- On Fri, 12/12/08, Bob Schacht <[hidden email]> wrote:
From: Bob Schacht <[hidden email]>
Subject: Chi-square from contingency tables with SPSS
To: [hidden email]
Date: Friday, 12 December, 2008, 7:20 AM

I seem to recall that someone wrote that SPSS can calculate all chi-square
statistics from a contingency table as input. But I can't find that
message. I've also checked the syntax command manual, without success.
Would someone please point me in the right direction?

Thanks,
Bob

Robert M. Schacht, Ph.D. <[hidden email]>
Pacific Basin Rehabilitation Research & Training Center
1268 Young Street, Suite #204
Research Center, University of Hawaii
Honolulu, HI 96814

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/ph/

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD