Previous Page | Next Page

The ANOM Procedure

Syntax

The syntax for the INSET statement is as follows:

INSET keyword-list </ options> ;

You can use any number of INSET statements in the ANOM procedure. Each INSET statement produces a separate inset and must follow one of the chart statements. The inset appears on every panel (page) produced by the last chart statement preceding it. The statistics are displayed in the order in which they are specified. The following statements produce an ANOM boxchart with two insets and an ANOM chart for means with one inset.

proc anom data=LabelDeviations;
   boxchart Deviation*Position;
      inset alpha mse dfe;
      inset ldl mean udl;
   xchart Deviation*Position;
      inset ngroups nmin nmax;
run;

The statistics displayed in an inset are computed for a specific response variable using observations for the current BY group. For example, in the following statements, there are two response variables (Weight and Diameter) and a BY variable (Location). If there are three different locations (levels of Location), then a total of six ANOM charts are produced. The statistics in each inset are computed for a particular variable and location. The labels in the inset are the same for each ANOM chart.

proc anom data=Axles;
   by Location;
   xchart (Weight Diameter)*Batch;
   inset alpha mse dfe;
run;

The components of the INSET statement are described as follows.

keyword-list

can include any of the keywords listed in Summary of INSET Keywords. By default, inset statistics are identified with appropriate labels, and numeric values are printed using appropriate formats. However, you can provide customized labels and formats. You provide the customized label by specifying the keyword for that statistic followed by an equal sign (=) and the label in quotes. Labels can have up to 24 characters. You provide the numeric format in parentheses after the keyword. Note that if you specify both a label and a format for a statistic, the label must appear before the format. For an example, see Formatting Values and Customizing Labels.

options

appear after the slash (/) and control the appearance of the inset. For example, the following INSET statement uses two appearance options (POSITION= and CTEXT=):

inset n nmin nmax / position=ne ctext=yellow;

The POSITION= option determines the location of the inset, and the CTEXT= option specifies the color of the text of the inset.

See Summary of Options for a list of all available options, and Dictionary of Options for detailed descriptions. Note the difference between keywords and options; keywords specify the information to be displayed in an inset, whereas options control the appearance of the inset.

Previous Page | Next Page | Top of Page