Previous Page | Next Page

The SHEWHART Procedure

Links and Tests for Special Causes

The TESTHTML= data set provides a way to associate a link with each subgroup in a control chart for which a given test for special causes is positive:

Table 13.97 Variables Required in a TESTHTML= Data Set

Variable

Type

Description

_TEST_

character or numeric

test identifier

_CHART_

numeric

primary (1) or secondary (2) chart

_URL_

character

HTML specifying URL for subgroups with positive test

The variable _TEST_ identifies a test for special causes (see Tests for Special Causes). A standard test is identified by its number (1 to 8) and a nonstandard test is identified by the CODE= character in its pattern specification. The _TEST_ variable must be a character variable if nonstandard tests are included in the TESTHTML= data set. The value of _CHART_ is 1 or 2, specifying whether the test applies to the primary or secondary chart. The character variable _URL_ contains the HTML syntax for the link to be associated with subgroups for which the test is positive.

The following statements create a TESTHTML= data set and an chart using the same DATA= data set as the previous example:

ods html body = "example2.html";

data testlink;
     length _URL_ $ 75;
     input _TEST_ _CHART_ _URL_;
datalines;
1  1  href="http://www.sas.com/"
2  1  href="http://www.sas.com/service/techsup/faq/qc/shewproc.html"
3  1  href="http://www.sas.com/rnd/app/qc.html"
4  1  href="http://www.sas.com/rnd/app/qc/qcnew.html"
5  1  href="http://www.sas.com/products/qc/index.html"
6  1  href="http://www.sas.com/rnd/app/qc/qc/qcspc.html"
7  1  href="http://www.sas.com/software/components/qc.html"
8  1  href="http://www.sas.com/rnd/app/qc/qc.html"
;
symbol1 v=dot;
proc shewhart data=wafers testhtml=testlink;
   xchart Diameter*Batch / tests = 1 to 8;
run;

ods html close;
run;

In this example only subgroups triggering tests for special causes have URLs associated with them.

Note:If a TESTHTML= data set and an HTML= variable are both specified, the link from the TESTHTML= data set is associated with any subgroup for which the test is positive.

Previous Page | Next Page | Top of Page