27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ERRORBAR Subcommand<br />

IGRAPH 761<br />

Error bars help you to visualize distributions and dispersion by indicating the variability of<br />

the measure being displayed. The mean of a scale variable is plotted for a set of categories,<br />

and the length of an error bar on either side of the mean value indicates a confidence interval<br />

or a specified number of standard errors or standard deviations. Error bars can extend in one<br />

direction or in both directions from the mean. Error bars are sometimes displayed in the same<br />

chart with other chart elements, such as bars.<br />

One of the following three keywords indicating the statistic and percentage/multiplier<br />

applied to the error bars must be specified:<br />

CI(Pct) Error bars represent confidence intervals. Pct indicates the level of confidence<br />

and varies from 0 to 100.<br />

SD(sdval) Error bars represent standard deviations. Sdval indicates how many standard<br />

deviations above and below the mean the error bars extend. Sdval must<br />

between 0 and 6.<br />

SE(seval) Error bars represent standard errors. Seval indicates how many standard errors<br />

above and below the mean the error bars extend. Seval must between 0<br />

and 6.<br />

In addition, the following keywords can be specified:<br />

LABEL Labels error bars with means (VAL) and the number of cases (N).<br />

DIRECTION Error bars can extend both above and below the mean values (BOTH),<br />

only above the mean values (UP), only below the mean values<br />

(DOWN), or above for error bars above the baseline and below for<br />

error bars below the baseline (SIGN).<br />

CAPSTYLE For error bars, the style can be T-shaped (T), no cap (NONE), or a cap<br />

with end pieces (FANCY). The default style is T-shaped.<br />

SYMBOL Displays the mean marker (ON). For no symbol, specify OFF.<br />

BASELINE val Defines the value (val) above which the error bars extend above the<br />

bars and below which the error bars extend below the bars.<br />

CAPWIDTH(pct) Controls the width of the cap relative to the distance between<br />

categories. Pct equals the percent of the distance. The default value for<br />

pct is 45.<br />

Example<br />

IGRAPH<br />

/X1=VAR(volume94) TYPE=CATEGORICAL<br />

/Y=VAR(sales96) TYPE=SCALE<br />

/BAR (MEAN) LABEL INSIDE VAL SHAPE=RECTANGLE BASELINE=0.00<br />

/ERRORBAR SE(2.0) DIRECTION=BOTH CAPWIDTH (45) CAPSTYLE=FANCY.<br />

• BAR creates a bar chart with rectangular bars. The bars represent the mean sales96 values<br />

for the volume94 categories.<br />

• ERRORBAR adds error bars to the bar chart. The error bars extend two standard errors<br />

above and below the mean.

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

Saved successfully!

Ooh no, something went wrong!