Previous Page | Next Page

The PLOT Procedure

Example 10: Excluding Observations That Have Missing Values


Procedure features:

PROC PLOT statement option

NOMISS

Data set: EDUCATION

This example shows how missing values affect the calculation of the axes.


Program

 Note about code
options nodate pageno=1 linesize=80 pagesize=35;
 Note about code
proc sort data=education;
   by region;
run;
 Note about code
proc plot data=education nomiss;
 Note about code
    by region;
 Note about code
    plot expenditures*dropoutrate='*' $ state / href=28.6;
 Note about code
    title 'Plot of Dropout Rate and Expenditure Per Pupil';
run;

Output

 Note about figure
                 Plot of Dropout Rate and Expenditure Per Pupil                1

---------------------------------- Region=NE -----------------------------------

          Plot of Expenditures*DropoutRate$State.  Symbol used is '*'.

Expenditures |                                                          |
        8000 +                                                          |
             |                                                          |
             |                     * New Jersey                         |
             |                                                          |
             |                                                          |
        7000 +                                                          |
             |     * Connecticut                                        |
             |                                                          |
             |                                                          |
             |                                                          |
        6000 +                                         Massachusetts *  |
             |                                              * Maryland  |
             |                                                          |
             |                                                Delaware *|
             |                                                          |
        5000 +                                                          |
             |                              * Maine         * New Hampshire
             |                                                          |
             |                                                          |
             |                                                          |
        4000 +                                                          |
             |                                                          |
             --+--------+--------+--------+--------+--------+--------+--------+-
              16       18       20       22       24       26       28       30

                                  Dropout Percentage - 1989

NOTE: 1 obs had missing values.

Previous Page | Next Page | Top of Page