Chapter Contents |
Previous |
Next |
The UNIVARIATE Procedure |
Alias: | |
Default: | Normal Q-Q plot |
Restriction: | You can specify only one theoretical distribution. |
Tip: | You can use multiple QQPLOT statements. |
Main Discussion: | Quantile-Quantile and Probability Plots |
QQPLOT <variable(s)> </ option(s)>; |
To do this: | Use this option: | |
---|---|---|
Request a distribution | ||
Specify beta probability plot with required shape parameters , . | BETA(beta-suboptions) | |
Specify exponential probability plot | EXPONENTIAL(exponential-suboptions) | |
Specify gamma probability plot with a required shape parameter | GAMMA(gamma-suboptions) | |
Specify lognormal probability plot with a required shape parameter | LOGNORMAL(lognormal-suboptions) | |
Specify normal probability plot | NORMAL(normal-suboptions) | |
Specify three-parameter Weibull probability plot with a required shape parameter | WEIBULL(Weibull-suboptions) | |
Specify two-parameter Weibull probability plot | WEIBULL2(Weibull2-suboptions) | |
Distribution suboptions | ||
Specify shape parameter for the beta or gamma distribution | ALPHA= | |
Specify shape parameter for the beta distribution | BETA= | |
Specify shape parameter for the Weibull distribution or for distribution reference line of the Weibull2 distribution | C= | |
Specify for distribution reference line of the normal distribution | MU= | |
Specify for distribution reference line for the beta, exponential, gamma, normal, Weibull, or Weibull2 distribution or the required shape parameter for the lognormal option | SIGMA= | |
Specify slope of distribution reference line for the lognormal or Weibull2 distribution | SLOPE= | |
Specify for distribution reference line for the beta, exponential, gamma. lognormal, or Weibull distribution, or the lower known threshold for the Weibull2 distribution | THETA= | |
Specify for distribution reference line for the lognormal distribution | ZETA= | |
Control appearance of distribution reference line | ||
Specify color of distribution reference line | COLOR= | |
Specify line type of distribution reference line | L= | |
Specify width of distribution reference line | W= | |
Control general plot layout | ||
Specify reference lines perpendicular to the horizontal axis | HREF= | |
Specify labels for HREF lines | HREFLABELS= | |
Adjust sample size when computing quantiles | NADJ= | |
Suppress frame around plotting area | NOFRAME | |
Request minor tick marks for percentile axis | PCTLMINOR | |
Replace theoretical quantiles with percentiles | PCTLSCALE | |
Adjust ranks when computing quantiles | RANKADJ= | |
Display Q-Q plot in square format | SQUARE | |
Specify reference lines perpendicular to the vertical axis | VREF= | |
Specify labels for VREF lines | VREFLABELS= | |
Enhance the Q-Q plot | ||
Specify annotate data set | ANNOTATE= | |
Specify color for axis | CAXIS= | |
Specify color for frame | CFRAME= | |
Specify color for HREF= lines | CHREF= | |
Specify color for text | CTEXT= | |
Specify color for VREF= lines | CVREF= | |
Specify description for plot in graphics catalog | DESCRIPTION= | |
Specify software font for text | FONT= | |
Specify number of minor tick marks on horizontal axis | HMINOR= | |
Specify line style for HREF= lines | LHREF= | |
Specify line style for VREF= lines | LVREF= | |
Specify name for plot in graphics catalog | NAME= | |
Specify number of minor tick marks on vertical axis | VMINOR= | |
Enhance the comparative Q-Q plot | ||
Apply annotation requested in ANNOTATE= data set to key cell only | ANNOKEY | |
Specify color for filling frame for row labels | CFRAMESIDE= | |
Specify color for filling frame for column labels | CFRAMETOP= | |
Specify distance between tiles | INTERTILE= | |
Specify number of columns in comparative Q-Q plot | NCOLS= | |
Specify number of rows in comparative Q-Q plot | NROWS= |
Arguments |
Default: | If you omit variable(s) in the QQPLOT statement, then the procedure creates a Q-Q plot for each variable that you list in the VAR statement, or for each numeric variable in the DATA= data set if you omit a VAR statement. |
Requirement: | If you specify a VAR statement, use the variable(s) that you list in the VAR statement. Otherwise, variable(s) are any numeric variables in the DATA= data set. |
Options |
Requirement: | Enclose this suboption in parentheses when it follows the BETA or GAMMA options. |
Tip: | To compute a maximum likelihood estimate for , specify ALPHA=EST. |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Tip: | Use the KEYLEVEL= option in the CLASS statement to specify the key cell. |
See also: | the KEYLEVEL= option |
Alias: | ANNO= |
Tip: | The ANNOTATE = data set that you specify in the QQPLOT statement is used by all plots that this statement creates. You can also specify an ANNOTATE= data set in the PROC UNIVARIATE statement to enhance all the graphic displays that the procedure creates. |
See also: | ANNOTATE= in the PROC UNIVARIATE statement |
Requirement: | You must specify the shape parameters with the ALPHA= and BETA= suboptions |
Interaction: | To create a plot that is based on maximum likelihood estimates for and , specify ALPHA=EST and BETA=EST. |
Tip: | To obtain graphical estimates of
and
, specify lists of values in the ALPHA= and BETA= suboptions.
Then select the combination of
and
that most nearly linearizes the point pattern.
To assess the point pattern, add a diagonal distribution reference line that corresponds to the lower threshold parameter and the scale parameter with the THETA= and SIGMA= suboptions. Alternatively, you can add a line that corresponds to estimated values of lower threshold parameter and with THETA=EST and SIGMA=EST. Agreement between the reference line and the point pattern indicates that the beta distribution with parameters , , , and is a good fit. |
Main discussion: | Beta Distribution |
See also: | the ALPHA= suboption , BETA= suboption , SIGMA= suboption , and THETA= suboption . |
Alias: | B= |
Requirement: | You must enclose this suboption in parentheses after the BETA option. |
Tip: | To compute a maximum likelihood estimate for , specify BETA=EST. |
Requirement: | Enclose this suboption in parentheses after the WEIBULL option or WEIBULL2 option. |
Interaction: | To request a distribution reference line in the WEIBULL2 option, you must specify both the C= and SIGMA= suboptions. |
Tip: | To compute a maximum likelihood estimate for , specify C=EST. |
Alias: | CAXES= |
Default: | the first color in the device color list |
Interaction: | This option overrides any COLOR= specification. |
Default: | the area is not filled |
Default: | These areas are not filled. |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Default: | These areas are not filled. |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Default: | the first color in the device color list |
Default: | the fourth color in the device color list |
Requirement: | You must enclose this suboption in parentheses after a distribution option keyword. |
Default: | the color that you specify for the CTEXT= option in the GOPTIONS statement. If you omit the GOPTIONS statement, the default is the first color in the device color list. |
Alias: | CV= |
Default: | the first color in the device color list. |
Alias: | DES= |
Default: | the variable name |
Alias: | EXP |
Tip: | To assess the point pattern, add a diagonal
distribution reference line that corresponds to
and
with the THETA= and SIGMA= suboptions. Alternatively, you
can add a line that corresponds to estimated values of the threshold parameter
and the scale parameter
with the THETA=EST and SIGMA=EST suboptions.
Agreement between the reference line and the point pattern indicates that the exponential distribution with parameters and is a good fit. |
Main discussion: | Exponential Distribution |
See also: | the SIGMA suboption and THETA suboption |
Default: | hardware characters |
Interaction: | FONT=font takes precedence over FTEXT=font that you specify in the GOPTIONS statement. |
Requirement: | You must specify the shape parameter with the ALPHA= suboption. |
Interaction: | To create a plot that is based on a maximum likelihood estimate for , specify ALPHA=EST. |
Tip: | To obtain a graphical estimate of
, specify a list of values in the ALPHA= suboption. Then
select the value that most nearly linearizes the point pattern.
To assess the point pattern, add a diagonal distribution reference line that corresponds to and with the THETA= and SIGMA= suboptions. Alternatively, you can add a line that corresponds to estimated values of the threshold parameter and the scale parameter with THETA=EST and SIGMA=EST. Agreement between the reference line and the point pattern indicates that the exponential distribution with parameters , , and is a good fit. |
Main discussion: | Gamma Distribution |
See also: | the ALPHA= suboption , SIGMA= suboption , and THETA= suboption |
Alias: | HM= |
Default: | 0 |
See also: | CHREF= option |
Alias: | HREFLABEL= and HREFLAB= |
Restriction: | The number of labels must equal the number of reference lines. Labels can have up to 16 characters. |
Default: | The tiles are contiguous. |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Default: | 1, which produces a solid line |
Requirement: | You must enclose this suboption in parentheses after a distribution option keyword. |
Alias: | LH= |
Default: | 2, which produces a dashed line |
Alias: | LNORM |
Requirement: | You must specify the shape parameter with the SIGMA= suboption. |
Tip: | To obtain a graphical estimate of
, specify a list of values for the SIGMA= suboption, and
select the value that most nearly linearizes the point pattern.
To assess the point pattern, add a diagonal distribution reference line that corresponds to the threshold parameter and the scale parameter with the THETA= and ZETA= suboptions. Alternatively, you can add a line that corresponds to estimated values of and with THETA=EST and ZETA=EST. This line has intercept , and slope exp( ). Agreement between the reference line and the point pattern indicates that the lognormal distribution with parameters , and is a good fit. |
Main discussion: | Lognormal Distribution |
See also: | the SIGMA= suboption , SLOPE= suboption , THETA= suboption , and ZETA= suboption |
Alias: | LV= |
Default: | 2, which produces a dashed line |
Default: | the sample mean |
Requirement: | You must enclose this suboption in parentheses after the NORMAL option. |
Tip: | Specify the MU= and SIGMA= suboptions together to request a distribution reference line. Specify MU=EST to request a distribution reference line with equal to the sample mean. |
Default: | as recommended by Blom (1958) |
Default: | UNIVAR |
Alias: | NCOL= |
Default: | NCOLS=1, if you specify only one class variable, and NCOLS=2, if you specify two class variables. |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Interaction: | If you specify two class variables, you can use the NCOLS= option with the NROWS= option. |
Tip: | To assess the point pattern, add a diagonal
distribution reference line that corresponds to
and
with the MU= and SIGMA= suboptions. Alternatively, you
can add a line that corresponds to estimated values of
and
with the THETA=EST and SIGMA=EST; the estimates of the
mean
and the standard deviation
are the sample mean and sample standard deviation.
Agreement between the reference line and the point pattern indicates that the normal distribution with parameters and is a good fit. |
Main discussion: | Normal Distribution |
See also: | the MU= suboption and SIGMA= suboption |
Alias: | NROW= |
Default: | 2 |
Requirement: | This option is ignored unless you specify the CLASS statement. |
Interaction: | If you specify two class variables, you can use the NCOLS= option with the NROWS= option. |
Tip: | 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 PROBPLOT statement. |
Default: | as recommended by Blom (1958) |
See also: | SIGMA= and ZETA= |
See also: | ALPHA= , SIGMA= , and C= |
Distribution Option | Uses of the SIGMA= Option |
---|---|
BETA, EXPONENTIAL GAMMA, WEIBULL |
THETA= and SIGMA= request a distribution reference line with intercept and slope . |
LOGNORMAL | SIGMA= requests Q-Q plots with shape parameters . The SIGMA= option is required. |
NORMAL | MU= and SIGMA= request a distribution reference line with intercept and slope . SIGMA=EST requests a slope equal to the sample standard deviation. |
WEIBULL2 | SIGMA= and C= request a distribution reference line with intercept and slope . |
Requirement: | Enclose this suboption in parentheses after the distribution option. |
Tip: | To compute a maximum likelihood estimate for , specify SIGMA=EST . |
Requirement: | Enclose this suboption in parentheses after the distribution option. |
Tip: | When you use the LOGNORMAL option and SLOPE= to request the line, you must also specify a threshold parameter value with the THETA= suboption. SLOPE= is an alternative to the ZETA= suboption for specifying , because the slope is equal to . |
When you use the WEIBULL2 option and SLOPE=
option to request the line, you must also specify a scale parameter value
with the SIGMA= suboption. SLOPE= is an alternative to
the C= suboption for specifying
, because the slope is equal to
.
For example, the first and second QQPLOT statements produce the same quantile-quantile plots as the third and fourth QQPLOT statements: proc univariate data=measures; qqplot width /lognormal(sigma=2 theta=0 zeta=0); qqplot width /lognormal(sigma=2 theta=0 slope=1); qqplot width /weibull2(sigma=2 theta=0 c=.25); qqplot width /weibull2(sigma=2 theta=0 slope=4); |
|
Main Discussion: | Shape Parameters |
Default: | rectangular frame |
Default: | 0 |
Requirement: | You must enclose this suboption in parentheses after the distribution option. |
Interaction: | When you use the WEIBULL2 option,
the THETA= suboption specifies the known lower threshold
, which by default is 0.
When you use the THETA= suboption with another distribution option, THETA= specifies for a distribution reference line. To compute a maximum likelihood estimate for , specify THETA=EST. To request the line, you must also specify a scale parameter. |
Alias: | VM= |
Default: | 0 |
See also: | CVREF= option and LVREF= option |
Alias: | VREFLABEL= and VREFLAB= |
Restriction: | The number of labels must equal the number of reference lines. Labels can have up to 16 characters. |
Default: | 1 |
Requirement: | You must enclose this suboption in parentheses after the distribution option. |
Alias: | WEIB |
Requirement: | You must specify the shape parameter with the C= suboption. |
Interaction: | To create a plot that is based on
a maximum likelihood estimate for
, specify C=EST.
To specify the threshold value , use the THETA= suboption. |
Tip: | To obtain a graphical estimate of
, specify a list of values in the C= suboption. Then select
the value that most nearly linearizes the point pattern.
To assess the point pattern, add a diagonal distribution reference line with intercept and slope with the THETA= and SIGMA= suboptions. Alternatively, you can add a line that corresponds to estimated values of and with THETA=EST and SIGMA=EST. Agreement between the reference line and the point pattern indicates that the Weibull distribution with parameters , , and is a good fit. |
Main discussion: | Three-Parameter Weibull Distribution |
See also | the C= suboption , SIGMA= suboption , and THETA= suboption |
Note: The C= shape parameter option is not required with the Weibull2
option.
Alias: | W2 |
Default: | 0 |
Interaction: | To specify the threshold value , use the THETA= suboption. |
Tip: | An advantage of the two-parameter Weibull plot over the three-parameter Weibull plot is that the parameters and can be estimated from the slope and intercept of the point pattern. A disadvantage is that the two-parameter Weibull distribution applies only in situations where the threshold parameter is known. |
Tip: | To obtain a graphical estimate of
, specify a list of values for the THETA= suboption. Then
select the value that most nearly linearizes the point pattern.
To assess the point pattern, add a diagonal distribution reference line that corresponds to and with the SIGMA= and C= suboptions. Alternatively, you can add a distribution reference line that corresponds to estimated values of and with SIGMA=EST and C=EST. Agreement between the reference line and the point pattern indicates that the Weibull2 distribution with parameters , , and is a good fit. |
Main discussion: | Two-Parameter Weibull Distribution |
See also: | the C= suboption , SIGMA= suboption , SLOPE= suboption , and THETA= suboption |
Requirement: | You must enclose this suboption in parentheses after the LOGNORMAL option. |
Interaction: | To request a distribution reference line with intercept and slope , specify THETA= and ZETA= . |
Theoretical Percentiles of Quantile-Quantile Plots |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.