Skip to Main Content
Base SAS 9.4 Procedures Guide, Third Edition
book

Base SAS 9.4 Procedures Guide, Third Edition

by SAS Institute
August 2014
Intermediate to advanced content levelIntermediate to advanced
2218 pages
209h 16m
English
SAS Institute
Content preview from Base SAS 9.4 Procedures Guide, Third Edition
Example 5: Producing a Horizontal Bar Chart for a Subset of the Data
Features: HBAR statement options
GROUP=
SUMVAR=
Other features: WHERE= data set option
Data set: PIESALES
Details
This example does the following:
produces horizontal bar charts only for observations with a common value
charts the values of a variable for the categories of another variable
creates side-by-side bar charts for the categories of a third variable
Program
proc chart data=piesales(where=(year=2005));
hbar bakery / group=flavor
sumvar=pies_sold;
title '2005 Pie Sales for Each Bakery According to Flavor';
run;
Program Description
Specify the variable value limitation for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Base SAS 9.4 Procedures Guide, Second Edition

Base SAS 9.4 Procedures Guide, Second Edition

SAS Documentation
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe

Publisher Resources

ISBN: 9781629593043