To request a set of percentiles other than the default set that the UNIVARIATE procedure computes, use the PCTLPTS= and PCTLPRE= options in the OUTPUT statement. When you use these options in the OUTPUT statement, a data set is created containing your customized list of percentiles. For example, to write the 5th, 12th, and 43rd percentiles of a variable X to a data set, use the following statements:
proc univariate;
var x;
output out=OutputDataSetName pctlpts=5 12 43 pctlpre=p_;
run;
The PCTLPTS= option specifies the quantile values. The PCTLPRE= option specifies a prefix to use in naming the output variables. This example creates three variables in the output data set (p_5, p_12, and p_43) that contains the 5th, 12th, and 43rd percentiles, respectively.
If you also have SAS/GRAPH installed, beginning with SAS 8, you can use the HISTOGRAM statement to display customized percentiles to the UNIVARIATE listing. Specify the NORMAL option in the HISTOGRAM statement and use the PERCENTS= suboption. You can use the NOPLOT option to suppress the graph if you want. Here is an example:
proc univariate;
var x;
histogram x / normal(percents=5 12 43) noplot;
run;
To output the quantiles to a data set, specify the following ODS OUTPUT statement:
ods output FitQuantiles=OutputDataSetName;