Variable Specification (SPCHART command)

If data are organized as shown in Table 1, the variable specification on the CPCHART subcommand is
var BY var
The variable that is specified before BY is the process variable, which is used to generate the histogram (for example, length in Table 1). The variable that is specified after BY is the subgroup identifier (for example, subgroup in Table 1). The process variable must be numeric, while the subgroup identifier variable can be of any type.
If data are organized as shown in Table 2, the variable specification on the CPCHART subcommand is
var var [var...]

Each variable contains process values for a particular subgroup. Values from all subgroups are used to generate the histogram. At least two variables are required, and each variable must be numeric.

If data are organized as shown in Table 3, the variable specification on the CPCHART subcommand is
var

The specified variable contains the process values used to generate the histogram, and must be numeric.

Example

SPCHART /TEMPLATE='cpchart.sgt'
 /CPCHART length BY shift.
  • The data are organized as shown in Table 1. length is a numeric variable that measures the length of a part. shift contains the subgroup identifier (work shift number).
  • The chart uses the chart template from cpchart.sgt.