CMS SAS Users Group Conference Learn more about THE POWER TO KNOW ® October 17, 2011 PROC GMAP, HTML and You Thomas Kornfield, CMS.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

Zhongmin Li and Geeta Mahendra
Copyright © 2006, SAS Institute Inc. All rights reserved. Think FAST! Use Memory Tables (Hashing) for Faster Merging Gregg P. Snell Data Savant Consulting.
Internet Basics & Way Beyond!
XML in a SAS World Mike Molter d-Wise Technologies.
How SAS implements structured programming constructs
Agilent’s MX QPCR Software Tutorial Field Application Scientist
Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Format a Workbook Lesson 2 – Microsoft Excel 2010.
Controlling SAS Graphics using ANNOTATE Datasets Elizabeth Campagna University of Colorado Denver Colorado Health Outcomes Program Colorado Day – Denver.
Xanthippe Stevens and Larry Hoyle Policy Research Institute The University of Kansas Visualizing Census Data.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Excel 2003 Lab 2 Charting Worksheet Data.
PROC_CODEBOOK: An Automated, General Purpose Codebook Generator
XP 1 Microsoft Office Excel Developing a Professional-Looking Worksheet.
The gchart Procedure The gchart Procedure is used to create bar charts of various types (it can also create pie charts. It’s most basic form would look.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Copyright © 2006, SAS Institute Inc. All rights reserved. Randy Poindexter & Scott Huntley Output Delivery and Reporting An Introduction to ODS.
© 2002 ComputerPREP, Inc. All rights reserved. Word 2000: Working with Long Documents.
Copyright © 2010, Meta-Xceed, Inc. All rights reserved. BI Flash and all other Meta-Xceed Inc. product or service names are registered trademarks or trademarks.
SAS® Maps as Tools to Display and Clarify Healthcare Outcomes Barbara B. Okerson, HMC, Richmond, VA.
11 Chapter 3: Getting Started with Tasks 3.1 Introduction to Tasks and Wizards 3.2 Creating a Frequency Report 3.3 Generating HTML, PDF, and RTF Output.
Drill-down Graphs By Heather Hoffman. Family Practice Department Project  Create drill-down graphs that depict % of patients for each CCS* over a given.
Dashboards With PROC GKPI September 25, 2009 Barry Hong
1 Putting Croatia on the Map: 2001 Census Data Made Available on the Web in Graphic Form Vesna Lužar-Stiffler, Ph.D. University Computing Centre and CAIR.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
Carolina Environmental Program UNC Chapel Hill The Analysis Engine – A New Tool for Model Evaluation, Sensitivity and Uncertainty Analysis, and more… Alison.
GIS 1 GIS Lecture 4 Geodatabases. GIS 2 Outline Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Geodatabases.
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
Creating Maps with SAS/GRAPH - Drill Downs, Pop-Ups, and Animation.
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
Introduction to PROC GMap Presentation by Andrea Boan BMTRY 789.
Math 3400 Computer Applications of Statistics Lecture 1 Introduction and SAS Overview.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
SAS Mapping functionality to measure and present the Veracity of Location Data.
Copyright © 2006, SAS Institute Inc. All rights reserved. SAS Enterprise Guide Old Proc – New Tricks? Tim Trussell Academic Program, SAS Canada world diabetes.
Copyright © 2005, SAS Institute Inc. All rights reserved. Effective Use of SAS/GRAPH® Stored Processes Pat Berryman Senior Software Manager Data Visualization.
SAS Software Version 8 The Output Delivery System.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
Using the new Version 8 Template Procedure for Complete Control of SAS Output Style and Format David Ghan Technical Training Specialist SAS, Canada.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
Statistical Graphics for the SAS System Computing for Research I 01/29/2014 Nathaniel L Baker.
Intro to Excel - Session 4.11 Tutorial 4 - Session 4.1 Creating Charts.
Chapter 5 Working with Multiple Worksheets and Workbooks
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Excel 2007 Lab 2 Charting Worksheet Data.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
MASUG September 15, Agenda  Guest Introductions  John Boling – SAS inSchool  Tim Garton – Health Forecasts  Announcements  Tips & Tricks 
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Creating Geographic Rating Area Maps: How to Combine Counties, Split Counties, & use Zip Code Boundaries Rick Andrews Office of the Actuary Centers for.
SAS ® is a very powerful tool when producing Graphics. A single graphical data step can easily create a Kaplan Meier Plot, but there is no single graphical.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
SAS Programming Training Instructor:Greg Grandits TA: Textbooks:The Little SAS Book, 5th Edition Applied Statistics and the SAS Programming Language, 5.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
CMS SAS Users Group Conference Learn more about THE POWER TO KNOW ® October 17, 2011 Using SAS® to Create Custom Healthcare Graphics Barbara B. Okerson.
Behind the Scenes with SAS®: Using Customer Graphics in SAS® Output Louise Hadden Abt Associates Inc.
This screen may be skipped altogether if the user chooses a report from the server and clicks Ad Hoc or Edit or whatever. Also, the next screen would ordinarily.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
Better Metadata Through SAS® II: %SYSFUNC, PROC DATASETS, and Dictionary Tables.
OVERVIEW Objectives Follow a design document to prepare images for inclusion in a Web page Run a batch process to prepare multiple images in one step Use.
Formatting Worksheet Elements
Lesson 13 More SGPLOT examples MAP Plotting Questions.
A Different Point of View with ODS PDF in SAS® 9.3
Computing for Research I 01/26/2011 N. Baker
Space Manager Search and Filter View
P 72 (PDF 76) Figure 32 Information item name Rules in columns
Presentation transcript:

CMS SAS Users Group Conference Learn more about THE POWER TO KNOW ® October 17, 2011 PROC GMAP, HTML and You Thomas Kornfield, CMS

Organization of Presentation Basics of PROC GMAP How to enhance appearance of maps Create maps with alternative groupings of data Create HTML maps with drill down capabilities 2

What PROC GMAP Does Can be used to show data patterns by various levels of geography Creates two and three dimensional maps Three main types of maps – Choropleth, basic two dimensional map – Prism map, three dimensional map – Surface map This presentation will look only at choropleth maps 3

PROC GMAP Syntax PROC GMAP MAP=map-data-set DATA=response-data-set ID id-variable(s); CHORO response-variable(s) / ; RUN; QUIT; include: Discrete, Legend, Annotate 4

Basic Example proc sort data=maps.us out=us (keep=state) nodupkey; by state; run; data us2; set us; /* use MOD function to get even numbered states * if mod(state,2)=0 then type=1; else type=2; run; proc gmap data=us2 map=maps.us; id state; choro type/nolegend; run; quit; 5

Map Patterns PATTERN c= v= – x is the pattern number, max is 20 V=s for solid colors V=m where – y=number of lines – c=n or x, n means lines are to be drawn at an angle, x means lines are criss-crossed – z=angle to draw lines is an excellent source for map colors 6

Example of Map Patterns Maryland County Population, 2010 pattern1 v=s c=red; pattern2 v=m1n00 c=blue; pattern3 v=m3n90 c=black; pattern4 v=m5x00 c=green; 7

Maps and Legends 8 Three parts – Set Appearance of Legend Across: Number of columns to use for legend entry Down: Number of rows to use for legend entry – Position the Legend Position=( ) Default is position =(bottom center outside) Mode= protect | reserve | share – Set Text Specifications for the Legend (e.g., font type, size, color)

Comparison of Legend Placement, Maps of CMS Regions Bottom, Center, Outside Top, Center, Outside 9

Adding Labels to Maps: Annotate Facility Create a file that contains the information to be used as labels Need to include in the file the following: 10 – Function – Text – Color – Style – Size – HSYS – X Coordinate – XSYS – Y Coordinate – YSYS – Position

Labeling Cities in Maryland 11 data citystar_md; length function color $ 8 position $ 1 text $ 20 style $ 30; retain xsys ysys '2' hsys '3' when 'a‘; set maps.uscity; if city in ("Baltimore","Columbia","Annapolis“,"Hagerstown“, "Rockville","Frederick") and state=24; /* Create the observation for a star */ function='symbol'; style='marker'; text='V‘; color='yellow'; size=1.5; position='5'; output; /* Create the observation for a city */ function='label'; style="'Arial/Bold'"; text=city; color='black'; size=4; position='2'; output; run;

Maryland County Population, 2010 (with cities labeled) 12

Positioning Labels The position variable in an annotate data set tells SAS where to place the text relative to the X Y coordinates. Using a position of ‘5’ puts the text on the point itself, and ‘9’ would be to the lower right,

Creating Map Output Files Can create maps as GIF, JPEG, PNG – GIF file (device=gif) – JPEG file (device=jpeg – PNG file (device=png) Can use these files in HTML files Can also create PDF files using ODS – ods listing close; – ods pdf file=“K:\...” notoc; – proc gmap data=… 14

Create maps with different boundaries Use PROC GREMOVE in order to remove the internal boundaries Example: – File (called pdp) that has states assigned to PDP regions – Merge, on state, with SAS generated U.S. map – Sort merged file on PDP regions – Remove internal outlines from map 15

PDP Region Map 16

Create maps for HTML Requires use of ODS Can use the following drivers – Gif – Java – Activex – HTML Can create – pop ups – drill downs 17

Demonstration 18

Additional Resources “The Basics of Map Creation with SAS/GRAPH®”, Mike Zdeb, “Tips and Tricks IV: More SAS/Graph Map Secrets.” SAS Global Forum 2009 paper and example source code download. SAS Institute Inc. 19