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.

Variable Specification<br />

SPCHART 1511<br />

If data are organized as shown in Table 1, the variable specifications on XR and XS subcommands<br />

are<br />

VAR BY VAR<br />

The variable specified before BY is the process variable, the variable that contains values for<br />

all instances to be plotted (for example, LENGTH in Table 1). The variable specified after BY<br />

is the category variable or the BY variable, which is the subgroup identifier (for example,<br />

SUBGROUP in Table 1). The process variable must be numeric while the category variable<br />

can be of any type. The chart is sorted by the category variable.<br />

If data are organized as shown in Table 2, the variable specifications on XR and XS subcommands<br />

are<br />

VAR VAR [VAR...] [BY VAR]<br />

Each of the variables specified before BY represents an instance to be plotted (for example,<br />

N1 to N3 in Table 2). At least two variables are required and each must be numeric. Keyword<br />

BY and the category variable (for example, SUBGROUP in Table 2) are optional; if specified,<br />

the category variable provides labels for the category axis and can be any type of variable. If<br />

omitted, the category axis is labeled from 1 to the number of variables specified before keyword<br />

BY.<br />

Example<br />

SPCHART /TEMPLATE=’CTRL.CHT’<br />

/XR SUBSIZE BY SHIFT.<br />

• The data are organized as shown in Table 1. SUBSIZE is a numeric variable that measures<br />

the part size. SHIFT contains the subgroup identifier (work shift number).<br />

• The chart template is stored in the chart file CTRL.CHT.<br />

I and IR Subcommands<br />

I produces an individuals chart and IR produces an individuals and a moving range chart. Both<br />

types are control charts for continuous variables, such as size, weight, length, and temperature.<br />

An individuals chart plots each individual observation on a control chart. The center line<br />

indicates the mean of all individual values and the control limits are calculated from the mean<br />

of the moving ranges, the span, and the user-specified SIGMA value. Individuals charts are<br />

often used with moving range charts to test process variability when the subgroup size is 1.<br />

This occurs frequently when automated inspection and measurement technology is used and<br />

every unit manufactured is analyzed. It also occurs when the process is so slow that a larger<br />

subgroup size becomes impractical. Figure 4 shows an individuals chart.

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

Saved successfully!

Ooh no, something went wrong!