PR PROC G C GMA MAP t P to visualiz visualize e 30 y 30 year - - PowerPoint PPT Presentation

pr proc g c gma map t p to visualiz visualize e 30 y 30
SMART_READER_LITE
LIVE PREVIEW

PR PROC G C GMA MAP t P to visualiz visualize e 30 y 30 year - - PowerPoint PPT Presentation

PR PROC G C GMA MAP t P to visualiz visualize e 30 y 30 year ears o s of US Census da f US Census data a DV DV10 Evian Fernandez Garcia Astellas Pharma Europe BV Leiden, The Netherlands The Data US Census Data. Years: 1980,


slide-1
SLIDE 1

PR PROC G C GMA MAP t P to visualiz visualize e 30 y 30 year ears o s of US Census da f US Census data a

DV DV10

Evian Fernandez Garcia Astellas Pharma Europe BV Leiden, The Netherlands

slide-2
SLIDE 2

The Data

  • US Census Data.
  • Years: 1980, 1990, 2000 and 2010.
  • States: California, Nevada, Arizona, Utah, New Mexico, Colorado,

Texas, Oklahoma, Kansas, Louisiana, Arkansas, Mississippi, Alabama, Georgia, Tennessee, North Carolina, South Carolina, Florida.

  • Race: Hispanic, White*, Black*, Other*. (* means non-Hispanic)
  • Origin of Hispanics: Mexican, Puerto Rican, Cuban, Other.
  • PopulaYon counts at State and County levels.
  • New Mexico, Oklahoma and South Carolina for 1980 are missing.
  • The county of Yuma was divided in two counYes a[er 1980.
slide-3
SLIDE 3

14.1% - 13.5% 72.2% - 54.6% 10.9% - 23.7% 2.9% - 8.2%

slide-4
SLIDE 4

U.S. Decennial Census. Hispanics(%)

year=1980

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50

U.S. Decennial Census. Hispanics(%)

year=1990

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50

U.S. Decennial Census. Hispanics(%)

year=2000

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50

U.S. Decennial Census. Hispanics(%)

year=2010

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50

46.3% 37.6% 37.6% 26.5% 29.7% 22.5%

slide-5
SLIDE 5

PROC GMAP DATA= stat3 MAP= mapssas.us; ID statecode; CHORO percc / LEVELS= 8 UNIFORM LEGEND= legend1; BY year; RUN;

slide-6
SLIDE 6

U.S. Decennial Census. Hispanics(%)

year=1980

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1990

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2000

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2010

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

slide-7
SLIDE 7

Texas Florida New Mexico California Arizona Nevada

slide-8
SLIDE 8

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40)

slide-9
SLIDE 9

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1980 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=1990 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2000 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Mexican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Puerto Rican

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Cuban

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

U.S. Decennial Census. Hispanics(%)

year=2010 orig=Other

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50 [50, 75) [75,100]

slide-10
SLIDE 10

PROC GMAP DATA= stat5 MAP= outline2; ID state county; CHORO percc / LEVELS= 8 UNIFORM LEGEND= legend1 COUTLINE= GRAYF0; BY year orig; RUN;

slide-11
SLIDE 11

U.S. Decennial Census. Hispanics(%)

year=2010

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) [40, 50) Majority, <50

U.S. Decennial Census. Hispanics(%)

year=2020

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) Majority, <50 [50, 75)

40.6%

U.S. Decennial Census. Hispanics(%)

year=2030

Hispanics(%)

[0, 10) [10, 20) [20, 30) [30, 40) Majority, <50 [50, 75)

42.0%

slide-12
SLIDE 12

PROC MIXED DATA= stat2; CLASS race id state; MODEL count = race race*year / NOINT S; REPEATED / SUB= id; RANDOM int / SUB= id; RUN;

slide-13
SLIDE 13
slide-14
SLIDE 14

U.S. Decennial Census. Race Pies by State(%)

year=1980

U.S. Decennial Census. Race Pies by State(%)

year=1990

U.S. Decennial Census. Race Pies by State(%)

year=2000

U.S. Decennial Census. Race Pies by State(%)

year=2010

slide-15
SLIDE 15

DATA anno; FORMAT color $10.; /* Get the coordinates for the center of the state from the MAPS.USCENTER data set */ MERGE stat3(IN=a) maps.uscenter; BY state; IF a; /* X and Y coordinate system is set to data values */ xsys='2'; ysys='2'; /* Apply the annotation after the procedure output */ WHEN='a'; /* Draw a pie */ function='pie'; /* Color the slices for each race */ SELECT (race); WHEN (1) color= 'black'; WHEN (2) color= 'red'; WHEN (3) color= 'darkgreen'; WHEN (4) color= 'darkblue'; OTHERWISE; END; /* Draw the portion of the pie */ rotate=360*perc/100; size= (round(log2(count_sum),1)- 19)/2.2; /* Use a solid pattern fill */ style='solid'; line=0; RUN; PROC GMAP DATA= anno MAP= mapssas.us ID state; CHORO state / nolegend annotate=anno coutline=black; BY year; RUN;

slide-16
SLIDE 16

Conclusions

  • Not possible (in an easy way) to merge two of more areas inside a geographical

level, e.g. two counYes, and plot them as such. This can be done using PROC GREMOVE.

  • At county level, the SAS map mapssas.uscounty do not contain the names of the

counYes and states, only the respecYve code numbers.

  • There are no opYons to combine different maps. This have to done through

programming, modifying coordinates.

  • There are no opYons to plot different type of lines at different geographical

levels, e.g., black outline for the US and grey outline for the States. This can be done using the ANNO opYon in CHORO.

  • There are no opYons to label geographical areas. This can be done using the

ANNO opYon in CHORO.

  • This SAS procedure is not for the beginner programmer if we want to use several

advance opYons.

slide-17
SLIDE 17

REFERENCES hcps://www.census.gov/ hcps://support.sas.com/sassamples/graphgallery/PROC_GMAP.html CONTACT INFORMATION Evian Fernandez Garcia Astellas Pharma Europe BV evian.fernandezgarcia@astellas.com