Details and Restrictions of the Chi-Square Test

IBM® SPSS® Data Collection Survey Reporter displays a message if you define a chi-square test on an unsuitable table or if you change a table that has a chi-square test defined so that it is no longer suitable for the test. When this happens, you can either adjust the table so that it conforms to the restrictions, or you can remove the test from the table. However, sometimes Survey Reporter is unable to determine that a table or a section of a table is unsuitable for the test until it actually attempts to perform it--for example, when a table has only two category columns and all of the values in one of those columns are zero. When that happens, Survey Reporter simply skips the test and leaves the chi-square and p value rows blank.

Multiple response variables. This test is not suitable for tables that include a multiple response variable.

Hierarchical data. This test is unsuitable for running on lower level data when you are working with hierarchical data . See the topic Hierarchical Data for more information.

Rows and columns For the chi-square test, the variables on the side and top axes must have at least two categories. Survey Reporter does not perform the test on rows and columns in which all of the values are zero or on rows and columns that are formed from non-category elements, such as bases and means.

Fisher's exact test is carried out only on tables that have exactly two categories containing data on the top and side axes of the table (or on a subsection of the table, such as that formed by a nested or concatenated table).

Nested and concatenated tables. The chi-square test compares the columns and rows formed from the categories of two variables--one on the side axis and one on the top axis. If there is more than one variable on either the side or the top axis, the test is performed separately for each combination of variables at the innermost nesting level. This means that the innermost child variables must have at least two categories.

Built-in bases. This test is not suitable for tables that include variables that contain more than one built-in base.

Two by two tables. When performing the chi-square test on a table or a section of a table that has two category columns and two category rows, Survey Reporter computes Yates' corrected chi-square (continuity correction). When performing the Yates' corrected chi-square, Survey Reporter also computes Fisher's exact test. However, the results of Fisher's exact test are shown only in the diagnostics data and not on the table itself (unless you have also requested Fisher's exact test on the table).

Excluded Elements. The IncludeInBase=False property has no effect on the chi-square test. If a chi-square test is carried out on a table containing categories that are excluded from the base using IncludeInBase=False, the calculation includes rows and columns corresponding to the excluded categories.

Topics on the Chi-Square Test