QQPLOT Statement: CAPABILITY Procedure

Dictionary of Options

The following entries provide detailed descriptions of options specific to the QQPLOT statement. The notes Traditional Graphics, ODS Graphics, and Line Printer identify options that apply to traditional graphics, ODS Graphics output, and line printers plots, respectively. See Dictionary of Common Options: CAPABILITY Procedure for detailed descriptions of options common to all the plot statements.

ALPHA=value-list|EST

specifies values for a mandatory shape parameter $\alpha $ $(\alpha >0)$ for Q-Q plots requested with the BETA, GAMMA, PARETO, and POWER options. A plot is created for each value specified. For examples, see the entries for the distribution options. If you specify ALPHA=EST, a maximum likelihood estimate is computed for $\alpha $.

BETA(ALPHA=value-list|EST BETA=value-list|EST <beta-options>)

creates a beta Q-Q plot for each combination of the shape parameters $\alpha $ and $\beta $ given by the mandatory ALPHA= and BETA= options. If you specify ALPHA=EST and BETA=EST, a plot is created based on maximum likelihood estimates for $\alpha $ and $\beta $. In the following example, the first QQPLOT statement produces one plot, the second statement produces four plots, the third statement produces six plots, and the fourth statement produces one plot:

proc capability data=measures;
   qqplot width / beta(alpha=2 beta=2);
   qqplot width / beta(alpha=2 3 beta=1 2);
   qqplot width / beta(alpha=2 to 3 beta=1 to 2 by 0.5);
   qqplot width / beta(alpha=est beta=est);
run;

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $B_{ \alpha \beta }^{-1} \left( \frac{ i - 0.375}{ n + 0.25 } \right)$, where $B_{\alpha \beta }^{-1} (\cdot )$ is the inverse normalized incomplete beta function, n is the number of nonmissing observations, and $\alpha $ and $\beta $ are the shape parameters of the beta distribution.

The point pattern on the plot for ALPHA=$\alpha $ and BETA=$\beta $ tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are beta distributed with the specific density function

$ p(x)=\left\{ \begin{array}{ll} \frac{(x - \theta )^{\alpha - 1} (\theta + \sigma - x)^{\beta - 1} }{B(\alpha ,\beta ) \sigma ^{(\alpha + \beta - 1)} } &  \mbox{for $\theta < x < \theta + \sigma $} \\ 0 &  \mbox{for $x \leq \theta $ or $x \geq \theta + \sigma $ } \end{array} \right. $ where $B(\alpha ,\beta ) = \frac{\Gamma (\alpha )\Gamma (\beta )}{\Gamma (\alpha +\beta )}$, and $\theta = $ lower threshold parameter $\sigma = $ scale parameter $(\sigma >0)$ $\alpha = $ first shape parameter $(\alpha >0)$ $\beta = $ second shape parameter $(\beta >0)$

To obtain graphical estimates of $\alpha $ and $\beta $, specify lists of values for the ALPHA= and BETA= options, and select the combination of $\alpha $ and $\beta $ that most nearly linearizes the point pattern. To assess the point pattern, you can add a diagonal distribution reference line with intercept $\theta _0$ and slope $\sigma _0$ with the beta-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and slope $\sigma _0$ with the beta-options THETA=EST and SIGMA=EST. Specify these options in parentheses, as in the following example:

proc capability data=measures;
   qqplot width / beta(alpha=2 beta=3 theta=4 sigma=5);
run;

Agreement between the reference line and the point pattern indicates that the beta distribution with parameters $\alpha $, $\beta $, $\theta _0$, and $\sigma _0$ is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.

BETA=value-list|EST

specifies values for the shape parameter $\beta $ $(\beta >0)$ for Q-Q plots requested with the BETA distribution option. A plot is created for each value specified with the BETA= option. If you specify BETA=EST, a maximum likelihood estimate is computed for $\beta $. For examples, see the preceding entry for the BETA distribution option.

C=value(-list)|EST

specifies the shape parameter c (c > 0) for Q-Q plots requested with the WEIBULL and WEIBULL2 options. You must specify C= as a Weibull-option with the WEIBULL option; in this situation it accepts a list of values, or if you specify C=EST, a maximum likelihood estimate is computed for c. You can optionally specify C=value or C=EST as a Weibull2-option with the WEIBULL2 option to request a distribution reference line; in this situation, you must also specify SIGMA=value or SIGMA=EST. For an example, see Output 5.23.1.

CGRID=color

Traditional Graphicsspecifies the color for the grid lines associated with the quantile axis, requested by the GRID option.

CPKREF

Traditional Graphicsdraws reference lines extending from the intersections of the specification limits with the distribution reference line to the quantile axis in plots requested with the NORMAL option. Specify CPKREF in parentheses after the NORMAL option. You can use the CPKREF option with the CPKSCALE option for graphical estimation of the capability indices CPU, CPL, and $C_{pk}$, as illustrated in Output 5.24.1.

CPKSCALE

rescales the quantile axis in $C_{pk}$ units for plots requested with the NORMAL option. Specify CPKSCALE in parentheses after the NORMAL option. You can use the CPKSCALE option with the CPKREF option for graphical estimation of the capability indices CPU, CPL, and $C_{pk}$, as illustrated in Output 5.24.1.

EXPONENTIAL(<(exponential-options)>
EXP<(exponential-options)>)

creates an exponential Q-Q plot. To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $-\log \left( 1 - \frac{ i - 0.375}{ n + 0.25 } \right)$, where n is the number of nonmissing observations.

The pattern on the plot tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are exponentially distributed with the specific density function

\[  p( x )= \left\{  \begin{array}{ll} \frac{ 1 }{ \sigma } \exp \left( - \frac{ x - \theta }{ \sigma } \right) &  \mbox{ for $ x \geq \theta $ } \\ 0 &  \mbox{ for $ x < \theta $ } \end{array} \right.  \]

where $\theta $ is the threshold parameter, and $\sigma $ is the scale parameter $(\sigma >0)$.

To assess the point pattern, you can add a diagonal distribution reference line with intercept $\theta _0$ and slope $\sigma _0$ with the exponential-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and slope $\sigma _0$ with the exponential-options THETA=EST and SIGMA=EST. Specify these options in parentheses, as in the following example: as in the following example:

proc capability data=measures;
   qqplot width / exponential(theta=4 sigma=5);
run;

Agreement between the reference line and the point pattern indicates that the exponential distribution with parameters $\theta _0$ and $\sigma _0$ is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.

GAMMA(ALPHA=value-list|EST <gamma-options> )

creates a gamma Q-Q plot for each value of the shape parameter $\alpha $ given by the mandatory ALPHA= option or its alias, the SHAPE= option. The following example produces three probability plots:

proc capability data=measures;
   qqplot width / gamma(alpha=0.4 to 0.6 by 0.1);
run;

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $G_{\alpha }^{-1} \left( \frac{i- 0.375 }{n+0.25} \right)$, where $G_{\alpha }^{-1}(\cdot )$ is the inverse normalized incomplete gamma function, n is the number of nonmissing observations, and $\alpha $ is the shape parameter of the gamma distribution.

The pattern on the plot for ALPHA=$\alpha $ tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are gamma distributed with the specific density function

$ p(x)= \left\{  \begin{array}{ll} \frac{1}{ \sigma \Gamma (\alpha ) } \left( \frac{ x - \theta }{ \sigma } \right) ^{\alpha - 1} \exp \left( - \frac{ x - \theta }{ \sigma } \right) &  \mbox{ for $ x > \theta $ } \\ 0 &  \mbox{ for $ x \leq \theta $ } \end{array} \right. $ where $\theta = $ threshold parameter $\sigma = $ scale parameter $(\sigma >0)$ $\alpha = $ shape parameter $(\alpha >0)$

To obtain a graphical estimate of $\alpha $, specify a list of values for the ALPHA= option, and select the value that most nearly linearizes the point pattern.

To assess the point pattern, you can add a diagonal distribution reference line with intercept $\theta _0$ and slope $\sigma _0$ with the gamma-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\sigma _0$ with the gamma-options THETA=EST and SIGMA=EST. Specify these options in parentheses, as in the following example:

proc capability data=measures;
   qqplot width / gamma(alpha=2 theta=3 sigma=4);
run;

Agreement between the reference line and the point pattern indicates that the gamma distribution with parameters $\alpha $, $\theta _0$, and $\sigma _0$ is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.

GUMBEL(<Gumbel-options>)

creates a Gumbel Q-Q plot. To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $-\log \left( -\log \left( \frac{ i - 0.375 }{ n + 0.25 } \right) \right)$, where n is the number of nonmissing observations.

The point pattern on the plot tends to be linear with intercept $\mu $ and slope $\sigma $ if the data are Gumbel distributed with the specific density function

\[  p(x) = \frac{e^{-(x-\mu )/\sigma }}{\sigma } \exp \left( -e^{-(x-\mu )/\sigma }\right)  \]

where $\mu $ is a location parameter and $\sigma $ is a positive scale parameter.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to $\mu _0$ and $\sigma _0$ with the Gumbel-options MU=$\mu _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\mu _0$ and $\sigma _0$ with the Gumbel-options MU=EST and SIGMA=EST. Specify these options in parentheses following the GUMBEL option.

Agreement between the reference line and the point pattern indicates that the Gumbel distribution with parameters $\mu _0$ and $\sigma _0$ is a good fit.

GRID

draws reference lines perpendicular to the quantile axis at major tick marks.

LEGEND=name | NONE

specifies the name of a LEGEND statement describing the legend for specification limit reference lines and fitted curves. Specifying LEGEND=NONE is equivalent to specifying the NOLEGEND option.

LGRID=linetype

Traditional Graphicsspecifies the line type for the grid lines associated with the quantile axis, requested by the GRID option.

LOGNORMAL(SIGMA=value-list|EST <lognormal-options>)
LNORM(SIGMA=value-list|EST <lognormal-options>)

creates a lognormal Q-Q plot for each value of the shape parameter $\sigma $ given by the mandatory SIGMA= option or its alias, the SHAPE= option. For example,

proc capability data=measures;
   qqplot width/ lognormal(shape=1.5 2.5);
run;

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $\exp \left( \sigma \Phi ^{-1} \left( \frac{i- 0.375}{n+ 0.25 } \right) \right)$, where $\Phi ^{-1}(\cdot )$ is the inverse cumulative standard normal distribution, n is the number of nonmissing observations, and $\sigma $ is the shape parameter of the lognormal distribution.

The pattern on the plot for SIGMA=$\sigma $ tends to be linear with intercept $\theta $ and slope $\exp (\zeta )$ if the data are lognormally distributed with the specific density function

$ p(x) = \left\{  \begin{array}{ll} \frac{1}{ \sigma \sqrt {2 \pi }(x - \theta ) } \exp \left(-\frac{ (\log (x - \theta )- \zeta )^{2} }{2 \sigma ^{2} } \right) &  \mbox{for $x > \theta $} \\ 0 &  \mbox{for $x \leq \theta $} \end{array} \right. $ where $\theta = $ threshold parameter $\zeta = $ scale parameter $\sigma = $ shape parameter $(\sigma > 0)$

To obtain a graphical estimate of $\sigma $, specify a list of values for the SIGMA= option, and select the value that most nearly linearizes the point pattern. For an illustration, see Example 5.22.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to the threshold parameter $\theta _0$ and the scale parameter $\zeta _0$ with the lognormal-options THETA=$\theta _0$ and ZETA=$\zeta _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\zeta _0$ with the lognormal-options THETA=EST and ZETA=EST. This line has intercept $\theta _0$ and slope $\exp (\zeta _0)$. Agreement between the line and the point pattern indicates that the lognormal distribution with parameters $\sigma $, $\theta _0$, and $\zeta _0$ is a good fit. See Output 5.22.4 for an example. You can specify the THRESHOLD= option as an alias for the THETA= option and the SCALE= option as an alias for the ZETA= option.

You can also display the reference line by specifying THETA=$\theta _0$, and you can specify the slope with the SLOPE= option. For example, the following two QQPLOT statements produce charts with identical reference lines:

proc capability data=measures;
   qqplot width / lognormal(sigma=2 theta=3 zeta=1);
   qqplot width / lognormal(sigma=2 theta=3 slope=2.718);
run;
MU=value|EST

specifies a value for the mean $\mu $ for a Q-Q plot requested with the GUMBEL and NORMAL options. For the normal distribution, you can specify MU=EST to request a distribution reference line with intercept equal to the sample mean, as illustrated in Figure 5.40. If you specify MU=EST for the Gumbel distribution, a maximum likelihood estimate is calculated.

NADJ=value

specifies the adjustment value added to the sample size in the calculation of theoretical quantiles. The default is $\frac{1}{4}$, as described by Blom (1958). Also refer to Chambers et al. (1983) for additional information.

NOLEGEND
LEGEND=NONE

suppresses legends for specification limits, fitted curves, distribution lines, and hidden observations. For an example, see Output 5.24.1.

NOLINELEGEND
NOLINEL

suppresses the legend for the optional distribution reference line.

NOOBSLEGEND
NOOBSL

Line Printersuppresses the legend that indicates the number of hidden observations.

NORMAL<(normal-options)>
NORM<(normal-options)>

creates a normal Q-Q plot. This is the default if you do not specify a distribution option. To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $\Phi ^{-1} \left( \frac{i- 0.375}{n+ 0.25} \right)$, where $\Phi ^{-1}(\cdot )$ is the inverse cumulative standard normal distribution, and n is the number of nonmissing observations.

The pattern on the plot tends to be linear with intercept $\mu $ and slope $\sigma $ if the data are normally distributed with the specific density function

\[  p(x) = \begin{array}{ll} \frac{1}{\sigma \sqrt {2 \pi } } \exp \left( -\frac{(x - \mu )^2}{2 \sigma ^{2}} \right) &  \mbox{for all \Mathtext{x}} \\ \end{array}  \]

where $\mu $ is the mean, and $\sigma $ is the standard deviation $(\sigma > 0)$.

To assess the point pattern, you can add a diagonal distribution reference line with intercept $\mu _0$ and slope $\sigma _0$ with the normal-options MU=$\mu _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\mu _0$ and $\sigma _0$ with the normal-options THETA=EST and SIGMA=EST; the estimates of $\mu _0$ and $]sigma_0$ are the sample mean and sample standard deviation. Specify these options in parentheses, as in the following example:

proc capability data=measures;
   qqplot length / normal(mu=10 sigma=0.3);
run;

For an example, see Adding a Distribution Reference Line. Agreement between the reference line and the point pattern indicates that the normal distribution with parameters $\mu _0$ and $\sigma _0$ is a good fit. You can specify MU=EST and SIGMA=EST to request a distribution reference line with the sample mean and sample standard deviation as the intercept and slope.

Other normal-options include CPKREF and CPKSCALE. The CPKREF option draws reference lines extending from the intersections of specification limits with the distribution reference line to the theoretical quantile axis. The CPKSCALE option rescales the theoretical quantile axis in $C_{pk}$ units. You can use the CPKREF option with the CPKSCALE option for graphical estimation of the capability indices CPU, CPL, and $C_{pk}$, as illustrated in Output 5.24.1.

NOSPECLEGEND
NOSPECL

suppresses the legend for specification limit reference lines. For an example, see Figure 5.40.

PARETO(<Pareto-options>)

creates a generalized Pareto Q-Q plot for each value of the shape parameter $\alpha $ given by the mandatory ALPHA= option. If you specify ALPHA=EST, a plot is created based on a maximum likelihood estimate for $\alpha $.

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $( 1 - ( 1 - \frac{ i - 0.375 }{ n + 0.25 } )^{\alpha } ) / \alpha $ ($\alpha \neq 0$) or $-\log ( 1 - \frac{ i - 0.375 }{ n + 0.25 } )$ ($\alpha = 0$), where n is the number of nonmissing observations and $\alpha $ is the shape parameter of the generalized Pareto distribution.

The point pattern on the plot for ALPHA=$\alpha $ tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are generalized Pareto distributed with the specific density function

\[  p(x) = \left\{  \begin{array}{ll} \frac{1}{\sigma }{(1 - \alpha (x-\theta )/\sigma )}^{1/\alpha -1} &  \mbox{if $ \alpha \neq 0$} \\ \frac{1}{\sigma }\exp (-(x-\theta )/\sigma ) &  \mbox{if $ \alpha = 0$} \end{array} \right.  \]

where $\theta = $ threshold parameter $\sigma = $ scale parameter $(\sigma >0)$ $\alpha = $ shape parameter $(\alpha >0)$

To obtain a graphical estimate of $\alpha $, specify a list of values for the ALPHA= option, and select the value that most nearly linearizes the point pattern.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to $\theta _0$ and $\sigma _0$ with the Pareto-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\sigma _0$ with the Pareto-options THETA=EST and SIGMA=EST. Specify these options in parentheses following the PARETO option.

Agreement between the reference line and the point pattern indicates that the generalized Pareto distribution with parameters $\alpha $, $\theta _0$, and $\sigma _0$ is a good fit.

PCTLAXIS(axis-options)

adds a nonlinear percentile axis along the frame of the Q-Q plot opposite the theoretical quantile axis. The added axis is identical to the axis for probability plots produced with the PROBPLOT statement. When using the PCTLAXIS option, you must specify HREF= values in quantile units, and you cannot use the NOFRAME option. You can specify the following axis-options:

CGRID=color

specifies the color used for grid lines.

GRID

draws grid lines perpendicular to the percentile axis at major tick marks.

GRIDCHAR='character'

specifies the character used to draw grid lines associated with the percentile axis on line printer plots.

LABEL='string'

specifies the label for the percentile axis.

LGRID=linetype

specifies the line type used for grid lines associated with the percentile axis.

WGRID=value

specifies the thickness for grid lines associated with the percentile axis.

See CAPQQ1 in the SAS/QC Sample LibraryFor example, the following statements display the plot in Figure 5.41:

ods graphics off;
symbol v=plus;
title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   qqplot Distance / normal(mu=est sigma=est color=black)
                     nolegend
                     pctlaxis(grid lgrid=35 label='Normal Percentiles');
run;

Figure 5.41: Normal Q-Q Plot with Percentile Axis

Normal Q-Q Plot with Percentile Axis


PCTLMINOR

Traditional Graphicsrequests minor tick marks for the percentile axis displayed when you use the PCTLAXIS option. See the entry for the PCTLAXIS option for an example.

PCTLSCALE

See CAPQQ1 in the SAS/QC Sample Libraryrequests scale labels for the theoretical quantile axis in percentile units, resulting in a nonlinear axis scale. Tick marks are drawn uniformly across the axis based on the quantile scale. In all other respects, the plot remains the same, and you must specify HREF= values in quantile units. For a true nonlinear axis, use the PCTLAXIS option or use the PROBPLOT statement. For example, the following statements display the plot in Figure 5.42:

symbol v=plus;
title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   spec lsl=9.5 usl=10.5;
   qqplot Distance / normal(mu=est sigma=est cpkref)
                     pctlaxis(grid lgrid=35)
                     nolegend pctlscale;
run;

Figure 5.42: Normal Q-Q Plot for Reading Percentiles of Specification Limits

Normal Q-Q Plot for Reading Percentiles of Specification Limits


POWER(<power-options>)

creates a power function Q-Q plot for each value of the shape parameter $\alpha $ given by the mandatory ALPHA= option. If you specify ALPHA=EST, a plot is created based on a maximum likelihood estimate for $\alpha $.

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $B_{ \alpha (1) }^{-1} \left( \frac{ i - 0.375 }{ n + 0.25 } \right)$, where $B_{ \alpha (1) }^{-1} ( \cdot )$ is the inverse normalized incomplete beta function, n is the number of nonmissing observations, $\alpha $ is one shape parameter of the beta distribution, and the second shape parameter, $\beta = 1$.

The point pattern on the plot for ALPHA=$\alpha $ tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are power function distributed with the specific density function

\[  p(x) = \left\{  \begin{array}{ll} \frac{\alpha }{\sigma }\left(\frac{x-\theta }{\sigma }\right)^{\alpha -1} &  \mbox{for $\theta < x < \theta + \sigma $} \\ 0 &  \mbox{for $x \leq \theta $ or $x \geq \theta + \sigma $ } \end{array} \right.  \]

where $\theta = $ threshold parameter $\sigma = $ scale parameter $(\sigma >0)$ $\alpha = $ shape parameter $(\alpha >0)$

To obtain a graphical estimate of $\alpha $, specify a list of values for the ALPHA= option, and select the value that most nearly linearizes the point pattern.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to $\theta _0$ and $\sigma _0$ with the power-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\sigma _0$ with the power-options THETA=EST and SIGMA=EST. Specify these options in parentheses following the POWER option.

Agreement between the reference line and the point pattern indicates that the power function distribution with parameters $\alpha $, $\theta _0$, and $\sigma _0$ is a good fit.

QQSYMBOL='character'

Line Printerspecifies the character used to plot the Q-Q points in line printer plots. The default is the plus sign ($+$).

RANKADJ=value

specifies the adjustment value added to the ranks in the calculation of theoretical quantiles. The default is $-\frac{3}{8}$, as described by Blom (1958). Also refer to Chambers et al. (1983) for additional information.

RAYLEIGH(<Rayleigh-options>)

creates a Rayleigh Q-Q plot. To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $\sqrt {-2 \log \left(1-\frac{i-0.375}{n+0.25} \right)}$, where n is the number of nonmissing observations.

The point pattern on the plot tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are Rayleigh distributed with the specific density function

\[  p(x) = \left\{  \begin{array}{ll} \frac{x-\theta }{\sigma ^2}\exp (-(x-\theta )^2/(2\sigma ^2)) &  \mbox{for $x \geq \theta $} \\ 0 &  \mbox{for $x <\theta $} \end{array} \right.  \]

where $\theta $ is a threshold parameter, and $\sigma $ is a positive scale parameter.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to $\theta _0$ and $\sigma _0$ with the Rayleigh-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\sigma _0$ with the Rayleigh-options THETA=EST and SIGMA=EST. Specify these options in parentheses after the RAYLEIGH option.

Agreement between the reference line and the point pattern indicates that the Rayleigh distribution with parameters $\theta _0$ and $\sigma _0$ is a good fit.

ROTATE

switches the horizontal and vertical axes so that the theoretical percentiles are plotted vertically while the data are plotted horizontally. Regardless of whether the plot has been rotated, horizontal axis options (such as HAXIS=) refer to the horizontal axis, and vertical axis options (such as VAXIS=) refer to the vertical axis. All other options that depend on axis placement adjust to the rotated axes.

SIGMA=value-list|EST

specifies the value of the distribution parameter $\sigma $, where $\sigma >0$. Alternatively, you can specify SIGMA=EST to request a maximum likelihood estimate for $\sigma _0$. The use of the SIGMA= option depends on the distribution option specified, as indicated by the following table:

Distribution Option

Use of the SIGMA= Option

BETA

THETA=$\theta _0$ and SIGMA=$\sigma _0$ request a distribution reference

EXPONENTIAL

line with intercept $\theta _0$ and slope $\sigma _0$.

GAMMA

 

PARETO

 

POWER

 

RAYLEIGH

 

WEIBULL

 

GUMBEL

MU=$\mu _0$ and SIGMA=$\sigma _0$ request a distribution reference line corresponding to $\mu _0$ and $\sigma _0$.

LOGNORMAL

SIGMA=$\sigma _1 \ldots \sigma _ n$ requests n Q-Q plots with shape parameters $\sigma _1 \ldots \sigma _ n$. The SIGMA= option is mandatory.

NORMAL

MU=$\mu _0$ and SIGMA=$\sigma _0$ request a distribution reference line with intercept $\mu _0$ and slope $\sigma _0$. SIGMA=EST requests a slope equal to the sample standard deviation.

WEIBULL2

SIGMA=$\sigma _0$ and C=$c_0$ request a distribution reference line with intercept $\log (\sigma _0)$ and slope $\frac{1}{c_0}$.

For an example using SIGMA=EST, see Output 5.24.1. For an example of lognormal plots using the SIGMA= option, see Example 5.22.

SLOPE=value|EST

specifies the slope for a distribution reference line requested with the LOGNORMAL and WEIBULL2 options.

When you use the SLOPE= option with the LOGNORMAL option, you must also specify a threshold parameter value $\theta _0$ with the THETA= option. Specifying the SLOPE= option is an alternative to specifying ZETA=$\zeta _0$, which requests a slope of $\exp (\zeta _0)$. See Output 5.22.4 for an example.

When you use the SLOPE= option with the WEIBULL2 option, you must also specify a scale parameter value $\sigma _0$ with the SIGMA= option. Specifying the SLOPE= option is an alternative to specifying C=$c_0$, which requests a slope of $\frac{1}{c_0}$.

For example, the first and second QQPLOT statements that follow produce plots identical to those produced by the third and fourth QQPLOT statements:

proc capability data=measures;
   qqplot width  / lognormal(sigma=2 theta=0 zeta=0);
   qqplot width  / weibull2(sigma=2 theta=0 c=0.25);
   qqplot width  / lognormal(sigma=2 theta=0 slope=1);
   qqplot width  / weibull2(sigma=2 theta=0 slope=4);
run;

For more information, see Graphical Estimation.

SQUARE

Traditional GraphicsODS Graphicsdisplays the Q-Q plot in a square frame. Compare Figure 5.39 with Figure 5.40. The default is a rectangular frame.

SYMBOL='character'

Line Printerspecifies the character used for a distribution reference line in a line printer plot. The default character is the first letter of the distribution option keyword.

THETA=value|EST
THRESHOLD=value|EST

specifies the lower threshold parameter $\theta $ for Q-Q plots requested with the BETA, EXPONENTIAL, GAMMA, LOGNORMAL, PARETO, POWER, RAYLEIGH, WEIBULL, and WEIBULL2 options.

When used with the WEIBULL2 option, the THETA= option specifies the known lower threshold $\theta _0$, for which the default is 0. See Output 5.23.2 for an example.

When used with the other distribution options, the THETA= option specifies $\theta _0$ for a distribution reference line; alternatively in this situation, you can specify THETA=EST to request a maximum likelihood estimate for $\theta _0$. To request the line, you must also specify a scale parameter. See Output 5.22.4 for an example of the THETA= option with a lognormal Q-Q plot.

WEIBULL(C=value-list|EST <Weibull-options>)
WEIB(C=value-list <Weibull-options>)

creates a three-parameter Weibull Q-Q plot for each value of the shape parameter c given by the mandatory C= option or its alias, the SHAPE= option. For example,

proc capability data=measures;
   qqplot width / weibull(c=1.8 to 2.4 by 0.2);
run;

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile $\left( - \log \left( 1- \frac{ i - 0.375 }{ n + 0.25 } \right) \right)^{ \frac{1}{c} }$, where n is the number of nonmissing observations, and c is the Weibull distribution shape parameter.

The pattern on the plot for C=c tends to be linear with intercept $\theta $ and slope $\sigma $ if the data are Weibull distributed with the specific density function

\[  p(x)= \left\{  \begin{array}{ll} \frac{c}{\sigma } \left( \frac{x - \theta }{\sigma } \right)^{c - 1} \exp \left( - \left( \frac{x - \theta }{\sigma } \right)^{c} \right) &  \mbox{ for $x > \theta $ } \\ 0 &  \mbox{ for $x \leq \theta $ } \end{array} \right.  \]

where $\theta $ is the threshold parameter, $\sigma $ is the scale parameter $(\sigma >0)$, and c is the shape parameter (c > 0).

To obtain a graphical estimate of c, specify a list of values for the C= option, and select the value that most nearly linearizes the point pattern. For an illustration, see Example 5.23. To assess the point pattern, you can add a diagonal distribution reference line with intercept $\theta _0$ and slope $\sigma _0$ with the Weibull-options THETA=$\theta _0$ and SIGMA=$\sigma _0$. Alternatively, you can add a line corresponding to estimated values of $\theta _0$ and $\sigma _0$ with the Weibull-options THETA=EST and SIGMA=EST. Specify these options in parentheses, as in the following example:

proc capability data=measures;
   qqplot width / weibull(c=2 theta=3 sigma=4);
run;

Agreement between the reference line and the point pattern indicates that the Weibull distribution with parameters c, $\theta _0$, and $\sigma _0$ is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.

WEIBULL2<(Weibull2-options)>
W2<(Weibull2-options)>

creates a two-parameter Weibull Q-Q plot. You should use the WEIBULL2 option when your data have a known lower threshold $\theta _0$. You can specify the threshold value $\theta _0$ with the THETA= option or its alias, the THRESHOLD= option. If you are uncertain of the lower threshold value, you can estimate $\theta _0$ graphically by specifying a list of values for the THETA= option. Select the value that most linearizes the point pattern. The default is $\theta _0 = 0$.

To create the plot, the observations are ordered from smallest to largest, and the log of the shifted ith ordered observation $x_{(i)}$, $\log (x_{(i)}-\theta _0)$, is plotted against the quantile $ \log \left(-\log \left(1-\frac{i- 0.375}{n+ 0.25} \right) \right)$, where n is the number of nonmissing observations. Unlike the three-parameter Weibull quantile, the preceding expression is free of distribution parameters. This is why the C= shape parameter option is not mandatory with the WEIBULL2 option.

The pattern on the plot for THETA=$\theta _0$ tends to be linear with intercept $\log (\sigma )$ and slope $\frac{1}{c}$ if the data are Weibull distributed with the specific density function

\[  p(x) = \left\{  \begin{array}{ll} \frac{c}{\sigma } \left( \frac{x - \theta _0}{\sigma } \right)^{c - 1} \exp \left( - \left( \frac{x - \theta _0}{\sigma } \right)^{c} \right) &  \mbox{ for $x > \theta _0$ } \\ 0 &  \mbox{ for $x \leq \theta _0$ } \end{array} \right.  \]

where $\theta _0$ is a known lower threshold parameter, $\sigma $ is a scale parameter $(\sigma >0)$, and c is a shape parameter (c > 0).

The advantage of a two-parameter Weibull plot over a three-parameter Weibull plot is that you can visually estimate the shape parameter c and the scale parameter $\sigma $ from the slope and intercept of the point pattern; see Example 5.23 for an illustration of this method. The disadvantage is that the two-parameter Weibull distribution applies only in situations where the threshold parameter is known. See Graphical Estimation for more information.

To assess the point pattern, you can add a diagonal distribution reference line corresponding to the scale parameter $\sigma _0$ and shape parameter ${c_0}$ with the Weibull2-options SIGMA=$\sigma _0$ and C=${c_0}$. Alternatively, you can add a distribution reference line corresponding to estimated values of $\sigma _0$ and ${c_0}$ with the Weibull2-options SIGMA=EST and C=EST. This line has intercept $\log (\sigma _0)$ and slope $\frac{1}{c_0}$. Agreement between the line and the point pattern indicates that the Weibull distribution with parameters $c_0$, $\theta _0$, and $\sigma _0$ is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the SHAPE= option as an alias for the C= option.

You can also display the reference line by specifying SIGMA=$\sigma _0$, and you can specify the slope with the SLOPE= option. For example, the following QQPLOT statements produce identical plots:

proc capability data=measures;
   qqplot width / weibull2(theta=3 sigma=4 c=2);
   qqplot width / weibull2(theta=3 sigma=4 slope=0.5);
run;
WGRID=n

Traditional Graphicsspecifies the width of the grid lines associated with the quantile axis, requested with the GRID option. If you use the WGRID= option, you do not need to specify the GRID option.

ZETA=value|EST

specifies a value for the scale parameter $\zeta $ for lognormal Q-Q plots requested with the LOGNORMAL option. Specify THETA=$\theta _0$ and ZETA=$\zeta _0$ to request a distribution reference line with intercept $\theta _0$ and slope $\exp (\zeta _0)$.