Skip to content

statecensus: State - Census code

statecensus title image

Description

statecensus is the Census code for the state of residence of the household. See also statefips.

Availability

Sample Years
Basic 1978 - present
ORG 1979 - present

Values

Value Label
11 ME
12 NH
13 VT
14 MA
15 RI
16 CT
21 NY
22 NJ
23 PA
31 OH
32 IN
33 IL
34 MI
35 WI
41 MN
42 IA
43 MO
44 ND
45 SD
46 NE
47 KS
51 DE
52 MD
53 DC
54 VA
55 WV
56 NC
57 SC
58 GA
59 FL
61 KY
62 TN
63 AL
64 MS
71 AR
72 LA
73 OK
74 TX
81 MT
82 ID
83 WY
84 CO
85 NM
86 AZ
87 UT
88 NV
91 WA
92 OR
93 CA
94 AK
95 HI

Code

Variable creation
********************************************************************************
* statecensus
********************************************************************************
* See statefips for coding
lab var statecensus "State - Census code"
notes statecensus: 1978-1993, Unicon: state
notes statecensus: 1994-present, derived from CPS state FIPS code: gestfips
Figure creation
sum year
keep if year == r(max)
gegen tag = tag(statefips)
keep if tag == 1
keep statefips tag statecensus

decode statecensus, gen(stateabb)
tostring statecensus, gen(statecensusstring)
gen labelvar = stateabb + " - " + statecensusstring

maptile tag, geo(statehex) geoid(statefips) labelhex(labelvar) ///
  twopt(graphregion(color(white)) ///
    plotregion(color(white)) ///
    legend(off))

graph export ${variableimages}statecensus_titleimage.svg, replace