The UNIVARIATE Procedure

PPPLOT Statement

  • PPPLOT <variables> </ options>;

The PPPLOT statement creates a probability-probability plot (also called a P-P plot or percent plot), which compares the empirical cumulative distribution function (ECDF) of a variable with a specified theoretical cumulative distribution function such as the normal. If the two distributions match, the points on the plot form a linear pattern that passes through the origin and has unit slope. Thus, you can use a P-P plot to determine how well a theoretical distribution models a set of measurements.

You can specify one of the following theoretical distributions with the PPPLOT statement:

  • beta

  • exponential

  • gamma

  • Gumbel

  • generalized Pareto

  • inverse Gaussian

  • lognormal

  • normal

  • power function

  • Rayleigh

  • Weibull

Note: Probability-probability plots should not be confused with probability plots, which compare a set of ordered measurements with percentiles from a specified distribution. You can create probability plots with the PROBPLOT statement.

You can use any number of PPPLOT statements in the UNIVARIATE procedure. The components of the PPPLOT statement are as follows.

variables

are the process variables for which P-P plots are created. If you specify a VAR statement, the variables must also be listed in the VAR statement. Otherwise, the variables can be any numeric variables in the input data set. If you do not specify a list of variables, then by default, the procedure creates a P-P plot for each variable listed in the VAR statement or for each numeric variable in the input data set if you do not specify a VAR statement. For example, if data set measures contains two numeric variables, length and width, the following two PPPLOT statements each produce a P-P plot for each of those variables:

proc univariate data=measures;
   var length width;
   ppplot;
run;

proc univariate data=measures;
   ppplot length width;
run;
options

specify the theoretical distribution for the plot or add features to the plot. If you specify more than one variable, the options apply equally to each variable. Specify all options after the slash (/) in the PPPLOT statement. You can specify only one option that names a distribution, but you can specify any number of other options. By default, the procedure produces a P-P plot that is based on the normal distribution.

In the following example, the NORMAL, MU=, and SIGMA= options request a P-P plot that is based on the normal distribution with mean 10 and standard deviation 0.3. The SQUARE option displays the plot in a square frame.

proc univariate data=measures;
   ppplot length width / normal(mu=10 sigma=0.3)
                         square;
run;

Table 15 through Table 17 list the PPPLOT options by function. For complete descriptions, see the sections Dictionary of Options and Dictionary of Common Options. The options can be any of the following:

  • primary options

  • secondary options

  • general options

Distribution Options

Table 15 summarizes the options for requesting a specific theoretical distribution.

Table 15: Options for Specifying the Theoretical Distribution

Option Description
BETA(beta-options) Specifies beta P-P plot
EXPONENTIAL(exponential-options) Specifies exponential P-P plot
GAMMA(gamma-options) Specifies gamma P-P plot
GUMBEL(Gumbel-options) Specifies Gumbel P-P plot
PARETO(Pareto-options) Specifies generalized Pareto P-P plot
IGAUSS(iGauss-options) Specifies inverse Gaussian P-P plot
LOGNORMAL(lognormal-options) Specifies lognormal P-P plot
NORMAL(normal-options) Specifies normal P-P plot
POWER(power-options) Specifies power function P-P plot
RAYLEIGH(Rayleigh-options) Specifies Rayleigh P-P plot
WEIBULL(Weibull-options) Specifies Weibull P-P plot


Table 16 summarizes options that specify distribution parameters and control the display of the diagonal distribution reference line. Specify these options in parentheses after the distribution option. For example, the following statements use the NORMAL option to request a normal P-P plot:

proc univariate data=measures;
   ppplot length / normal(mu=10 sigma=0.3);
run;

The MU= and SIGMA= normal-options specify mu and sigma for the normal distribution.

Table 16: Secondary Distribution Reference Line Options

Option Description
Traditional Graphics Options Used with All Distributions
COLOR= Specifies color of distribution reference line
L= Specifies line type of distribution reference line
W= Specifies width of distribution reference line
General Option Used with All Distributions
NOLINE Suppresses the distribution reference line
Beta-Options
ALPHA= Specifies shape parameter alpha
BETA= Specifies shape parameter beta
SIGMA= Specifies scale parameter sigma
THETA= Specifies lower threshold parameter theta
Exponential-Options
SIGMA= Specifies scale parameter sigma
THETA= Specifies threshold parameter theta
Gamma-Options
ALPHA= Specifies shape parameter alpha
ALPHADELTA= Specifies change in successive estimates of alpha at which the Newton-Raphson approximation of ModifyingAbove alpha With caret terminates
ALPHAINITIAL= Specifies initial value for alpha in the Newton-Raphson approximation of ModifyingAbove alpha With caret
MAXITER= Specifies maximum number of iterations in the Newton-Raphson approximation of ModifyingAbove alpha With caret
SIGMA= Specifies scale parameter sigma
THETA= Specifies threshold parameter theta
Gumbel-Options
MU= Specifies location parameter mu
SIGMA= Specifies scale parameter sigma
IGauss-Options
LAMBDA= Specifies shape parameter lamda
MU= Specifies mean mu
Lognormal-Options
SIGMA= Specifies shape parameter sigma
THETA= Specifies threshold parameter theta
ZETA= Specifies scale parameter zeta
Normal-Options
MU= Specifies mean mu
SIGMA= Specifies standard deviation sigma
Pareto-Options
ALPHA= Specifies shape parameter alpha
SIGMA= Specifies scale parameter sigma
THETA= Specifies threshold parameter theta
Power-Options
ALPHA= Specifies shape parameter alpha
SIGMA= Specifies scale parameter sigma
THETA= Specifies threshold parameter theta
Rayleigh-Options
SIGMA= specifies scale parameter sigma
THETA= Specifies threshold parameter theta
Weibull-Options
C= Specifies shape parameter c
ITPRINT Requests table of iteration history and optimizer details
MAXITER= Specifies maximum number of iterations in the Newton-Raphson approximation of ModifyingAbove c With caret
SIGMA= Specifies scale parameter sigma
THETA= Specifies threshold parameter theta


General Options

Table 17 lists options that control the appearance of the plots. For complete descriptions, see the sections Dictionary of Options and Dictionary of Common Options.

Table 17: General PPPLOT Statement Options

Option Description
General Graphics Options
HREF= Specifies reference lines perpendicular to the horizontal axis
HREFLABELS= Specifies line labels for HREF= lines
HREFLABPOS= Specifies position for HREF= line labels
NOHLABEL Suppresses label for horizontal axis
NOVLABEL Suppresses label for vertical axis
NOVTICK Suppresses tick marks and tick mark labels for vertical axis
SQUARE Displays P-P plot in square format
VAXISLABEL= Specifies label for vertical axis
VREF= Specifies reference lines perpendicular to the vertical axis
VREFLABELS= Specifies line labels for VREF= lines
VREFLABPOS= Specifies position for VREF= line labels
Options for Traditional Graphics Output
ANNOTATE= Provides an annotate data set
CAXIS= Specifies color for axis
CFRAME= Specifies color for frame
CHREF= Specifies colors for HREF= lines
CTEXT= specifies color for text
CVREF= Specifies colors for VREF= lines
DESCRIPTION= Specifies description for plot in graphics catalog
FONT= Specifies software font for text
HAXIS= Specifies AXIS statement for horizontal axis
HEIGHT= Specifies height of text used outside framed areas
HMINOR= Specifies number of minor tick marks on horizontal axis
INFONT= Specifies software font for text inside framed areas
INHEIGHT= Specifies height of text inside framed areas
LHREF= Specifies line types for HREF= lines
LVREF= Specifies line types for VREF= lines
NAME= Specifies name for plot in graphics catalog
NOFRAME Suppresses frame around plotting area
TURNVLABELS Turns and vertically strings out characters in labels for vertical axis
VAXIS= Specifies AXIS statement for vertical axis
VMINOR= Specifies number of minor tick marks on vertical axis
WAXIS= Specifies line thickness for axes and frame
Options for ODS Graphics Output
ODSFOOTNOTE= Specifies footnote displayed on plot
ODSFOOTNOTE2= Specifies secondary footnote displayed on plot
ODSTITLE= Specifies title displayed on plot
ODSTITLE2= Specifies secondary title displayed on plot
OVERLAY Overlays plots for different class levels (ODS Graphics only)
Options for Comparative Plots
ANNOKEY Applies annotation requested in ANNOTATE= data set to key cell only
CFRAMESIDE= Specifies color for filling row label frames
CFRAMETOP= Specifies color for filling column label frames
CPROP= Specifies color for proportion of frequency bar
CTEXTSIDE= Specifies color for row labels
CTEXTTOP= Specifies color for column labels
INTERTILE= specifies distance between tiles in comparative plot
NCOLS= Specifies number of columns in comparative plot
NROWS= Specifies number of rows in comparative plot
Miscellaneous Options
CONTENTS= Specifies table of contents entry for P-P plot grouping


Dictionary of Options

The following entries provide detailed descriptions of options for the PPPLOT statement. For detailed descriptions of options common to all plot statements, see the section Dictionary of Common Options.

ALPHA=value

specifies the shape parameter alpha (alpha > 0) for P-P plots that are requested by the BETA, GAMMA, PARETO, and POWER options.

BETA<(beta-options)>

creates a beta P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical beta CDF value

upper B Subscript alpha beta Baseline left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline minus theta Over sigma EndFraction right parenthesis equals integral Subscript theta Superscript x Subscript left parenthesis i right parenthesis Baseline Baseline StartFraction left parenthesis t minus theta right parenthesis Superscript alpha minus 1 Baseline left parenthesis theta plus sigma minus t right parenthesis Superscript beta minus 1 Baseline Over upper B left parenthesis alpha comma beta right parenthesis sigma Superscript left parenthesis alpha plus beta minus 1 right parenthesis Baseline EndFraction d t

where upper B Subscript alpha beta Baseline left parenthesis dot right parenthesis is the normalized incomplete beta function, upper B left parenthesis alpha comma beta right parenthesis equals StartFraction normal upper Gamma left parenthesis alpha right parenthesis normal upper Gamma left parenthesis beta right parenthesis Over normal upper Gamma left parenthesis alpha plus beta right parenthesis EndFraction, and

  • theta is the lower threshold parameter

  • sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis

  • alpha is the first shape parameter left parenthesis alpha greater than 0 right parenthesis

  • beta is the second shape parameter left parenthesis beta greater than 0 right parenthesis

You can specify alpha, beta, sigma, and theta in the ALPHA=, BETA=, SIGMA=, and THETA= beta-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / beta(theta=1 sigma=2 alpha=3 beta=4);
run;

If you do not specify values for these parameters, then by default, theta equals 0, sigma equals 1, and maximum likelihood estimates are calculated for alpha and beta.

IMPORTANT: If the default unit interval (0,1) does not adequately describe the range of your data, then you should specify THETA=theta and SIGMA=sigma so that your data fall in the interval left parenthesis theta comma theta plus sigma right parenthesis.

If the data are beta-distributed with parameters alpha, beta, sigma, and theta, then the points on the plot for ALPHA=alpha, BETA=beta, SIGMA=sigma, and THETA=theta tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified beta distribution 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

specifies the shape parameter beta (beta > 0) for P-P plots that are requested by the BETA distribution option. For an example, see the preceding entry for the BETA distribution option.

C=value

specifies the shape parameter c left parenthesis c greater than 0 right parenthesis for P-P plots that are requested by the WEIBULL option. For examples, see the entry for the WEIBULL option.

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

creates an exponential P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical exponential CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals 1 minus exp left parenthesis minus StartFraction x Subscript left parenthesis i right parenthesis Baseline minus theta Over sigma EndFraction right parenthesis

where

  • theta is the threshold parameter

  • sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis

You can specify sigma and theta in the SIGMA= and THETA= exponential-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / exponential(theta=1 sigma=2);
run;

If you do not specify values for these parameters, then by default, theta equals 0 and a maximum likelihood estimate is calculated for sigma.

IMPORTANT: Your data must be greater than or equal to the lower threshold theta. If the default theta equals 0 is not an adequate lower bound for your data, specify theta in the THETA= option.

If the data are exponentially distributed with parameters sigma and theta, the points on the plot for SIGMA=sigma and THETA=theta tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified exponential distribution 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<(gamma-options)>

creates a gamma P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical gamma CDF value

upper G Subscript alpha Baseline left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline minus theta Over sigma EndFraction right parenthesis equals integral Subscript theta Superscript x Subscript left parenthesis i right parenthesis Baseline Baseline StartFraction 1 Over sigma normal upper Gamma left parenthesis alpha right parenthesis EndFraction left parenthesis StartFraction t minus theta Over sigma EndFraction right parenthesis Superscript alpha minus 1 Baseline exp left parenthesis minus StartFraction t minus theta Over sigma EndFraction right parenthesis d t

where upper G Subscript alpha Baseline left parenthesis dot right parenthesis is the normalized incomplete gamma function and

  • theta is the threshold parameter

  • sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis

  • alpha is the shape parameter left parenthesis alpha greater than 0 right parenthesis

You can specify alpha, sigma, and theta in the ALPHA=, SIGMA=, and THETA= gamma-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / gamma(alpha=1 sigma=2 theta=3);
run;

If you do not specify values for these parameters, then by default, theta equals 0 and maximum likelihood estimates are calculated for alpha and sigma.

IMPORTANT: Your data must be greater than or equal to the lower threshold theta. If the default theta equals 0 is not an adequate lower bound for your data, specify theta in the THETA= option.

If the data are gamma distributed with parameters alpha, sigma, and theta, the points on the plot for ALPHA=alpha, SIGMA=sigma, and THETA=theta tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified gamma distribution is a good fit. You can specify the SHAPE= option as an alias for the ALPHA= option, 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 P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical Gumbel CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals exp left parenthesis minus e Superscript minus left parenthesis x Super Subscript left parenthesis i right parenthesis Superscript minus mu right parenthesis divided by sigma Baseline right parenthesis

where

  • mu equals location parameter

  • sigma equals scale parameter left parenthesis sigma greater than 0 right parenthesis

You can specify mu and sigma in the MU= and SIGMA= Gumbel-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / gumbel(mu=1 sigma=2);
run;

If you do not specify values for these parameters, then by default, the maximum likelihood estimates are calculated for mu and sigma.

If the data are Gumbel distributed with parameters mu and sigma, the points on the plot for MU=mu and SIGMA=sigma tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Gumbel distribution is a good fit.

IGAUSS<(iGauss-options)>

creates an inverse Gaussian P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical inverse Gaussian CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals normal upper Phi left brace StartRoot StartFraction lamda Over x Subscript left parenthesis i right parenthesis Baseline EndFraction EndRoot left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline Over mu EndFraction minus 1 right parenthesis right brace plus e Superscript 2 lamda divided by mu Baseline normal upper Phi left brace minus StartRoot StartFraction lamda Over x Subscript left parenthesis i right parenthesis Baseline EndFraction EndRoot left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline Over mu EndFraction plus 1 right parenthesis right brace

where normal upper Phi left parenthesis dot right parenthesis is the standard normal distribution function and

  • mu is the mean parameter left parenthesis mu greater than 0 right parenthesis

  • lamda is the shape parameter left parenthesis lamda greater than 0 right parenthesis

You can specify lamda and mu in the LAMBDA= and MU= IGauss-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / igauss(lambda=1 mu=2);
run;

If you do not specify values for these parameters, then by default, the maximum likelihood estimates are calculated for lamda and mu.

If the data have an inverse Gaussian distribution with parameters lamda and mu, the points on the plot for LAMBDA=lamda and MU=mu tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified inverse Gaussian distribution is a good fit.

LAMBDA=value

specifies the shape parameter lamda for fitted curves that are requested by the IGAUSS option. Enclose the LAMBDA= option in parentheses after the IGAUSS distribution keyword. If you do not specify this option, the procedure calculates a maximum likelihood estimate for lamda.

LOGNORMAL<(lognormal-options)>
LNORM<(lognormal-options)>

creates a lognormal P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical lognormal CDF value

normal upper Phi left parenthesis StartFraction log left parenthesis x Subscript left parenthesis i right parenthesis Baseline minus theta right parenthesis minus zeta Over sigma EndFraction right parenthesis

where normal upper Phi left parenthesis dot right parenthesis is the cumulative standard normal distribution function and

  • theta is the threshold parameter

  • zeta is the scale parameter

  • sigma is the shape parameter left parenthesis sigma greater than 0 right parenthesis

You can specify theta, zeta, and sigma with the THETA= ZETA=, and SIGMA= lognormal-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / lognormal(theta=1 zeta=2);
run;

If you do not specify values for these parameters, then by default, theta equals 0 and estimates of sigma and zeta are computed as described in the section Lognormal Distribution.

IMPORTANT: Your data must be greater than the lower threshold theta. If the default theta equals 0 is not an adequate lower bound for your data, specify theta in the THETA= option.

If the data are lognormally distributed with parameters sigma, theta, and zeta, the points on the plot for SIGMA=sigma, THETA=theta, and ZETA=zeta tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified lognormal distribution is a good fit. You can specify the SHAPE= option as an alias for the SIGMA=option, the SCALE= option as an alias for the ZETA= option, and the THRESHOLD= option as an alias for the THETA= option.

MU=value

specifies the parameter mu for P-P plots that are requested by the GUMBEL, IGAUSS, and NORMAL options. By default, the sample mean is used for mu with inverse Gaussian and normal distributions. A maximum likelihood estimate is computed by default with the Gumbel distribution. See Example 4.36.

NOLINE

suppresses the diagonal reference line.

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

creates a normal P-P plot. By default, if you do not specify a distribution option, the procedure displays a normal P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical normal CDF value

normal upper Phi left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline minus mu Over sigma EndFraction right parenthesis equals integral Subscript negative normal infinity Superscript x Subscript left parenthesis i right parenthesis Baseline Baseline StartFraction 1 Over sigma StartRoot 2 pi EndRoot EndFraction exp left parenthesis minus StartFraction left parenthesis t minus mu right parenthesis squared Over 2 sigma squared EndFraction right parenthesis d t

where normal upper Phi left parenthesis dot right parenthesis is the cumulative standard normal distribution function and

  • mu equals location parameter or mean

  • sigma equals scale parameter or standard deviation left parenthesis sigma greater than 0 right parenthesis

You can specify mu and sigma in the MU= and SIGMA= normal-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / normal(mu=1 sigma=2);
run;

By default, the sample mean and sample standard deviation are used for mu and sigma.

If the data are normally distributed with parameters mu and sigma, the points on the plot for MU=mu and SIGMA=sigma tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified normal distribution is a good fit. See Example 4.36.

PARETO<(Pareto-options )>

creates a generalized Pareto P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical generalized Pareto CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals 1 minus left parenthesis 1 minus StartFraction alpha left parenthesis x Subscript left parenthesis i right parenthesis Baseline minus theta right parenthesis Over sigma EndFraction right parenthesis Superscript StartFraction 1 Over alpha EndFraction

where theta is the threshold parameter sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis alpha is the shape parameter

The parameter theta for the generalized Pareto distribution must be less than the minimum data value. You can specify theta in the THETA= Pareto-option. The default value for theta is 0. In addition, the generalized Pareto distribution has a shape parameter alpha and a scale parameter sigma. You can specify these parameters in the ALPHA= and SIGMA= Pareto-options. By default, maximum likelihood estimates are computed for alpha and sigma.

If the data have a generalized Pareto distribution with parameters theta, sigma, and alpha, the points on the plot for THETA=theta, SIGMA=sigma, and ALPHA=alpha tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified generalized Pareto distribution is a good fit.

POWER<(power-options )>

creates a power function P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical power function CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline minus theta Over sigma EndFraction right parenthesis Superscript alpha

where theta is the lower threshold parameter (lower endpoint) sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis alpha is the shape parameter left parenthesis alpha greater than 0 right parenthesis

The power function distribution is bounded below by the parameter theta and above by the value theta plus sigma. You can specify theta and sigma by using the THETA= and SIGMA= power-options. The default values for theta and sigma are 0 and 1, respectively.

You can specify a value for the shape parameter, alpha, with the ALPHA= power-option. If you do not specify a value for alpha, the procedure calculates a maximum likelihood estimate.

The power function distribution is a special case of the beta distribution with its second shape parameter, beta equals 1.

If the data have a power function distribution with parameters theta, sigma, and alpha, the points on the plot for THETA=theta, SIGMA=sigma, and ALPHA=alpha tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified power function distribution is a good fit.

RAYLEIGH<(Rayleigh-options )>

creates a Rayleigh P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical Rayleigh CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals 1 minus e Superscript minus left parenthesis x Super Subscript left parenthesis i right parenthesis Superscript minus theta right parenthesis squared divided by left parenthesis 2 sigma squared right parenthesis

where theta is the threshold parameter sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis

The parameter theta for the Rayleigh distribution must be less than the minimum data value. You can specify theta in the THETA= Rayleigh-option. The default value for theta is 0. You can specify sigma in the SIGMA= Rayleigh-option. By default, a maximum likelihood estimate is computed for sigma.

If the data have a Rayleigh distribution with parameters theta and sigma, the points on the plot for THETA=theta and SIGMA=sigma tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Rayleigh distribution is a good fit.

SIGMA=value

specifies the parameter sigma, where sigma greater than 0. When used with the BETA, EXPONENTIAL, GAMMA, GUMBEL, NORMAL, PARETO, POWER, RAYLEIGH, and WEIBULL options, the SIGMA= option specifies the scale parameter. When used with the LOGNORMAL option, the SIGMA= option specifies the shape parameter. See Example 4.36.

SQUARE

displays the P-P plot in a square frame. (By default, the plot is in a rectangular frame.) See Example 4.36.

THETA=value
THRESHOLD=value

specifies the lower threshold parameter theta for plots that are requested by the BETA, EXPONENTIAL, GAMMA, LOGNORMAL, PARETO, POWER, RAYLEIGH, and WEIBULL options.

WEIBULL<(Weibull-options)>
WEIB<(Weibull-options)>

creates a Weibull P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:

x Subscript left parenthesis 1 right parenthesis Baseline less than or equals x Subscript left parenthesis 2 right parenthesis Baseline less than or equals midline horizontal ellipsis less than or equals x Subscript left parenthesis n right parenthesis

The y-coordinate of the ith point is the empirical CDF value StartFraction i Over n EndFraction. The x-coordinate is the theoretical Weibull CDF value

upper F left parenthesis x Subscript left parenthesis i right parenthesis Baseline right parenthesis equals 1 minus exp left parenthesis minus left parenthesis StartFraction x Subscript left parenthesis i right parenthesis Baseline minus theta Over sigma EndFraction right parenthesis Superscript c Baseline right parenthesis

where

  • theta is the threshold parameter

  • sigma is the scale parameter left parenthesis sigma greater than 0 right parenthesis

  • c is the shape parameter left parenthesis c greater than 0 right parenthesis

You can specify c, sigma, and theta in the C=, SIGMA= and THETA= Weibull-options, as illustrated in the following example:

proc univariate data=measures;
   ppplot width / weibull(theta=1 sigma=2);
run;

If you do not specify values for these parameters, then by default theta equals 0 and maximum likelihood estimates are calculated for sigma and c.

IMPORTANT: Your data must be greater than or equal to the lower threshold theta. If the default theta equals 0 is not an adequate lower bound for your data, you should specify theta with the THETA= option.

If the data have a Weibull distribution with parameters c, sigma, and theta, the points on the plot for C=c, SIGMA=sigma, and THETA=theta tend to fall on or near the diagonal line y equals x, which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Weibull distribution is a good fit. You can specify the SHAPE= option as an alias for the C= option, the SCALE= option as an alias for the SIGMA= option, and the THRESHOLD= option as an alias for the THETA= option.

ZETA=value

specifies a value for the scale parameter zeta for lognormal P-P plots that are requested by the LOGNORMAL option.

Last updated: April 16, 2025