14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11 Creating Summary Charts 319<br />

Example of the Chart Platform<br />

X Y Type of Chart<br />

one or two none Plots the counts for each level of the X variable. For two X variables, the<br />

counts for each level of both X variables are included (or overlaid) in a<br />

single chart. See “Plot Counts of Variable Levels” on page 328, for an<br />

example.<br />

one or two one or more Plots the selected statistics for each level of the X variable. For two X<br />

variables, the selected statistics for each level of the X variables are included<br />

(or overlaid) in a single chart. See “Plot Multiple Statistics” on page 327,<br />

<strong>and</strong> “Plot Multiple Statistics with Two X Variables” on page 330, for<br />

examples.<br />

Use Grouping Variables<br />

If you specify one grouping variable, the result is a separate chart for each level of the grouping variable. All<br />

charts are under the same outline title. If you used the same variable as a By variable instead, the same<br />

separate charts are produced, but each chart is under its own outline title.<br />

If you specify two or more grouping variables, the result is a matrix of charts. Each chart shows a<br />

combination of one level from each of the grouping variables.<br />

If there are multiple statistics, the Overlay option is checked by default, <strong>and</strong> the Y variables (statistics) are<br />

plotted on the same chart for each level of the grouping variable. However, the levels of the grouping<br />

variable cannot be overlaid into the same plot frame. For example, if the levels of your grouping variable are<br />

Male <strong>and</strong> Female, the Overlay option cannot be used to combine the two Male <strong>and</strong> Female graphs into one<br />

graph. To see that type of result, use Categories, X, Levels instead of Grouping variables.<br />

Related Information<br />

• “Example Using Two Grouping Variables” on page 324<br />

• “Example Using Two Grouping Variables <strong>and</strong> Two Category Variables” on page 325<br />

Adding Error Bars<br />

Error bars are available when the Mean statistic is selected for at least one Y variable, <strong>and</strong> at least one X<br />

variable is assigned. Error Bars are not available for pie charts. Selecting Add Error Bars to Mean causes<br />

additional options to appear in the Chart launch window.<br />

After the option is checked, select a type of error bar from the menu that appears. Some of the types of error<br />

bar have an additional numeric field. The following table describes the different types of error bars that are<br />

available.<br />

Range<br />

St<strong>and</strong>ard Error<br />

Creates error bars based on the range of the data.<br />

Creates error bars based on the st<strong>and</strong>ard error of the mean. You can<br />

specify the number of st<strong>and</strong>ard errors.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!