Wiki Page, Math 13 - Perez Sandbox : Directions: Side-by-side Histograms Stacked Data

Wiki Page
2026-01-17T21:14:59-08:00

Stacked Data Format

The quantitative data is "stacked" in one column and the groups of the categorical variable are listed in the other column.

With the datafile open in a StatCrunch worksheet:

Select Graph Histogram.

Under Select Columns: click on the appropriate quantitative variable (this is the response variable) to move it from the gray box on the left to the white box on the right.

Use the Group by: drop-down menu to choose the appropriate categorical variable (this is the explanatory variable).

In the Markers: area, check Mean to display the means with the histograms.

Scroll down to the For multiple graphs: area and change Columns per page to 3 (this will graph the histograms on one page). Also in the For multiple graphs: area check Use same X-axis and Use same Y-axis (Graphs with the same scale are easier to compare.)

Press Compute!