Skip to main content

Abstract

The Chi-square test is perhaps the most frequently used (or overused) nonparamteric statistical test. The Chi-square test, named for the Greek letter χ (i.e., Chi or the Greek letter for x), is typically used to test for differences in proportions between two or more groups. The Chi-square test is also called a goodness of fit test. That is to say, the Chi-square test is used to see if grouped data actually fit into declared groups, or if the data instead do not fit into the group. For this lesson, Chi-square will be demonstrated using data in two formats: (1) Chi-square using R will first be demonstrated where the data are presented as an external file imported into R, with data organized at the level of individual subjects, (i.e., each row represents the data for an individual subject) and (2) Chi-square using R will also be demonstrated where data are not at the level of individual subjects but data are instead presented in summary format, as a collapsed contingency table.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Although it is beyond the immediate purpose of this text on R, it is still useful to have some background with Boolean terms used for selection. As time permits, become acquainted with the following terms: EQ (equals), NE (not equals), LT (less than), LTE or LE (less than or equal), GT (greater than), and GTE or GE (greater than or equal).

Author information

Authors and Affiliations

Authors

3.1 Electronic Supplementary Material

Below is the link to the electronic supplementary material.

GenderTrait (CSV 1 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

MacFarland, T.W., Yates, J.M. (2016). Chi-Square. In: Introduction to Nonparametric Statistics for the Biological Sciences Using R. Springer, Cham. https://doi.org/10.1007/978-3-319-30634-6_3

Download citation

Publish with us

Policies and ethics