Skip to content

cbsafips: Core Based Statistical Area - FIPS code

cbsafips title image


cbsafips is the FIPS metropolitan area code (CBSA) of the household. See also cbsasize.


Sample Years
Basic 2004m5 - present
ORG 2004m5 - present

Many specific metropolitan areas are not identified in the CPS data (see also countyfips).


This variable is the original code on file and is not consistent over time.


Value Label
0 Not identified


Variable creation
gen cbsafips = .

if $monthlycps == 1 {
    if tm(2004m5) <= $date {
        replace cbsafips = gtcbsa

lab var cbsafips "Core Based Statistical Area - FIPS code"
lab def cbsafips 0 "Not identified"
lab val cbsafips cbsafips
notes cbsafips: 2004m5-present, CPS: gtcbsa
notes cbsafips: Not consistent over time
Figure creation
sum year
local maxyear = r(max)
keep if year == `maxyear'

keep if age >= 16 & age <= 64
rename cbsafips cbsa2013

gcollapse (count) n=year, by(cbsa2013)

local color1 123 50 148
local color2 194 165 207
local color3 166 219 160
local color4 0 136 55

#delimit ;
maptile n,
  geo(cbsa2013) fcolor(BrBG) ndfcolor(gs12)
    title("CBSA identified sample sizes of individuals ages 16-64 in `maxyear'", size(medium))
#delimit cr;

graph export ${variableimages}cbsafips_titleimage.svg, replace