A Crosstab report (aka Contingency Table) allows you to cross tabulate at least two questions, one or more in the columns (also known as banner questions) and one or more in the rows (also known as stubs). Use Crosstabs to examine trends and patterns that are driving your summary results.

### Compatible Question Types

- Radio Button
- Checkboxes
- Dropdown Menu (Single)
- Image Select (Single)
- Image Select (Multiple)
- Rating (Likert Scale)
- NPS®
- Radio Button Grid Rows
- Checkbox Grid Rows
- Custom Group Radio Buttons
- Custom Group Checkboxes
- Custom Group Dropdown Menu (Single)
- Custom Group Rating (Likert Scale)
- Custom Group NPS
- Custom Group Checkbox Grid
- Custom Group Radio Button Grid
- URL Variables
- SSO Variables
- Hidden Values

## Setup

**1.** Go to **Results > Reports**

**2.** Click **Create Report > Crosstab**.

**3.** Give your report a **Title**.

**4.** Add Your Columns, also know as Banners. To add multiple questions, simply select them one after another. Delete any answer options from the list below that you do not wish to include.

**5. **Next, add your Rows (aka Stubs).

**6. **Finally, choose from the below crosstab options and click **Add Crosstab** when you are finished.

### Crosstab Options

**Frequencies** - These are just the counts of responses. Check out the Understanding Crosstab Totals section of this tutorial to learn more.

**Row Percents** - Row percents are computed by taking the cell count divided by the row total. Check out the Understanding Row and Column Percents section of this tutorial to learn more.

**Column Percent**s - Column percents are computed by taking the cell count divided by the column total. Check out the Calculating Row and Column Percents section of this tutorial to learn more.

**Index **- The index is the likelihood of having both the row and column characteristic in comparison to the base population. The Index is calculated by dividing either the Row % in the cell by the Column Total % or by dividing Column % in the cell by the Row Total %. Either calculation generates the same result. Check out the Calculating the Index section of this tutorial to learn more.

**Row Means** - The row mean can be computed when the banner (the question in the column) has numeric reporting values; otherwise row means are not available. Check out the Calculating Row and Column Means section of this tutorial to learn more.

**Column Means** - The column mean can be computed when the stub (the question in the row) has numeric reporting values; otherwise column means are not available. Check out the Calculating Row and Column Means section of this tutorial to learn more.

**Row Totals **- The Row Total/Sub-Total column is the total responses for each answer option for the stub (the question in the row). In the Row Total/Sub-Total column there is also a percentage; this is the column percent for the row computed by dividing the row total by the total responses. Check out the Understanding Crosstab Totals section of this tutorial to learn more.

**Column Totals **- The Total/Sub-Total column is the total responses for each answer option for the stub (the question in the row). In the Row Total/Sub-Total column there is also a percentage; this is the row percent for the column computed by dividing the row total by the total responses. Check out the Understanding Crosstab Totals section of this tutorial to learn more.

**Pearson Chi-Square** - The chi-square (X²) statistic is used to investigate whether the data from two questions are correlated. The Pearson's Chi-Square test will assess whether the two cross-tabulated questions are independent or unrelated. A significant chi-square means that the data is related. Check out the Chi-Square section of this tutorial to learn more.

**Fisher's Exact Test** - Fisher's Exact Test is only available for analyzing 2x2 tables, meaning the cross tabulation of two questions each with only two answer options. Fisher's test is the best choice when available as it always gives the exact P value, while the chi-square test only calculates an approximate P-value. Fisher's is typically employed when sample sizes are small, but it is valid for all sample sizes. Check out the Fisher's Exact Test section of this tutorial to learn more.

**Column Proportions** - This significance test analyzes all pairs of columns by row within a given banner question. If a given cross tabulation of two questions are found to be significantly related (based on the results of the Chi-Square test) you can use the column proportions test to look at the rows and compare pairs of columns, to test whether the proportion of respondents in one column is significantly different from the proportion in the other column. The proportion is the count in the cell divided by the total for the column. Check out the Column Proportions section of this tutorial to learn more.

*Notes:*

*When selecting Column proportion significance testing, the Heatmap option will be toggled off; you can change this setting back if you wish.**Column proportions are only run on cross-tabulated questions that have a significant Chi-Squared on your specified significance level).*

**Decimal Places** - Customize the decimal places displayed to either 0, 1, or 2.

**Significance** - Choose the confidence level (0.10, 0.05, or 0.01) for your significance testing (both Chi-square and Column Proportions).

**Heatmap** - Heat mapping will highlight the cells in a range of color shades – darker for higher numbers and lighter for lower numbers. There are four heatmap options: no heatmap, by the row %, by column %, or by index.

*Note: **The Heatmap option will be toggled off when selecting Column proportion significance testing; you can change this setting back if you wish.*

### Understanding Crosstab Totals

Below you'll see that 2,806 people answered both the happiness question and the gender question as crosstabs are subset to responses that have an answer for both questions.

To the left of the 2,806, across the horizontal, you'll have a count for responses that selected each answer option for the Banner question (the question in the columns).

Of the 2,806 respondents who responded to these questions 1,218 are Male and 1,588 are Female. These will add up to the total number of responses: 1,218 + 1,588 = 2,806.

Above the 2,806, you'll have the count for each of the answer options for the question in the rows (aka Stubs).

Of the 2,806 respondents who responded to these questions, 891 are Very happy, 1,575 are Pretty happy, and 340 are Not too happy. These will also add up to the total number of responses: 891 + 1,575 + 340 = 2,806.

### Understanding Row and Column Percentages

The Row % is the percentage of total people defined in the row who also have the column characteristic. It is computed by dividing the cell total by the row total.

In the below example 41.9% of Very happy respondents are also Male.

By default, the Crosstab will display a Row % in each cell. If you wish to display column percentages, toggle this option on setup or edit the Crosstab and click **Override Global Report Styles** to see the **Cell Contents** options.

The Column % is the percentage of total people defined in the column who also have the row characteristic. It is computed by dividing the cell total by the column total.

In the example below 32.6% of Female respondents are also Very happy.

### Understanding the Index

By default, the Crosstab will display a Row % in each cell. If you wish to display an index, toggle this option on setup or edit the Crosstab and click **Override Global Report Styles** to see the **Cell Contents** options.

The index is the likelihood of having both the row and column characteristic in comparison to the base population.

Indices are computed by dividing the Row % for the cell by the Column Total % or the Column % for the cell by Row Total %; these number will be identical. This value is then multiplied by 100.

Indices over 100 indicate a higher likelihood and indices under 100 indicate a lower likelihood.

In the below example, the index of 103 in the Female x Very happy cell means that Females are 3% more likely to be Very happy than the base population. Similarly, the index of 96 in the Male x Very happy cell means that Males are 4% less likely to be Very happy than the base population.

### Understanding Row and Column Means

Row and Column means are calculated when numeric reporting values are present. The row mean can be computed when the banner (the question in the column) has numeric reporting values; otherwise, row means are not available. The column mean can be computed when the stub (the question in the row) has numeric reporting values; otherwise, column means are not available.

The row mean is computed by multiplying the count for each cell by the reporting value for the answer option in the column then dividing the sum of these values by the row total.

Similarly, the column mean is computed by multiplying the count for each cell by the reporting value for the answer option in the row then dividing the sum of these values by the column total.

In the below example, the column mean is computed as follows: ((373 x 1) + (712 x 2) + (133 x 3)) / 1218 = 1.8.

When comparing the column means for Males and Females we can see that there is not much difference in happiness overall for the two groups.

### Understanding Pearson's Chi Square

The chi-square (X²) statistic is used to investigate whether the data from two questions are correlated. The Pearson's chi-squared test will assess both **goodness of fit** and** independence**. Goodness of fit determines whether the distribution of your data differs from what is considered a normal distribution that would theoretically be observed in the general population if we got a response from everyone. Independence means that when the data is cross-tabulated it is unrelated or "independent."

When you run a crosstab, SurveyGizmo will return a Pearson Chi-Square, Degrees of Freedom and a p-Value.

**What are all these values?**

**Pearson Chi-Square**- The sum of squared deviations between observed (your data) and theoretical frequencies (population data).**DF**- The Degrees of Freedom is the number of values in the final calculation of the chi-square statistic that are free to vary, which is the number of categories reduced by the number of parameters calculated as (columns -1)(rows-1).**P-Value**- The level of confidence that there is a statistical difference between the distribution of your data and the theoretical distribution of data (the population). In other words, whether the two questions in your crosstab are correlated.

The DF and the P-Value are used to look up whether your Chi-square statistic is greater than the critical value of Chi Square in a Chi-Square Distribution Table: Chi-square-table.pdf

In the example we've been using in this tutorial, we have cross-tabulated gender and happiness because we expect that they may be correlated. In the chi-square test below the important number to check is the P-Value. As you can see, the p-Value is 0.1 which means the two questions are correlated at the 0.1 significance level but not the more stringent 0.05 or 0.01 levels.

### Understanding Fisher's Exact Test

Fisher's Exact Test is available for 2x2 Crosstabs, meaning the cross tabulation of two questions each with only two answer options. Fisher's test is the best choice when available as it always gives the exact P value, while the chi-square test only calculates an approximate P value. Fisher's is typically employed when sample sizes are small, but it is valid for all sample sizes.

A depending on the significance you choose (0.1, 0.05, or 0.01), a P-value value that is less than or equal to your significance level indicates that there is an association between the two classifications you are examining.

### Understanding Column Proportion Testing

*Notes:*

*When selecting Column proportion significance testing, the Heatmap option will be toggled off; you can change this setting back if you wish.**Column proportions are only run on cross-tabulated questions that have a significant Chi-Squared on your specified significance level).*

If a given cross tabulation of two questions is found to be significantly related (based on the results of the Chi-Square test) you can use the column proportions compare pairs of columns by row, to test whether the proportion of respondents in one column is statistically different from the proportion in the other column. The proportion being the count in the cell divided by the total for the column.

For example, after using a chi-square test to find that Happiness and Gender are not independent (at the 0.1 significance level), you may want to dig in to see which cells are responsible for this relationship.

When you add the Column Proportion test to your crosstab each column will receive letters as keys. All column pairs within a significant banner question (as determined by the Chi-square test) will be compared against each other by row. Significant differences in Column % will be notated with a subscript letter that corresponds to the column's key. The letter that is displayed and the column it is placed in are determined based on the column %; whichever column % is higher will receive the subscript letter. The letter that is displayed is the column for which that column % is significantly different.

In the below example, the Pretty happy x Male cell has a subscript of B, which indicates that its column % (58.5%) is significantly higher than that of column B (54.3%).

*Net Promoter, Net Promoter System, Net Promoter Score, NPS and the NPS-related emoticons are registered trademarks of Bain & Company, Inc., Fred Reichheld and Satmetrix Systems, Inc.*

Admin

— Dave Domagalski on 08/06/2018

@Barb: Thank you for your question!

It's a bit difficult to answer this specifically to your situation, but in general, to select appended data as a Crosstab column, the appended data would either need to be stored inside of Hidden Value Actions, or it would need to be passed into the survey via URL variables.

Both Hidden Values and URL Variables are available as 'Compatible Questions' for the Crosstab Report:

https://help.surveygizmo.com/help/cross-tab-report#compatible-question-types

Please don't hesitate to reach out to our Support team to discuss your specific situation:

https://help.surveygizmo.com/help/surveygizmo-support-hours

I hope this helps clarify!

David

Documentation Specialist

SurveyGizmo Customer Experience

— Barb on 08/06/2018

Is it possible to select appended data for the column titles?

Admin

— Dave Domagalski on 05/30/2018

@Roxy: Thank you for your question!

I'm sorry for the trouble! This typically indicates that the survey is not using compatible questions for the Crosstab report:

https://help.surveygizmo.com/help/cross-tab-report#compatible-question-types

It may also mean that compatible questions are themselves piped/repeated or are part of a page that is piped/repeated.

I hope this helps clarify!

David

Documentation Specialist

SurveyGizmo Customer Experience

— Roxy on 05/30/2018

Both the columns and rows dropdown boxes only give me options for "All questions from page x", so it doesn't seem to be working... Why am I unable to select particular questions from those pages?

Admin

— Dave Domagalski on 03/13/2018

@Sean: Thank you for your question!

I'm afraid that there is not currently an in-app option to format the crosstab tables.

There are a couple of alternate options that might be worth exploring.

Option one is to utilize 'Question Aliases" to give the row headers shorter titles. You can then toggle your report to use aliases instead of question titles:

https://help.surveygizmo.com/help/using-question-aliases#using-question-aliases-in-your-reports

Another option is to export the Crosstab report to Excel where additional formatting is available:

https://help.surveygizmo.com/help/report-downloads

I'm sorry for the inconvenience!

David

Documentation Specialist

SurveyGizmo Customer Experience

— Sean.mcnally on 03/12/2018

Is there a way to format the tables to give more space to row titles? I have xtab with long titles that cut-off too much to know what the response is.