DescGrapSAS - Histogram The following program produces a...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Histogram The following program produces a histogram for the birth variable, distance from birth place, in the data set students : title2 ‘Histogram of Distance to Birth Place’; proc univariate data=students noprint; histogram birth / cfill=red; run; Option noprint suppresses the default outputs from PROC UNIVARIATE. The histogram birth statement calls for a histogram for variable birth . The / separate the statement and its options. Option cfill=red specifies that the bars in the histogram will be filled by red color. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hi st ogr am of D istance to B irth P lace 0 1500 3000 4500 6000 7500 9000 10500 12000 0 10 20 30 40 50 60 70 P e r c e n t bi r t h 2
Background image of page 2
Bar Charts The following program produces vertical and horizontal bar charts for the salary variable in the data set allsalary : title2 ‘University Salary’; proc gchart data=allsalary; vbar job / sumvar=salary type=mean; hbar job / sumvar=salary type=mean nostats; run; quit; The vbar job statement calls for a vertical bar chart for variable job , such that each bar stands for a job category. Similarly, The hbar job statement calls for a horizontal bar chart for variable job . The / separate the statement and its options. Option sumvar=salary specifies the summary variable for creating the bars. Option type=mean indicates that
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/11/2008 for the course STAT 5615 taught by Professor Pdu during the Fall '08 term at Virginia Tech.

Page1 / 14

DescGrapSAS - Histogram The following program produces a...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online