SAS® Maps as Tools to Display and Clarify Healthcare Outcomes Barbara B. Okerson, HMC, Richmond, VA.

Slides:



Advertisements
Similar presentations
Zhongmin Li and Geeta Mahendra
Advertisements

Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
With Microsoft ® Excel 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 GO! with Microsoft ® Excel 2010 Chapter 3 Analyzing Data with Pie.
McGraw-Hill/Irwin The O’Leary Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lab 2 Charting Worksheet Data.
Controlling SAS Graphics using ANNOTATE Datasets Elizabeth Campagna University of Colorado Denver Colorado Health Outcomes Program Colorado Day – Denver.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Microsoft Excel 2003 Illustrated Complete A Worksheet Formatting.
Distance Mapping With SAS® Barbara B. Okerson, PhD HMC.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 3 1 Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional- Looking.
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.
SAS Lecture 6 – SAS/GRAPH Aidan McDermott, May 3, 2005.
Let SAS Do the Coding for You! Robert Williams Business Info Analyst Sr. WellPoint Inc.
PROC_CODEBOOK: An Automated, General Purpose Codebook Generator
How to Build Tabular Dashboards Using Proc Report
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.
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
Introduction to SAS/Graph Don Miller 812 Oswald Tower
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
Microsoft Office Illustrated Introductory, Premium Edition A Worksheet Formatting.
Microsoft Office XP Illustrated Introductory, Enhanced A Worksheet Formatting.
Creating Maps with SAS/GRAPH - Drill Downs, Pop-Ups, and Animation.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional-Looking Worksheet.
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
TS02 SAS GTL - Injecting New Life into Graphs
Microsoft FrontPage 2003 Illustrated Complete Using Office Components.
Microsoft Office Illustrated Introductory, Premium Edition with Charts Working.
Introduction to PROC GMap Presentation by Andrea Boan BMTRY 789.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
SAS Mapping functionality to measure and present the Veracity of Location Data.
Microsoft ® Office Excel 2007 Working with Charts.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Introduction to ArcGIS for Environmental Scientists Module 1 – Data Visualization Chapter 3 – Symbology and Labeling.
Copyright © 2005, SAS Institute Inc. All rights reserved. Effective Use of SAS/GRAPH® Stored Processes Pat Berryman Senior Software Manager Data Visualization.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
CTS130 Spreadsheet Lesson 9 - Building Charts. What is a Chart? A chart is a visual display of information in a worksheet. Charts can help you make comparisons,
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
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.
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH ® and PROC TABULATE Presented by Aaron Rabushka © Aaron Rabushka 2000.
Statistical Graphics for the SAS System Computing for Research I 01/29/2014 Nathaniel L Baker.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Excel 2007 Lab 2 Charting Worksheet Data.
PowerPoint Lesson 6 Working with Tables and Charts Microsoft Office 2010 Advanced Cable / Morrison 1.
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 
Mapping local community assets online Read this if you want to learn how to: 1)Create online maps of local community assets using Google Maps 2)Allow other.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
José Aponte Public Health Advisor Module 7: Mapping 12 June 2012 Epi Info™ 7 Introductory Training Office of Surveillance, Epidemiology, and Laboratory.
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.
SAS/GRAPH The Basics. Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 4 Inserting.
Applying Borders and Shading Adding Bullets and Numbering.
CMS SAS Users Group Conference Learn more about THE POWER TO KNOW ® October 17, 2011 PROC GMAP, HTML and You Thomas Kornfield, CMS.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Microsoft Office 2013: In Practice Chapter 2 Illustrating Slides with Pictures and Information Graphics Copyright © 2014 by The McGraw-Hill Companies,
Determination of efficient pricing periods using SAS prepared by Voytek Grus for SAS user group, Halifax April 30, 2010.
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.
Geocoding Chapter 16 GISV431 &GEN405 Dr W Britz. Georeferencing, Transformations and Geocoding Georeferencing is the aligning of geographic data to a.
Lesson 13 More SGPLOT examples MAP Plotting Questions.
Microsoft Excel 2003 Illustrated Complete
Making a Publication-quality Graph in SAS
Presentation transcript:

SAS® Maps as Tools to Display and Clarify Healthcare Outcomes Barbara B. Okerson, HMC, Richmond, VA

Abstract Changes in healthcare and other industries often have a spatial component. Maps can be used to convey this type of information more quickly than tabular reports and other non-graphical formats. SAS®, SAS/GRAPH and ODS graphics provide SAS programmers with the tools to display spatial data in a meaningful manner that aids in understanding of changes that have transpired. This presentation illustrates the creation of a number of different maps for displaying change over time with examples from the healthcare arena. Examples include choropleth, bubble, and distance maps and introduce the new GEOCODE procedures.

Purpose Identify population/demographic differences Identify providers/provider areas in need of improvement Identify regional differences in healthcare delivery Identify population differences Identify changes in outcomes by demographics

Maps as images When generating a map as an image, the user has extensive control over the map's appearance. These maps allow users to do the following within the procedure: For block maps, specify: Block width, outline colors for blocks and map areas, the angle of view; For choropleth maps, specify: colors and patterns that fill the map areas, and ranges for the response variable. For prism maps, specify: ranges for the response values, and specify the angle of view. Hide the legend, or change its features; Add titles and footnotes to the map; Use annotations to enhance the map; and Create non-spatial maps.

Types of maps Choropleth Block Prism

Types of maps (cont.) Area Other

ACTIVE-X and JAVA Both ActiveX and Java allow: A pop-up box that displays data values as mouse moves over area; Panning, rotating, or zooming the map; Changing the use of color in map areas, legend or background; Hiding the legend, or changing its features; and Displaying or hiding a background image (when used). Additionally, Java allows: Changing the map type so that values for the response data are represented as: blocks that are set on the map areas, patterns or colors in the map areas, or raised polygons in the map areas.

Pop-ups and flyovers Java- popup Active-X - flyover

Included maps Purpose – understand health care outcomes Choropleth with graphic markers Choropleth color patterns Population distribution Fetal mortality rates Medical costs Geocoding – non-geographic example Bubble map – bubbles for linked labels National county map

GMAP SAS code proc gmap map=maps.us data=maprank; id state ; choro raterank / levels=5 coutline=black legend=legend1 annotate=labels; run; quit;

Annotate SAS code data labels; length function color $ 8 text $ 25; retain function 'label' xsys ysys '2' hsys '3' when 'a'; set office2; text=put(pass,passfmt.); position='5'; color='red'; size=7; style='Marker'; output; run;

Annotate SAS code data labels; length function color $ 8 text $ 1 style $ 15; retain function 'label' xsys ysys '2' hsys '3' when 'a'; set office2; if pass=1 then do; text=put(pass,passfmt.); position='B'; color='blue'; size=4; style='"Webdings"'; output; end; if pass=2 then do; text=put(pass,passfmt.); position='B'; color='red'; size=5.5; style='"Webdings"'; output; end; run;

Annotate SAS Code data labels; length function $ 8 style $ 15; retain xsys ysys '2' hsys '3' when 'a'; set office2; function='move'; output; function='image'; style='fit'; imgpath='r:\bokerson\sas global forum\sgf 2010\office.bmp';x=x+0.05; y=y+0.05; output; run;

Map color patterns SAS provides many options Default list Specify color list (color name, RGB value, HLS Value and Hex Value) Specify pattern list (color name, RGB value, HLS Value and Hex Value) %colorscale, a SAS-supplied macro: PH/OTHER-COLOR.HTML PH/OTHER-COLOR.HTML Safe for black/white: colors=(white bwh vpab vlipb lib) or colors=(bwh vpab vlipb lib virp)

Color references SAS TS /ts688.html 8/ts688.html

Choropleth map – population change

Color patterns - greens pattern1 value=msolid color=cxFFFF66; pattern2 value=msolid color=cxCCFF00; pattern3 value=msolid color=cx66FF00; pattern4 value=msolid color=cx009900; pattern5 value=msolid color=cx666600;

Choropleth map – intervention impact

Color patterns - oranges goptions colors=(white cxFFDAB9 cxFFA07A cxF2691E cxB85800) Note: pattern statements take precedence over goptions – if using goptions do not use pattern.

Choropleth – change in cost

Color patterns - mixed pattern1 v = msolid c =LemonChiffon; pattern2 v = msolid c = cxffcc00; pattern3 v = msolid c = orange; pattern4 v = msolid c = cxd9892b; pattern5 v = msolid c = vpag; pattern6 v = msolid c = YellowGreen ; pattern7 v = msolid c = MediumSeaGreen ; pattern8 v = msolid c = brown; pattern9 v = msolid c = CX ; pattern10 v = msolid c = CX33070F ;

Member to provider distance: GPLOT, GEOCODE, and GEODIST

GEOCODE SAS code proc geocode plus4 lookup=lookup.zip4 data=work.members out=work.geo_members; run; quit;

GEODIST function data geo_members ; set geo_members; retain prov_x prov_y; set geo_members; if _n_ = 1 then do; prov_x = x; prov_y = y; end; else dist = geodist( y, x, prov_y, prov_x, ‘DM’ ); drop prov_x prov_y; run;

GPLOT SAS Code goptions reset=all gunit=pct border ftext='Arial' ftitle='Arial' htext=4 htitle=7 ctext=black colors=(cx7BA7E1 cxD80000 cx00CC66 cxFFFF00 ltgray) ; symbol1 interpol=join; title 'Miles to Choice of Provider'; axis1 order=(0 to 15 by 1) offset=(0,0) minor=none label=none; axis2 order=(0 to 100 by 20) offset=(0,0) major =(height=1) label=( j=r 'Percent' j=r 'of Members'); proc gplot data=provider2; plot p5*interval p4*interval p3*interval p2*interval p1*interval /overlay haxis=axis1 autovref autohref cvref=black chref=black lautovref=34 lautohref=34 vaxis=axis2 vminor=3 caxis=black areas=5; run; quit;

Health Center Locations Bubble map with Google Maps links for health center locations

Health center location SAS code proc sql; create table circle_anno as select loc_ccnv.zip, zipcode.city, -1*zipcode.x as longitude, zipcode.y as latitude from loc_ccnv left join sashelp.zipcode on loc_ccnv.zip=zipcode.zip; quit; run; /* Convert degrees to radians, */ data circle_anno; set circle_anno; length city $ 30; city=scan(zipcity(zip),1,','); x=atan(1)/45 * longitude; y=atan(1)/45 * latitude; run;

Google Maps link

Google Maps link SAS code data circle_anno; length function style color $ 8 position $ 1 text $ 20 html $1024; retain xsys ysys '2' hsys '3' when 'a'; set circle_anno; html='title='||quote( trim(left(propcase(city)))||' ('||trim(left(zip))||')' ) ||' '||'href='||quote(' m(left(put(zip,z5.)))); function='pie'; color='graycc'; style='psolid'; position='5'; rotate=360; size=3; anno_flag=1; output; function='label'; position='B'; style='"Arial"'; text=trim(left(city)); color='black'; cbox='white'; size=2; anno_flag=3; output; run;

U.S. map with county boundaries

Proc RANK SAS code proc rank data=mapbh out=mapbhrank group=5; var pctbh; ranks pctbhgrp; run; data mapbhrank(rename=(stfips=state cntyfips=county)); set mapbhrank; pctbhgrp=pctbhgrp+1; run; proc sql; create table bhdatamap as select * from maps.uscounty m left join mapbhrank r on m.state=r.state and m.county=r.county; run; quit;

References Ingenix Geo Networks. rks_brochure.pdf. Accessed February rks_brochure.pdf Massengill D, Odom E. “PROC GEOCODE: Creating Map Locations from Your Data.” SAS Global Forum Osborne, Anastasiya. “Let Me Look At It! Graphic Presentation of Any Numeric Variable.” SAS Global Forum SAS Institute, Inc Accessed October SAS Institute Inc SAS OnlineDoc® Cary, NC: SAS Institute Inc.

Contact info Barbara B. Okerson, Ph.D., CPHQ, FAHM Senior Health Information Consultant National Accounts Outcomes Health Management Corporation (HMC) 8831 Park Central Drive, Suite 100 Richmond, VA Office: Fax:

Questions?