Skip to main content

Learn to Use Pearson’s Chi-Squared Test in SPSS With Data From the American National Election Study (2012)

By: The Odum Institute Published: 2015 | Product: SAGE Research Methods Datasets

This dataset is designed for teaching Pearson’s chi-squared test. The dataset is a subset of data derived from the 2012 American National Election Study (ANES), and the example shows how to test whether views on same-sex marriage differ in a statistically significant way between men and women. The dataset file is accompanied by a teaching guide, a student guide, and a how-to guide for SPSS.

Methods: Chi-square test
Prerequisites: Cross-tabulation
Data Type: Survey
Software Guide: SPSS
+- LessMore information

You can preview and download the dataset from this tab. The dataset is available in multiple file formats, compatible with most common software packages. You can also view and download the Codebook, which provides information on the structure, contents, and layout of the dataset.

Looks like you do not have access to this content.

In this tab you will find guides on using this dataset. The Teaching Guide is designed for faculty who are teaching research methods and statistics, with suggestions on how to use the dataset in lab exercises, in homework assignments and as exam questions. The Student Guide introduces the method for students, and can be used in teaching to provide students with an introductory overview of the method or test. The How-to Guide shows how to perform the technique or test using data analysis software.

Looks like you do not have access to this content.

About This Dataset
Data Source Citation

The American National Election Studies (ANES; The ANES 2012 Time Series Study [dataset]. Stanford University and the University of Michigan [producers].

Full title of originating dataset

American National Election Studies (ANES) 2012 Time Series Study

Data author(s) and affiliations

American National Election Studies (Stanford University, University of Michigan)

Data Universe

U.S. eligible voters

Funding sources/suppliers

These materials are based on work supported by the National Science Foundation under grants SES-0937727 and SES-0937715, Stanford University, and the University of Michigan.

Any opinions, findings and conclusions or recommendations expressed in these materials are those of the author(s) and do not necessarily reflect the views of the funding organizations.

Sample/sampling procedures

The ANES 2012 Time Series is a dual-mode survey (face-to-face and Internet) with two independent samples. Cases selected for the face-to-face sample could not be interviewed on the Internet, and cases selected for the Internet survey could not be interviewed in person. The Internet sample was drawn from panel members of GfK Knowledge Networks. The Face-to-face sample used an address-based, stratified, multi-stage cluster sample in 125 census tracts. The face-to-face sample also featured oversamples of blacks and Hispanics.


Original dataset includes 3 weight variables:


for face-to-face sample analysis alone


for Internet sample analysis alone


for combined sample


Data collection dates

09-2012 to 01-2013

Time frame of analysis

2012 to 2013

Unit of analysis


Location covered by data

United States

Links to SRM content
List of variables


Party Identification


Views on Gay Marriage


Views on Abortion


Importance of Religion



Please log in from an authenticated institution or log into your member profile to access the email feature.

Embed code:
Link to this page directly with a permalink:
Preview example: