The PARETO Procedure |
The following entries provide detailed descriptions of options you can specify after the slash (/) in the HBAR statement. For example, to request that the bars of your Pareto chart be colored red, use the CBARS= option, as follows:
proc pareto data=failure; hbar cause / cbars = red ; run;
The notes Traditional Graphics and ODS Graphics identify options that apply to traditional graphics and to ODS Graphics output, respectively.
specifies where the Pareto curve is anchored to the topmost bar on the chart. The following table lists the possible positions.
Keyword |
Anchoring position |
---|---|
BR |
bottom right corner |
LC |
left center |
RC |
right center |
TL |
top left corner |
See Output 11.2.1 for an illustration. The default is BR.
Note: The ANCHOR= option is not supported for ODS Graphics output. The curve is anchored at the right center of the topmost bar.
[Traditional Graphics] specifies an angle in degrees for rotating the Pareto category labels on the vertical axis. The value is the angle between the baseline of the label and the vertical axis. for an illustration. The value must be greater than and less than 90. The default value is zero.
[Traditional Graphics] specifies that annotation requested with the ANNOTATE= and ANNOTATE2= options is to be applied only to the key cell in a comparative Pareto chart. By default, annotation is applied to all of the cells.
[Traditional Graphics] specifies an input data set that contains annotate variables as described in SAS/GRAPH: Reference. You can use this data set to customize traditional grpahics. This data set is associated with the primary horizontal axis. If the annotation is based on data coordinates, you must use the same units as the primary horizontal axis. Features provided in the ANNOTATE= data set are added to every chart produced with the HBAR statement.
[Traditional Graphics] specifies an input data set that contains annotate variables as described in SAS/GRAPH: Reference. You can use this data set to customize traditional graphics. This data set is associated with the secondary horizontal axis. If the annotation is based on data coordinates, you must use the same units as the secondary horizontal axis. Features provided in the ANNOTATE2= data set are added to every chart produced with the HBAR statement.
specifies a factor used in scaling the primary horizontal axis. This factor determines (approximately) the ratio of the length of the axis to the length of the longest bar, and it is used to provide space for the cumulative percent curve. The value must be greater than one.
By default, the factor is chosen so that the curve will be anchored at the bottom right corner of the topmost bar (see also the ANCHOR= option). If this causes the bars to be flattened excessively, however, a smaller default factor is used.
The AXISFACTOR= option is not applicable if the curve is suppressed with the NOCURVE option.
specifies that a label is to be displayed to the right of each bar. If you specify BARLABEL=VALUE, the label indicates the length of the bar in the units used by the primary horizontal axis. See Example 11.8 for an illustration.
If you specify BARLABEL=COUNT, the label displays the count for the bar.
If you specify BARLABEL=CMPCT, the label indicates the cumulative percent associated with that bar. An alternative to BARLABEL=CMPCT is the CMPCTLABEL option, which labels points on the cumulative percent curve with the cumulative percents.
If you specify BARLABEL= (variable-list), the label displays the values of a variable from the input data set. The variable can have a formatted length less than or equal to 32. If a format is associated with the variable, then the formatted value is displayed. The values must be consistent within observations corresponding to a particular Pareto category. The variable is saved in the OUT= data set. If you specify more than one process variable in the chart statement, you can specify more than one BARLABEL= variable. The BARLABEL= and process variables are matched by their positions in the variable lists.
[Traditional Graphics] specifies the position for labels requested with the BARLABEL= option.
BARLABPOS=HBAR displays the labels on the bars.
BARLABPOS=HFIT displays the labels on or to the right of the bars, depending on the available space.
BARLABPOS=HRIGHT displays the labels to the right of the bars.
The labels are truncated if necessary. By default, the labels are displayed to the right of the bars.
specifies that a legend is to be added to the chart to explain colors for bars specified with the CBARS=(variable-list) option or patterns for bars specified with the PBARS=(variable-list) option. The variable-list must be enclosed in parentheses even if only one variable is specified. See Output 11.4.1 for an illustration.
The values of the BARLEGEND= variable provide the explanatory labels used in the legend. The variable can have a formatted length that does not exceed 32. If a format is associated with the variable, then the formatted value is displayed.
The BARLEGEND= option is not applicable unless you specify CBARS=(variable-list) or PBARS=(variable-list) or both. In the DATA= data set, the values of the BARLEGEND= variable must be identical in observations for which the value of the CBARS= variable or the PBARS= variable (or the combination of these two values) is the same. This ensures that the legend derived from the BARLEGEND= variable is consistent.
If you specify more than one process variable in the chart statement and a corresponding list of CBARS= or PBARS= variables, you can specify a list of BARLEGEND= variables. The number of BARLEGEND= variables should be less than or equal to the number of process variables. The lists of variables are matched so that the first BARLEGEND= variable is applied to the first process variable and the first CBARS= or PBARS= variable, the second BARLEGEND= variable is applied to the second process variable and the second CBARS= or PBARS= variable, and so forth. If the list of process variables is longer than the variable-list in the BARLEGEND= option, the charts for the extra process variables will not display a bar legend.
specifies the label displayed to the left of the legend created with the BARLEGEND= option. See Output 11.4.1 for an illustration.
The BARLEGLABEL= option is applicable only in conjunction with CBARS= or PBARS= variables. The label can be up to 16 characters and must be enclosed in quotes.
If no label is specified with the BARLEGLABEL= option, the label associated with the BARLEGEND= variable is displayed (unless the label is longer than 16 characters, in which case the variable name is displayed). If the BARLEGLABEL= option is not specified and no label is associated with the BARLEGEND= variable, no legend label is displayed. If both labels are specified, the BARLEGLABEL= label takes precedence over the variable label.
groups bars of the Pareto chart for display using colors from the current ODS style. The BARS= option should not be used when the NOGSTYLE option is in effect, and you cannot specify the BARS= option in conjunction with the CHIGH or CLOW options. Bars corresponding to the same value of the BARS= variable are filled with the same color from the ODS style.
If you specify more than one process variable, you can specify more than one BARS= variable. The number of BARS= variables should be less than or equal to the number of process variables. The two lists of variables are paired in order of specification. If a BARS= variable is not provided for a process variable, the bars for that chart are filled with the default color from the ODS style.
[Traditional Graphics] specifies the width of the bars in percent screen units. The width of a bar on a horizontal Pareto chart refers to its vertical dimension. By default, the bars are as wide as possible.
[ODS Graphics]specifies whether a category legend is created for ODS Graphics output. By default, a category legend is not created. This option is ignored if ODS Graphics is not enabled.
specifies a label for the category legend that is added when there is insufficient space to label the categories along the vertical axis. The label can be up to 16 characters and must be enclosed in quotes. The default label is Categories:. See Example 11.3 for an illustration. The CATLEGLABEL= option is ignored if it is unnecessary to add the legend.
[Traditional Graphics] specifies the color for the axis line and tick marks on the chart. This color is also used for bar outlines and grid lines, unless overridden by the CBARLINE=, CGRID=, or CGRID2= options.
[Traditional Graphics] specifies the color for the tick mark labels and axis label associated with the secondary axis. By default, the color specified with the CTEXT= option (or its default) is used.
[Traditional Graphics] specifies the color for bar outlines.
[Traditional Graphics] specifies how the bars of the Pareto chart are to be colored. You can use one of the following approaches:
You can specify a single color to be used for all the bars with CBARS=color. You can use this option in conjunction with the CHIGH and CLOW options. See Output 11.2.1 for an illustration.
You can specify a distinct color for each bar (or combination of bars) by providing the colors as values of a CBARS= variable. This variable must be a character variable of length eight. You can use the special value 'EMPTY' to indicate that a bar is not to be colored. Note that the variable name must be enclosed in parentheses. You cannot specify a CBARS= variable in conjunction with the CHIGH and CLOW options. See Output 11.3.1 and Output 11.4.1 for examples.
If you specify more than one process variable, you can specify more than one CBARS= variable. The number of CBARS= variables should be less than or equal to the number of process variables. The two lists of variables are paired in order of specification. If a CBARS= variable is not provided for a process variable, the bars for that chart are not colored.
If you specify one or more CBARS= variables, you can also use the BARLEGEND= option to add a legend to the chart that explains the significance of each color. Furthermore, you can use the PBARS= option to specify patterns in conjunction with the CBARS= option. See Output 11.4.1 and Output 11.5.1 for examples.
[Traditional Graphics] specifies the color for the line segments connecting the points on the cumulative percent curve. You can specify the color for the points themselves with the COLOR= option in the SYMBOL statement; this is the default color.
[Traditional Graphics] specifies the color for filling the area enclosed by the axes and the frame. The CFRAME= option cannot be used in conjunction with the NOFRAME option or the CTILES= option.
[Traditional Graphics] specifies that the legend requested with the NLEGEND option be framed and that the frame be filled with the color indicated. If you specify CFRAMENLEG=EMPTY, a frame is drawn but is not filled with a color. Specify CFRAMENLEG without an argument to fill the frame with a color from the ODS style. See Figure 11.3 and Output 11.1.4 for illustrations.
[Traditional Graphics] specifies the color for filling the frame area for the row labels displayed along the left side of a comparative Pareto chart requested with the CLASS= option. If a label is associated with the classification variable, this color is also used to fill the frame area for this label.
[Traditional Graphics] specifies the color for filling the frame area for the column labels displayed across the top of a comparative Pareto chart requested with the CLASS= option. If a label is associated with the classification variable, this color is also used to fill the frame area for this label.
[Traditional Graphics] specifies the color for grid lines requested with the GRID option. If you specify the CGRID= option, you do not need to specify the GRID option.
[Traditional Graphics] specifies the color for grid lines requested with the GRID2 option. If you specify the CGRID2= option, you do not need to specify the GRID2 option.
specifies the color used to fill the bars with the highest values. You cannot use the CHIGH()= option in conjunction with a CBARS= variable, but you can use the CHIGH()= option together with the CLOW()= and CBARS=color options. See Output 11.3.1 for an illustration. Use the CHIGH() option without specifying a color to fill the highest bars with a color from the ODS style.
[Traditional Graphics] specifies the color for lines requested with the HREF= and HREF2= options.
creates a comparative Pareto chart using the levels of the variables. You must enclose two variables in parentheses. See Example 11.1 and Example 11.2.
If you specify a single CLASS= variable, the observations in the input data set are classified by the formatted values (levels) of the variable. A Pareto chart is created for the process variable values in each level, and these component charts (referred to as cells) are arranged in an array. The cells are labeled with the levels, and uniform horizontal and vertical axes are used to facilitate comparisons.
If you specify two CLASS= variables, the observations in the input data set are cross-classified by the values (levels) of the variables. A Pareto chart is created for the process variable values in each cell of the cross-classification, and these charts are arranged in a matrix. The levels of the first CLASS= variable label the rows, and the levels of the second CLASS= variable label the columns. Uniform horizontal and vertical axes are used to facilitate comparisons.
The CLASS= variables can be numeric or character. The maximum length of a character variable is 32. If a format is associated with a CLASS= variable, the formatted values determine the levels. Only the first 32 characters of the formatted value are used to determine the levels. You can specify whether missing values are to be treated as a level with the MISSING1 and MISSING2 options.
If a label is associated with a CLASS= variable, the label is displayed on the chart, parallel to the column (or row) labels.
specifies the key cell in a comparative Pareto chart requested with the CLASS= option. The key cell is defined as the cell in which the Pareto bars are arranged in decreasing order. This order then determines the uniform horizontal axis used for all the cells.
If you specify CLASS=variable, you can specify CLASSKEY=’value’ to identify the key cell as the level for which variable is equal to value. The value can have up to 32 characters, and you must specify a formatted value. By default, the levels are sorted in the order determined by the ORDER1= option, and the key cell is the level that occurs first in this order. The cells are displayed in this order from top to bottom (or left to right), and consequently the key cell is displayed at the top or at the left. If you specify a different key cell with the CLASSKEY= option, this cell is displayed at the top or at the left unless you also specify the NOKEYMOVE option.
If you specify CLASS=(variable1 variable2), you can specify CLASSKEY=(’value1’ ’value2’) to identify the key cell as the level for which variable1 is equal to value1 and variable2 is equal to value2. Here, value1 and value2 must be formatted values, and they must be enclosed in quotes. By default, the levels of variable1 are sorted in the order determined by the ORDER1= option, and then within each of these levels, the levels of variable2 are sorted in the order determined by the ORDER2= option. The default key cell is the combination of levels of variable1 and variable2 that occurs first in this order. The cells are displayed in order of variable1 from top to bottom and in order of variable2 from left to right. Consequently, the default key cell is displayed in the upper left corner. If you specify a different key cell with the CLASSKEY= option, this cell is displayed in the upper left corner unless you also specify the NOKEYMOVE option.
For an example of the use of the CLASSKEY= option, see Output 11.1.3.
[Traditional Graphics] draws reference lines requested with the HREF= and VREF= options behind the bars on the Pareto chart. When the GSTYLE option is in effect, reference lines are drawn in front of the bars by default.
specifies the color used to fill the bars with the lowest values. You cannot use the CLOW()= option in conjunction with a CBARS=variable, but you can use the CLOW()= option together with the CBARS=color and CHIGH()= options. See Output 11.3.1 for an illustration of the CHIGH()= option. Use the CLOW() option without specifying a color to fill the lowest bars with a color from the ODS style.
labels points on the cumulative percent curve with their values. By default, the points are not labeled.
[Traditional Graphics] coloring othercategoryother category specifies the color for the bar defined by the OTHER= option. The COTHER= option is not applicable unless a CBARS=variable is specified.
requests a proportion-of-frequency bar of the specified color displayed vertically along the right side of each tile in a comparative Pareto chart. The length of a bar relative to the height of its tile indicates the proportion of the total frequency count in the chart that is represented by the tile. You can use the bars to visualize the distribution of frequency count by tile. Specify CPROP without an argument to create bars filled with a color from the ODS style. See Output 11.1.4 for an illustration.
The CPROP= option provides a graphical alternative to the NLEGEND options, which display the actual count. The CPROP= option is applicable only with comparative Pareto charts. Empty bars are displayed if you specify CPROP=EMPTY.
[Traditional Graphics] specifies the color for text, such as tick mark labels, axis labels, and legends. The default is the value specified for the CTEXT= option in the GOPTIONS statement.
[Traditional Graphics] specifies the color for row labels displayed along the left side of a comparative Pareto chart requested with the CLASS= option. The default color is the color specified with the CTEXT= option in the HBAR statement or the CTEXT= option in the GOPTIONS statement.
[Traditional Graphics] specifies the color for column labels displayed across the top of a comparative Pareto chart requested with the CLASS= option. The default color is the color specified with the CTEXT= option in the HBAR statement or the CTEXT= option in the GOPTIONS statement.
[Traditional Graphics] specifies a character variable of length eight whose values are the fill colors for the tiles in a comparative Pareto chart. The CTILES= option generalizes the CFRAME= option, which provides a single color for all of the tiles. The variable must be enclosed in parentheses. The values of the variable must be identical for all observations with the same level of the CLASS= variables. You can use the same color to fill more than one tile. You can use the special value 'EMPTY' to indicate that a tile is not to be filled.
The CTILES= option cannot be used in conjunction with the NOFRAME option or the CFRAME= option. You can use the TILELEGEND= option in conjunction with the CTILES= option to add an explanatory legend for the CTILES= colors at the bottom of the chart. See Output 11.5.1 for an illustration. By default, the tiles are not filled.
[Traditional Graphics] specifies the color for lines requested with the VREF= lines.
[Traditional Graphics] specifies a description, up to 256 characters long, for the GRSEG catalog entry for a traditional graphics chart.
[Traditional Graphics] specifies a software font for text used in labels and legends. The FONT= option takes precedence over the FTEXT= option in the GOPTIONS statement.
specifies a frequency variable whose value provides the counts (numbers of occurrences) of the values of the process variable. Specifying a FREQ= variable is equivalent to replicating the observations in the input data set. The FREQ= variable must be a numeric variable with nonnegative integer values. If you specify more than one process variable in the chart statement, the FREQ= variable values are used with each process variable. See the section Creating a Pareto Chart Using Frequency Data for an illustration. If you do not specify a FREQ= variable, each value of the process variable is counted exactly once.
[Traditional Graphics] draws reference lines requested with the HREF= and VREF= options in front of the bars on the Pareto chart. When the NOGSTYLE option is in effect, reference lines are drawn behind the bars by default, and can be obscured by them.
adds a grid to the Pareto chart corresponding to the primary horizontal axis. Grid lines are vertical lines positioned at tick marks on the primary horizontal axis. The lines are useful for comparing the lengths of the bars.
adds a grid to the Pareto chart corresponding to the secondary horizontal axis. Grid lines are vertical lines positioned at tick marks on the secondary horizontal axis. The lines are useful for reading the cumulative percent curve.
specifies tick mark values for the primary horizontal axis. The values must be equally spaced and in increasing order, and the first value must be zero. You must scale the values in the same units as the bars (see the SCALE= option), and the last value must be greater than or equal to the height of the largest bar.
specifies a label, up to 40 characters, for the primary horizontal axis. The default label depends on the value of the SCALE= option, or it is the label associated with the WEIGHT= variable.
specifies tick mark values for the secondary horizontal axis. The values must be equally spaced and in increasing order, and the first value must be zero. You must scale the values in percent units, and the last value must be greater than or equal to 100.
specifies a label, up to 40 characters, for the secondary horizontal axis. The default label is Cumulative Percent or Cm Pct, depending on the space available.
specifies the height in percent screen units of text for labels and legends. This option should be used only in conjunction with the FONT= option. The HEIGHT= option takes precedence over the HTEXT= option in a GOPTIONS statement.
specifies a label displayed to the left of the legend that is automatically created when you use a combination of the CHIGH, CLOW, PHIGH, and PLOW options. See Output 11.3.1 for an illustration. The label can be up to 16 characters and must be enclosed in quotes. The default label is Bars:.
specifies the length in percent screen units of the offset at the right end of the primary horizontal axis. You can eliminate the offset by specifying HOFFSET=0.
specifies where reference lines perpendicular to the primary horizontal axis are to appear on the chart. You must specify the values in the same units used to scale the primary axis. By default, the primary axis is scaled in percent units, but you can specify other units with the SCALE= option. See Output 11.2.3 for an illustration.
specifies where reference lines perpendicular to the secondary horizontal axis are to appear on the chart. You must specify the values in cumulative percent units.
specifies labels for the lines requested with the HREF= option. The number of labels must equal the number of lines requested. Labels can be up to 16 characters and must be enclosed in quotes.
specifies labels for the lines requested with the HREF2= option. The number of labels must equal the number of lines requested. Labels can be up to 16 characters and must be enclosed in quotes.
specifies the vertical position of HREFLABELS= labels, as described in the following table.
|
Position |
---|---|
1 |
along top of chart |
2 |
staggered from top to bottom of chart |
3 |
along bottom of chart |
4 |
staggered from bottom to top of chart |
By default, HREFLABPOS=1. Note: HREFLABPOS=2 and HREFLABPOS=4 are not supported for ODS Graphics output.
[Traditional Graphics] specifies a variable whose values create links associated with Pareto bars when traditional graphics output is directed into HTML. You can specify a character variable or formatted numeric variable. The value of the HTML= variable should be the same for each observation with a given value of the process variable.
[Traditional Graphics] specifies a software font for text used inside the frame of the chart, such as sample size legends. The INFONT= option takes precedence over the FONT= option and the FTEXT= option in the GOPTIONS statement.
[Traditional Graphics] specifies the height in percent screen units of text used inside the frame of the chart, such as sample size legends and bar labels. This option should be used in conjunction with the INFONT= option.
[Traditional Graphics] specifies the distance in percent screen units between bars on the chart. By default, the bars are contiguous. See Figure 11.3 for an illustration.
specifies the distance in horizontal percent screen units between tiles (cells) in a comparative Pareto chart. By default, the tiles are contiguous. See Output 11.1.3 for an illustration.
is used in conjunction with the BARLABEL=(variable) option and specifies a label for the "other" category that is optionally specified with the OTHER= option.
specifies that the bar corresponding to the category is to be displayed at the bottom of the chart regardless of the percent associated with this category. The category must be a formatted value of the process variable and must be enclosed in quotes. The category can be up to 64 characters. See Figure 11.5 for an illustration.
[Traditional Graphics] specifies the line type for the grid requested with the GRID option. If you specify the LGRID= option, you do not need to specify the GRID option.
[Traditional Graphics] specifies the line type for the grid requested with the GRID2 option. If you specify the LGRID2= option, you do not need to specify the GRID2 option.
[Traditional Graphics] specifies the line type for lines requested with the HREF= and HREF2= options.
labelingspecifies a label for the bar defined with the OTHER= option. This label appears in the legend created with the BARLEGEND= option. The label must be enclosed in quotes and can be up to 32 characters. The default label is the value specified with the OTHER= option. The LOTHER= option is applicable only when a BARLEGEND= variable is specified.
[Traditional Graphics] specifies the line type for lines requested with the VREF= option. See Output 11.2.3 for an illustration.
[ODS Graphics] specifies that the points on the cumulative percent curve be plotted with markers in ODS Graphics output. You can use a SYMBOL statement to plot the points in traditional graphics.
specifies that only the Pareto categories with the highest frequency counts are to be displayed, where the sum of the corresponding percents is less than or equal to the specified percent. For example, if you specify
proc pareto data=failure; hbar cause / maxcmpct = 90 ;
the chart displays only the most frequently occurring categories that account for no more than 90 percent of the total frequency.
You can use the OTHER= option in conjunction with the MAXCMPCT= option to create and display a new category that combines those categories that are not selected with the MAXCMPCT= option. For example, if you specify
proc pareto data=failure; hbar cause / maxcmpct = 90 other = 'Others' ;
the chart displays the categories that account for no more than 90 percent of the total frequency, together with a category labeled Others that merges the remaining categories. The MAXCMPCT= option is an alternative to the MINPCT= and MAXNCAT= options.
specifies that only the Pareto categories with the highest frequencies are to be displayed. For example, if you specify
proc pareto data=failure; hbar cause / maxncat = 20 ;
the chart displays only the categories with the 20 highest frequencies. If the total number of categories is less than 20, all the categories are displayed.
You can use the OTHER= option in conjunction with the MAXNCAT= option to create and display a new category that combines those categories that are not selected with the MAXNCAT= option. For example, if you specify
proc pareto data=failure; hbar cause / maxncat = 20 other= 'Others' ;
the chart displays the categories with the 19 highest frequencies, together with a category labeled Others that merges the remaining categories. See Figure 11.4 for another illustration.
The MAXNCAT= option is an alternative to the MINPCT= and MAXCMPCT= options.
specifies that only the Pareto categories with frequency percents greater than or equal to the specified percent are to be displayed. For example, if you specify
proc pareto data=failure; hbar cause / minpct = 5 ;
the chart displays only those categories with at least five percent of the total frequency.
You can use the OTHER= option in conjunction with the MINPCT= option to create and display a new category that combines those categories that are not selected with the MINPCT= option. The merged category created by the OTHER= option is displayed even if its total percent is less than the percent specified with the MINPCT= option. For example, if you specify
proc pareto data=failure; hbar cause / minpct = 5 other = 'Others' ;
the chart displays the categories with percents greater than or equal to five percent, together with a category labeled Others that merges the remaining categories.
The MINPCT= option is an alternative to the MAXNCAT= and MAXCMPCT= options.
specifies that missing values of the process variable are to be treated as a Pareto category represented with a bar on the chart. If the process variable is a character variable, a missing value is defined as a blank internal (unformatted) value. If the process variable is numeric, a missing value is defined as any of the SAS missing values. If you do not specify the MISSING option, missing values are excluded from the analysis.
specifies that missing values of the first CLASS= variable are to be treated as a level of the CLASS= variable. If the first CLASS= variable is a character variable, a missing value is defined as a blank internal (unformatted) value. If the first CLASS= variable is numeric, a missing value is defined as any of the SAS missing values. If you do not specify MISSING1, observations in the DATA= data set for which the first CLASS= variable is missing are excluded from the analysis.
specifies that missing values of the second CLASS= variable are to be treated as a level of the CLASS= variable. If the second CLASS= variable is a character variable, a missing value is defined as a blank internal (unformatted) value. If the second CLASS= variable is numeric, a missing value is defined as any of the SAS missing values. If you do not specify MISSING2, observations in the DATA= data set for which the second CLASS= variable is missing are excluded from the analysis.
[Traditional Graphics] specifies the name of the GRSEG catalog entry for a traditional graphics chart, and the name of the graphics output file if one is created. The name can be up to 256 characters long, but the GRSEG name is truncated to eight characters. The default name is ’PARETO’.
specifies the number of columns in a comparative Pareto chart. You can use the NCOLS= option in conjunction with the NROWS= option. See Output 11.2.3 and Output 11.2.4 for an illustration. By default, NCOLS=1 and NROWS=2 if one CLASS= variable is specified, and NCOLS=2 and NROWS=2 if two CLASS= variables are specified.
requests a sample size legend and specifies its form as follows:
If you specify the NLEGEND option, the form is N=n, where is the total count for the Pareto categories. In a comparative Pareto chart, a legend is displayed in each tile, and is the total count for that particular cell. See Output 11.2.1 for an illustration.
If you specify the NLEGEND=’label’ option, the form is label=n, where is the total count for the Pareto categories. The label can be up to 32 characters and must be enclosed in quotes. For an illustration, see Figure 11.3 or Output 11.1.4.
If you specify the NLEGEND=(variable) option, the legend is the value of the variable, which must be a variable in the DATA= data set whose formatted length does not exceed 32. If a format is associated with the variable, then the formatted value is displayed. This option is intended for use with comparative Pareto charts and enables you to display a customized legend inside each tile (this legend need not provide total count). It is assumed that the values of the variable are identical for all observations in a particular class.
By default, the legend is placed in the upper-right corner of the chart. If the NOCURVE option is specified, the legend is placed in the lower-right corner of the chart. You can use the CFRAMENLEG= option to frame the sample size legend. No legend is displayed if you do not specify an NLEGEND option.
suppresses the creation of a Pareto chart. This option is useful when you are simply creating an output data set.
uppresses the display of the cumulative percent curve and the secondary horizontal axis. Compare Output 11.2.1 and Output 11.2.2 for an illustration.
[Traditional Graphics] suppresses the frame that is drawn around the chart by default. The NOFRAME option cannot be specified in conjunction with the CFRAME= or CTILES= options.
suppresses the label for the secondary horizontal axis. This is useful for avoiding clutter on comparative Pareto charts.
suppresses the legend generated by the CHIGH(n)=, CLOW(n)=, PHIGH(n)=, and PLOW(n)= options.
suppresses the primary horizontal axis label, tick marks, and tick mark labels.
suppresses the secondary horizontal axis label, tick marks, and tick mark labels.
suppresses the rearrangement of cells within a comparative Pareto chart that occurs when you use the CLASSKEY= option. The key cell appears in the top left corner of a comparative Pareto chart unless you use the CLASSKEY= option together with the NOKEYMOVE option.
suppresses the label for the vertical axis. This is useful for avoiding clutter in situations where the meaning of the vertical axis is apparent from the labels for the Pareto categories. See Output 11.2.2 for an illustration.
specifies the number of rows in a comparative Pareto chart. You can use the NROWS= option in conjunction with the NCOLS= option. See Output 11.2.3 and Output 11.2.4 for an illustration. By default, NROWS=2.
specifies the display order for the values of the first CLASS= variable. The levels of the first CLASS= variable are always constructed using the formatted values of the variable, and the formatted values are always used to label the rows (columns) of a comparative Pareto chart.
If you specify ORDER1=INTERNAL, the rows (columns) are displayed from top to bottom (left to right) in increasing order of the internal, or unformatted, values of the first CLASS= variable. If there are two or more distinct internal values with the same formatted value, the order is determined by the internal value that occurs first in the input data set. For example, suppose that you use a numeric CLASS= variable called DAY (with values 1, 2, and 3) to create a one-way comparative Pareto chart. Suppose also that you use the FORMAT procedure to associate the formatted values 1 = ’Wednesday’, 2 = ’Thursday’, and 3 = ’Friday’ with the variable DAY. If you specify ORDER1=INTERNAL, the rows of the comparative chart will appear in chronological order (Wednesday, Thursday, Friday) from top to bottom.
If you specify ORDER1=FORMATTED, the rows (columns) are displayed from top to bottom (left to right) in increasing order of the formatted values of the first CLASS= variable. For instance, in the previous illustration, if you specify ORDER1=FORMATTED, the rows will appear in alphabetical order (Friday, Thursday, Wednesday) from top to bottom.
If you specify ORDER1=DATA, the rows (columns) are displayed from top to bottom (left to right) in the order in which the values of the first CLASS= variable first appear in the input data set.
If you specify ORDER1=FREQ, the rows (columns) are displayed from top to bottom (left to right) in order of decreasing frequency count. If two or more classes have the same frequency count, the order is determined by the formatted values.
By default, ORDER1=INTERNAL.
specifies the display order for the values of the second CLASS= variable. The levels of the second CLASS= variable are always constructed using the formatted values of the variable, and the formatted values are always used to label the columns of a two-way comparative Pareto chart.
The PARETO procedure determines the layout of a two-way comparative Pareto chart by first using the ORDER1= option to obtain the order of the rows from top to bottom (recall that ORDER1=INTERNAL by default). Then the ORDER2= option is applied to the observations corresponding to the first row to obtain the order of the columns from left to right. If any columns remain unordered (that is, the categories are unbalanced), the ORDER2= option is applied to the observations in the second row, and so on until all the columns have been ordered.
The values of the ORDER2= option are interpreted as described for the ORDER1= option. By default, ORDER2=INTERNAL.
specifies a new category that merges all categories not selected with the MAXNCAT=, MINPCT=, or MAXCMPCT= options. See Figure 11.5 for an illustration.
The category should be specified as a formatted value of the process variable. The category can be up to 32 characters and must be enclosed in quotes. If you specify an OUT= data set, you should also specify an internal value corresponding to the category with the OTHERCVAL= option or the OTHERNVAL= option.
The OTHER= option is not applicable unless you specify the MAXNCAT=, MINPCT=, or MAXCMPCT= option. You can use the COTHER=, LOTHER=, POTHER=, OTHERCVAL=, and OTHERNVAL= options with the OTHER= option.
specifies the internal (unformatted) value for a character process variable in the OUT= data set that corresponds to the category created with the OTHER= option. The category can be up to 64 characters and must be enclosed in quotes.
The OTHERCVAL= option is not applicable unless you specify the OTHER= and OUT= options. If you specify the OTHER= option but not the OTHERCVAL= option, the default value is the value specified with the OTHER= option.
specifies the internal (unformatted) value for a numeric process variable in the OUT= data set that corresponds to the category created with the OTHER= option. The OTHERNVAL= option is not applicable unless you specify the OTHER= and OUT= options. If you specify the OTHER= option but not the OTHERNVAL= option, value is assigned a missing value.
creates an output data set that contains the information displayed in the Pareto chart. This is useful if you want to create a report to accompany your chart. See Example 11.8 for an illustration.
[Traditional Graphics] specifies pattern fills for the bars. You can use one of two approaches:
You can specify a single pattern to be used for all the bars with the PBARS=pattern option. You can use this option in conjunction with the PHIGH and PLOW options.
You can specify a distinct pattern for each bar (or combination of bars) by providing the patterns as values of a PBARS= variable. For example, you might use the solid pattern ('S') to indicate severe problems and the empty pattern ('E') for all other problems. The variable must be a character variable of length eight, and the variable name must be enclosed in parentheses. You cannot specify a PBARS= variable in conjunction with the PHIGH and PLOW options.
If you specify more than one process variable in the chart statement, you can provide more than one PBARS= variable. The number of PBARS= variables should be less than or equal to the number of process variables. The two lists of variables are paired in order of specification. If a PBARS= variable is not provided for a process variable, the bars for that chart are not filled.
If you specify one or more variables with the PBARS= option, you can also use the BARLEGEND= option to add a legend to the chart that explains the significance of each pattern. Furthermore, you can use the CBARS= option to specify colors in conjunction with the PBARS= option.
[Traditional Graphics] specifies the pattern used to fill the bars with the highest values. You cannot specify the PHIGH option in conjunction with a PBARS= variable, but you can specify the PHIGH()= option together with the PLOW()= and PBARS=pattern options.
[Traditional Graphics] specifies the pattern used to fill the bars with the lowest values. You cannot specify the PLOW option in conjunction with a PBARS= variable, but you can use the PLOW()= option together with the PHIGH()= and PBARS=pattern options.
[Traditional Graphics] patternspecifies the pattern used for the bar defined by the OTHER= option. The POTHER= option is not applicable unless a PBARS= variable is specified.
specifies the scale for the primary horizontal axis.
If you specify SCALE=PERCENT, the scale is percent of total frequency. If a WEIGHT= variable is used, the scale is percent of total weight.
If you specify SCALE=COUNT, the scale is counts. See Output 11.1.4 for an illustration. This option is not applicable if a WEIGHT= variable is used. You can specify SCALE=FREQUENCY instead of SCALE=COUNT.
If you specify SCALE=WEIGHT, the vertical axis is scaled in the same units as the WEIGHT= variable. This option is not applicable unless you use a WEIGHT= variable.
By default, SCALE=PERCENT. See Output 11.5.1 for an example. Regardless of how SCALE= is specified, the secondary axis is scaled in cumulative percent units.
[Traditional Graphics] specifies a variable used to add a legend for CTILES= colors. The variable can have a formatted length less than or equal to 32. If a format is associated with the variable, then the formatted value is displayed. The TILELEGEND= option must be used in conjunction with the CTILES= option for filling the tiles in a comparative Pareto chart. If CTILES= is specified and TILELEGEND= is not specified, a color legend is not displayed.
The values of the CTILES= and TILELEGEND= variables should be consistent for all observations with the same level of the CLASS= variables. The value of the TILELEGEND= variable is used to identify the corresponding color value of the CTILES= variable in the legend. See Output 11.5.1 for an illustration.
[Traditional Graphics] specifies a label displayed to the left of the legend that is created when you specify a TILELEGEND= variable. The label can be up to 16 characters and must be enclosed in quotes. The default label is Tiles:. See Output 11.5.1 for an illustration.
[ODS Graphics] specifies URLs as values of the specified character variable (or formatted values of a numeric variable). These URLs are associated with bars on the Pareto chart when ODS Graphics output is directed into HTML. The value of the HTML= variable should be the same for each observation with a given value of the process variable.
[Traditional Graphics] specifies the length in percent screen units of the offset at both ends of the vertical axis. You can eliminate the offset by specifying VOFFSET=0.
specifies where reference lines perpendicular to the vertical (Pareto category) axis are to appear on the chart. Character values can be up to 64 characters and must be enclosed in quotes. The values must be values of the process variable even when the bars are numbered and a category legend is introduced.
specifies labels for the lines requested with the VREF= option. The number of labels must equal the number of lines requested. Enclose the labels in quotes. Labels can be up to 16 characters.
specifies the vertical positioning of the VREFLABELS= labels. If you specify VREFLABPOS=1, the labels are positioned at the left of the chart, and if you specify VREFLABPOS=2, the labels are positioned at the right. By default, =1.
[Traditional Graphics] specifies the line thickness (in pixels) for the axes and frame. This thickness is also used for bar outlines and grid lines, unless overridden by the WBARLINE=, WGRID=, or WGRID2= options.
[Traditional Graphics] specifies the width for bar outlines.
specifies weight variables used to construct weighted Pareto charts. The WEIGHT= variables are paired with the process variables in order of specification. The WEIGHT= variables must be numeric, and their values must be nonnegative (noninteger values are permitted). If a WEIGHT= variable is not provided for a process variable, the weights applied to that process variable are assumed to be one. See the section Weighted Pareto Charts for computational details.
A WEIGHT= variable is particularly useful for carrying out a Pareto analysis based on cost rather than frequency of occurrence. See Example 11.8 for an illustration.
[Traditional Graphics] specifies the width of the primary chart grid lines. If the WGRID= option is specified the GRID option is not required.
[Traditional Graphics] specifies the width of the secondary chart grid lines. If the WGRID2= option is specified the GRID2 option is not required.
Copyright © SAS Institute, Inc. All Rights Reserved.