US Small-area Life Expectancy Estimates Project (USALEEP)

Estimates of life expectancy at birth e (0) by census tract 2010-2015.

National Center for Health Statistics. 2018. "US Small-Area Life Expectancy Estimates Project (USALEEP): Life Expectancy Estimates File, 2010-2015." Updated September. https://www.cdc.gov/nchs/nvss/usaleep/usaleep.html.

Geography

Polygons are from the USCB TIGER/Line shapefiles.

Data Fields

R Processing Code

library(sf)

polygons = st_read("https://michaelminn.net/tutorials/data/2015-2019-acs-tracts.geojson")

polygons = polygons[,c("FactFinder.GEOID", "ST", "Square.Miles", "geometry")]

polygons$Longitude = round(st_coordinates(st_centroid(polygons))[,"X"], 3)

polygons$Latitude = round(st_coordinates(st_centroid(polygons))[,"Y"], 3)

names(polygons) = c("GEOIDFQ", "ST", "Square_Miles", "geometry", "Latitude", "Longitude")

polygons = polygons[,c("GEOIDFQ", "ST", "Square_Miles", "Latitude", "Longitude", "geometry")]

object.size(polygons)

data = read.csv("2015-usaleep.csv")

data$GEOIDFQ = sprintf("1400000US%011.0f", data[,"Tract.ID"])

data = data[,c("GEOIDFQ", "e.0.", "se.e.0..", "Abridged.life.table.flag")]

names(data) = c("GEOIDFQ", "Life_Expectancy", "Standard_Error", "Flags")

polygons = merge(polygons, data, all.x=T)

st_write(polygons, "2015-usaleep.geojson")

# plot(polygons["Life_Expectancy"], border=NA)