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

Create successful ePaper yourself

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

Table 4 Each case is a subgroup for p and np charts<br />

Subgroup Relapse N<br />

January 1 4<br />

February 3 4<br />

... ... ...<br />

Variable Specification<br />

SPCHART 1515<br />

If data are organized as illustrated in Table 3, the variable specification on P or NP subcommands<br />

is<br />

VAR BY VAR<br />

The variable specified before BY is the status variable (for example, OUTCOME in Table 3). The<br />

value of this variable determines whether an item is considered conforming or nonconforming.<br />

The status variable can be any type, but if it is a string, the value specified on CONFORM (or<br />

NONCONFORM) must be enclosed in apostrophes (see “CONFORM and NONCONFORM<br />

Subcommands” on p. 1521). The variable specified after BY is the category variable. It can be<br />

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

If data are organized as shown in Table 4, the variable specification on P or NP is<br />

COUNT(VAR) N({VAR}) [BY VAR]<br />

{VAL}<br />

The variable specified on keyword COUNT is the variable containing the number of nonconforming<br />

or defective items (for example, RELAPSE in Table 4). The specification on keyword<br />

N is either the variable containing the sample size or a positive integer for a constant size<br />

across samples (for example, N in Table 4). The COUNT variable cannot be larger than the N<br />

variable for any given subgroup; if it is, the subgroup is dropped from calculation and plotting.<br />

Keyword BY and the category variable are optional. When specified, the category variable<br />

is used for category axis labels; otherwise, the category axis is labeled 1 to the number<br />

of subgroups. Cases are unsorted for the control chart.<br />

C and U Subcommands<br />

C produces a c chart and U produces a u chart. Both types are control charts for attributes.<br />

That is, they use data that can be counted.<br />

A c chart plots the total number of defects or nonconformities in each subgroup. A defect or<br />

nonconformity is one specification that an item fails to satisfy. Each nonconforming item has<br />

at least one defect, but any nonconforming item may have more than one defect. The center line<br />

of the c chart indicates the mean of the defect numbers of all subgroups. The control limits are

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

Saved successfully!

Ooh no, something went wrong!