 Creating a contingency table from raw data
This tutorial covers the steps for creating a contingency table or two-way frequency table in StatCrunch. To begin, load the Two Categorical Variables data set, which will be used throughout this tutorial. This toy data set contains only two columns of data. The data in the var1 column contains 10 total values with the value b in the first four rows and the value a in the last six rows. The data in the var2 column contains six c values and four d values. Split and stacked bar plots can be used to summarize the association between the data in these two columns. In this case, the six a values are paired with four c values and two d values. The four b values are paired with two c values and two d values. This data set is in raw form in that it is not summarized already in the form of a two table showing the frequencies of each pairing. See ... for working with summary data from a two way table.
Creating a basic contingency table
To create a contingency table of the data in the var1 column cross-classified with the data in the var2 column, choose the Stat > Tables > Contingency > With Data menu option. Select var1 as the Row variable, choose var2 as the Column variable, and click Compute!. The resulting contingency table below shows the individual unique values for each column in the first row and first column of the table. The remaining cells in the table show the frequency (count) for each variable pairing as well as the row-wise totals, column-wise totals and the total number of pairs. The output also shows the results of a standard Chi-Square test for independence. Since the cell counts are quite low in this case, a warning message is displayed below the test results. A better alternative for this data will be discussed below.   