The KDE Procedure |
This example uses data from the section Getting Started: KDE Procedure to illustrate the use of ODS Graphics. The following statements request the available univariate plots in PROC KDE:
ods graphics on; proc kde data=bivnormal; univar x / plots=(density histogram histdensity); univar x y / plots=densityoverlay; run; ods graphics off;
Graphs are requested by specifying the ODS GRAPHICS statement and the PLOTS= option in the UNIVAR statement. Output 45.5.1, Output 45.5.2, and Output 45.5.3 show the kernel density estimate, histogram, and histogram with kernel density estimate overlaid, respectively, produced by the first UNIVAR statement.
Output 45.5.4 shows the plot produced by the second UNIVAR statement, in which the kernel density estimates for x and y are overlaid.
For general information about ODS Graphics, see Chapter 21, Statistical Graphics Using ODS. For specific information about the graphics available in the KDE procedure, see the section ODS Graphics.
Copyright © SAS Institute, Inc. All Rights Reserved.