CDFPLOT
<variables> < / options> ;
The CDFPLOT statement plots the observed cumulative distribution function (cdf) of a variable, defined as
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
where is the number of nonmissing observations. The cdf is an increasing step function that has a vertical jump of
at each value of
equal to an observed value. The cdf is also referred to as the empirical cumulative distribution function (ecdf).
You can use any number of CDFPLOT statements in the UNIVARIATE procedure. The components of the CDFPLOT statement are as follows.
Table 4.2 lists primary options for requesting a theoretical distribution.
Table 4.2: Primary Options for Theoretical Distribution
Option |
Description |
---|---|
plots two-parameter beta distribution function, parameters |
|
plots one-parameter exponential distribution function, parameter |
|
plots two-parameter gamma distribution function, parameter |
|
plots Gumbel distribution with location parameter |
|
plots inverse Gaussian distribution with mean |
|
plots two-parameter lognormal distribution function, parameter |
|
plots normal distribution function |
|
plots generalized Pareto distribution with threshold parameter |
|
plots power function distribution with threshold parameter |
|
plots Rayleigh distribution with threshold parameter |
|
plots two-parameter Weibull distribution function, parameter |
Table 4.3 lists secondary options that specify distribution parameters and control the display of a theoretical distribution function. Specify these options in parentheses after the distribution keyword. For example, you can request a normal probability plot with a distribution reference line by specifying the NORMAL option as follows:
proc univariate; cdfplot / normal(mu=10 sigma=0.5 color=red); run;
The COLOR= option specifies the color for the curve, and the normal-options MU= and SIGMA= specify the parameters and
for the distribution function. If you do not specify these parameters, maximum likelihood estimates are computed.
Table 4.3: Secondary Distribution Options
Option |
Description |
---|---|
Options Used with All Distributions |
|
specifies color of theoretical distribution function |
|
specifies line type of theoretical distribution function |
|
specifies width of theoretical distribution function |
|
Beta-Options |
|
specifies first shape parameter |
|
specifies second shape parameter |
|
specifies scale parameter |
|
specifies lower threshold parameter |
|
Exponential-Options |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Gamma-Options |
|
specifies shape parameter |
|
specifies change in successive estimates of |
|
specifies initial value for |
|
specifies maximum number of iterations in the Newton-Raphson approximation of |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Gumbel-Options |
|
specifies location parameter |
|
specifies scale parameter |
|
IGauss-Options |
|
specifies shape parameter |
|
specifies mean |
|
Lognormal-Options |
|
specifies shape parameter |
|
specifies threshold parameter |
|
specifies scale parameter |
|
Normal-Options |
|
specifies mean |
|
specifies standard deviation |
|
Pareto-Options |
|
specifies shape parameter |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Power-Options |
|
specifies shape parameter |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Rayleigh-Options |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Secondary Weibull-Options |
|
specifies shape parameter |
|
requests table of iteration history and optimizer details |
|
specifies maximum number of iterations in the Newton-Raphson approximation of |
|
specifies scale parameter |
|
specifies threshold parameter |
Table 4.4 summarizes general options for enhancing cdf plots.
Table 4.4: General Graphics Options
Option |
Description |
---|---|
General Graphics Options |
|
specifies reference lines perpendicular to the horizontal axis |
|
specifies labels for HREF= lines |
|
specifies position for HREF= line labels |
|
suppresses plot of empirical (observed) distribution function |
|
suppresses label for horizontal axis |
|
suppresses label for vertical axis |
|
suppresses tick marks and tick mark labels for vertical axis |
|
specifies reference lines at values of summary statistics |
|
specifies labels for STATREF= lines |
|
specifies substitution character for displaying statistic values in STATREFLABELS= labels |
|
specifies label for vertical axis |
|
specifies reference lines perpendicular to the vertical axis |
|
specifies labels for VREF= lines |
|
specifies position for VREF= line labels |
|
specifies scale for vertical axis |
|
Options for Traditional Graphics Output |
|
specifies annotate data set |
|
specifies color for axis |
|
specifies color for frame |
|
specifies colors for HREF= lines |
|
specifies colors for STATREF= lines |
|
specifies color for text |
|
specifies colors for VREF= lines |
|
specifies description for graphics catalog member |
|
specifies text font |
|
specifies AXIS statement for horizontal axis |
|
specifies height of text used outside framed areas |
|
specifies number of horizontal axis minor tick marks |
|
specifies software font for text inside framed areas |
|
specifies height of text inside framed areas |
|
specifies line types for HREF= lines |
|
specifies line types for STATREF= lines |
|
specifies line types for VREF= lines |
|
specifies name for plot in graphics catalog |
|
suppresses frame around plotting area |
|
turns and vertically strings out characters in labels for vertical axis |
|
specifies AXIS statement for vertical axis |
|
specifies number of vertical axis minor tick marks |
|
specifies line thickness for axes and frame |
|
Options for ODS Graphics Output |
|
specifies footnote displayed on plot |
|
specifies secondary footnote displayed on plot |
|
specifies title displayed on plot |
|
specifies secondary title displayed on plot |
|
overlays plots for different class levels |
|
Options for Comparative Plots |
|
applies annotation requested in ANNOTATE= data set to key cell only |
|
specifies color for filling row label frames |
|
specifies color for filling column label frames |
|
specifies color for proportion of frequency bar |
|
specifies color for row labels |
|
specifies color for column labels |
|
specifies distance between tiles in comparative plot |
|
specifies number of columns in comparative plot |
|
specifies number of rows in comparative plot |
|
Miscellaneous Options |
|
specifies table of contents entry for cdf plot grouping |
The following entries provide detailed descriptions of the options specific to the CDFPLOT statement. See the section Dictionary of Common Options for detailed descriptions of options common to all plot statements.