You must have the Lesson5.PGM open and run prior to completing this lesson, as the code created in the previous lesson affects these graphs.
Use bar graphs to make comparisons of single events and the differences between them. To visually present the age distribution of the survey population, you will create a bar graph of the Age variable.
From the Command Tree Statistics folder, click Graph. The Graph dialog box opens.

The default graph selection is Bar.
From the Main Variable drop-down menu, select the X-Axis value of Age.
Click OK. Epi Graph opens.
You may need to click the flashing Epi Graph icon from the task bar.
View the bar graph.
Be sure that the Age field is calculated for all records. If you have READ in a new file or program or closed Analysis, then you will have to calculate the Age values. Age fields should be coded, if you have the Lesson5.PGM open and run from the Program Editor.
Click the Close X. The bar graph is now embedded in the Output window and part of your output file.
Your graph should look like the following:
