Xanthippe Stevens and Larry Hoyle Policy Research Institute The University of Kansas Visualizing Census Data.

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.
Revision.
第八章 稳健回归. §8.1 异常值 我们给出如下的 SAS 模拟计算的程序: data a1; do i=1 to 10 ; set p183; r=rannor( ) ; if i=6 then y=-2-x+12+r; else y=-2-x+r; output; end; run;
SAS ® graphics in motion Hi! I‘m Barbara… … and I‘m Kristan In the next 5 minutes we will guide you through our video poster „SAS ® graphics in motion“
Controlling SAS Graphics using ANNOTATE Datasets Elizabeth Campagna University of Colorado Denver Colorado Health Outcomes Program Colorado Day – Denver.
MASUG December 5, Agenda Announcements Announcements Tips & Tricks Tips & Tricks Presentation: Presentation: Working Smarter, Not Harder with DDE:
Distance Mapping With SAS® Barbara B. Okerson, PhD HMC.
Planning and Statistics ADVIZOR TRAINING PLANNING AND STATISTICS V.1 1 ADVIZOR Tips.
Example: Price Analysis for Diamond Rings in Singapore Variables Response Variable: Price in Singapore dollars (Y) Explanatory Variable: Weight of diamond.
SAS Lecture 6 – SAS/GRAPH Aidan McDermott, May 3, 2005.
Lesson 13 Another MACRO Example MAP Plotting. Macro Example Goal of Macro named Summary: For a given dataset give summary statistics using PROC CONTENTS,
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.
FORMAT FESTIVAL AN INTRODUCTION TO SAS® FORMATS AND INFORMATS By David Maddox.
Copyright © 2006, SAS Institute Inc. All rights reserved. Randy Poindexter & Scott Huntley Output Delivery and Reporting An Introduction to ODS.
Introduction to SAS/Graph Don Miller 812 Oswald Tower
SAS® Maps as Tools to Display and Clarify Healthcare Outcomes Barbara B. Okerson, HMC, Richmond, VA.
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.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
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.
Using SAS® and Google Earth ™ to Access and Display Air Pollution Data RTSUG Meeting September 10, 2008 Joshua Drukenbrod U.S. EPA Office of Air Quality.
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
TS02 SAS GTL - Injecting New Life into Graphs
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.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
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.
Self Serve Census Data for Neighborhoods and other Custom Aggregations A SAS/IntrNet Applicaton Larry Hoyle Policy Research Institute University of Kansas.
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.
Managing Extended Attributes With an Enterprise Guide Add-In Larry Hoyle, Institute for Policy & Social Research, University of Kansas.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
1 Efficient SAS Coding with Proc SQL When Proc SQL is Easier than Traditional SAS Approaches Mike Atkinson, May 4, 2005.
Using the new Version 8 Template Procedure for Complete Control of SAS Output Style and Format David Ghan Technical Training Specialist SAS, Canada.
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.
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH ® and PROC TABULATE Presented by Aaron Rabushka © Aaron Rabushka 2000.
Copyright © 2006, SAS Institute Inc. All rights reserved. A Sampler of What's New in Base SAS 9.2
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.
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;
1 Introduction to SAS Available at
MASUG September 15, Agenda  Guest Introductions  John Boling – SAS inSchool  Tim Garton – Health Forecasts  Announcements  Tips & Tricks 
©Dofasco Inc., 2004 All rights reserved 1 Using the Output Delivery System October 22, 2004 Presentation to: The Toronto Area SAS Society.
2010 Fresno and Bakersfield Population City or County Name % change Fresno City428,000500,00016% Fresno County800,000930, % Bakersfield247,000347,00041%
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.
Thematic Mapping with Google Maps. "US-KS":{code:"US-KS", name:"Kansas", center:{lat: ,lng: },
CMS SAS Users Group Conference Learn more about THE POWER TO KNOW ® October 17, 2011 PROC GMAP, HTML and You Thomas Kornfield, CMS.
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.
1 SAS ® ODS Technology for Today’s Decision Makers Sunil Gupta Quintiles.
Lesson 13 More SGPLOT examples MAP Plotting Questions.
A Different Point of View with ODS PDF in SAS® 9.3
A DDI3.2 Style for Data and Metadata Extracted from SAS
Institute for Policy and Social Research
Making a Publication-quality Graph in SAS
Hans Baumgartner Penn State University
5.4 Multiple logistic regression
The primary axis scores of each sample from a constrained ordination of principal coordinates (CAP) for the temperature profile of each city are indicated.
Presentation transcript:

Xanthippe Stevens and Larry Hoyle Policy Research Institute The University of Kansas Visualizing Census Data

Conveying Racial Data with PROC GPLOT proc sql; select max(v_value), max(v_value)/4 into :maxval, :scale from race00; quit; axis1 … axis2 order=(0 to &maxval. by &scale.) pattern1 color=white value=msolid; pattern2 color=blue value=msolid; proc gplot data=hilo; plot lo*v_year hi*v_year / overlay areas=2 haxis=axis1 vaxis=axis2; run;

Congressional Redistricting Data with PROC GSLIDE if first.segment then do row=line; line=1; xsys = "2"; ysys = "2"; function="poly"; when= 'A'; style="msolid"; output; end; else do row=line; function = "polycont"; when= 'A'; xsys = "2"; ysys = "2"; line = 1; style="msolid"; output; end; run; data annoplace; length function color $8; set city (keep=x y line type tlid placer segment); by placer segment;

Congressional Redistricting Data with PROC GSLIDE data anno; /*concatenate annotated county and city data*/ set annocnty annoplace; run; goptions reset=all gunit=pct border device=gif gsfname=dist3map ftext=swissb htitle=6 htext=3; proc gslide annotate=anno; run; quit;

Congressional Redistricting Data with PROC GMAP proc gmap map=mapset data=dist3; id cousubr; choro popvar/levels=6 coutline=black; run;

Population Data with PROC GMAP data anno; length function style color$8; set city (keep=x y city value); xsys='2'; ysys='2'; hsys="1"; style='pempty'; position='5'; color='blue'; x=x; y=y; function='pie'; angle = 0; rotate= 360; valrange=&maxval-&minval; size=.5+(value/valrange)*5; line=0; when='A'; output; run;

Population Data with PROC GMAP goptions reset=global gunit=pct border cback=white device=gif570 gsfname=giffile ctext=black ftext=swiss htitle=6 htext=3; title1 'Kansas Cities, Population 2000'; footnote1 j=r 'Source: U.S. Census Bureau '; proc gmap map=countymap data=blanks; id county; choro cfill/discrete nolegend coutline=cxCCCCCC annotate=anno; run; quit;

Data with PROC GMAP and ACTIVEX data mapset; set maps.uscounty; where state=20; length fips 8; fips=county+20000; run; goptions reset=global device=activex transparency; ods html body=”&varname..html” path=ODSOUT; proc gmap map=mapset data=ksdata; id fips; prism &varname./ discrete nolegend coutline=black; run; quit; ods html close;

Drill-down Maps using PROC GMAP and JAVA ods listing close; ods html file="&geo..html" path=ODSOUT archive= ' / k sdata/sashttp/java/mapapp.jar' parameters=("DRILLDOWNMODE"= "HTML") parameters=("DRILLPATTERN"= ' ippbrwww/city.pl?cityfips= {&txtplace}' ) parameters=("BACKCOLOR"= "FFFFFF");

proc gmap map=temp data=temp; id idvar; choro txtplace/discrete nolegend coutline=black; run; ods html close; ods listing; quit; Drill-down Maps using PROC GMAP and JAVA

Proportional Shading Using Data Step and PROC GMAP

value shade __________________ 1 CXF1F1FF 4 CXEBEBFF 9 CXE0E0FF 16 CXD1D1FF 25 CXBEBEFF 36 CXA7A7FF 49 CX8C8CFF 64 CX6C6CFF 81 CX4848FF 100 CX2020FF

Proportional Shading Using Data Step and PROC GMAP goptions colors=( CXF1F1FF CXEBEBFF CXE0E0FF CXD1D1FF CXBEBEFF CXA7A7FF CX8C8CFF CX6C6CFF CX4848FF CX2020FF );

Proportional Shading Using Data Step and PROC GMAP Allen Doniphan <TD bgcolor="#CCCCFF" colspan=15 align="center">PRECIPITATION (INCHES)

Proportional Shading Using Data Step and PROC GMAP /* print the cells */ put '<TD bgcolor="#' shade +(-1) '"> ' ' county cntyfmt. ' ' '<TD align="char“ char="."> ' value best7. ' ';

Glyph Map using PROC GMAP

%macro shades(var=, lablvar=, data=, loshade=0, hishade=255, midval=xmax/2-xmin/2);

Shade from red to yellow if &var < (&midval) then do; imval=int( &loshade + (&var-xmin) * ( (&hishade-&loshade)/((&midval)-xmin) )); shade = 'CX' || 'FF' || put(imval, hex2.) || '00' ; end; Glyph Map using PROC GMAP

Shade from yellow to green else do; imval=int( &loshade + (&var-(&midval)) * ( (&hishade-&loshade)/(xmax-(&midval)) )); shade = 'CX' || put(&hishade - imval + &loshade,hex2.)|| 'FF' ||'00'; end; Glyph Map using PROC GMAP

Data Step Graphics Interface /* FEMALES */ barxleft=&grwdth+ &leftmrg+ &cntrmrg; barxright=floor(&grwdth+ &leftmrg+ &cntrmrg+ barlenF); rc=gdraw('bar', barxleft, barybot, barxright, barytop);

Custom Area SF1 Profile Reports

Defining a new area

AL ******

Defining a new area

SF1 Profile for custom area

Defining an area from an address

Recalling or Using a Previous Defined Area

SF1 Profile for custom area

SAS code for the examples in this paper can be found at Larry Hoyle (785) Xan Stevens (785) Policy Research Institute The University of Kansas 1541 Lilac Lane, Suite 607 Lawrence, Kansas