Title: | Estimate Census Block Populations for 2020 |
---|---|
Description: | Uses FCC block-level population estimates from 2010--2019, which are based on new roads and map data, along with decennial Census and ACS data, to estimate 2020 block populations. |
Authors: | Cory McCartan [aut, cre] |
Maintainer: | Cory McCartan <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.0.9000 |
Built: | 2024-10-17 04:30:14 UTC |
Source: | https://github.com/CoryMcCartan/blockpop |
Downloads population and voting-age population by race at the block level for the 2010 decennial Census. API key required: https://api.census.gov/data/key_signup.html.
bl_download_2010_vars(state)
bl_download_2010_vars(state)
state |
the two-letter abbreviation of the state to get data for. |
A data frame with the population counts
## Not run: # API key required bl_download_2010_vars("WA") ## End(Not run)
## Not run: # API key required bl_download_2010_vars("WA") ## End(Not run)
Downloads population and voting-age population by race at the block group level for the 2019 5-year American Communities Survey. API key required: https://api.census.gov/data/key_signup.html.
bl_download_acs_vars(state)
bl_download_acs_vars(state)
state |
the two-letter abbreviation of the state to get data for. |
A data frame with the population counts
## Not run: # API key required bl_download_acs_vars("WA") ## End(Not run)
## Not run: # API key required bl_download_acs_vars("WA") ## End(Not run)
bl_download_fcc(path, url = "https://www.fcc.gov/file/19314/download")
bl_download_fcc(path, url = "https://www.fcc.gov/file/19314/download")
path |
the path to extract the CSV (~1.3 gigabytes) to. |
url |
the URL to the FCC data https://www.fcc.gov/staff-block-estimates |
The path, invisibly.
## Not run: bl_download_fcc("data-raw/fcc.csv") ## End(Not run)
## Not run: bl_download_fcc("data-raw/fcc.csv") ## End(Not run)
Uses the average growth rate over the specified window to impute the 2020 population. Final estimates are rescaled to match the Census April 1, 2020 apportioment populations at the state level.
bl_est_2020(data, forecast_start = 2010)
bl_est_2020(data, forecast_start = 2010)
data |
the output of |
forecast_start |
the year to use as the base year. E.g. if 2013, then the average growth rate from 2013–2019 will be used. |
A modified data frame with just 2010, base year, and 2020 estimates.
## Not run: d = bl_load_state("WA") bl_est_2020(d, 2010) ## End(Not run)
## Not run: d = bl_load_state("WA") bl_est_2020(d, 2010) ## End(Not run)
Creates estimates for race/ethnicity variables for blocks in 2020, based on
the 2010 Census (bl_download_2010_vars()
) and 2019 ACS
(bl_download_acs_vars()
) data.
bl_harmonize_vars(block_d, census_d, acs_d)
bl_harmonize_vars(block_d, census_d, acs_d)
block_d |
the output of |
census_d |
the output of |
acs_d |
the output of |
The racial breakdown of total and voting-age population are proportionally adjusted within block groups to match the ACS block-group percentages. Then these percentages are applied to the newly estimated block populations. Finally, the block race populations are rescaled so that the block populations match the 2020 estimates. This is essentially a 1-round iterative proportional fitting (IPF) procedure.
A data frame of 2020 block-level estimates for the variables in
census_d
.
bl_load_state(state, path = "https://www.fcc.gov/file/19314/download")
bl_load_state(state, path = "https://www.fcc.gov/file/19314/download")
state |
the two-letter abbreviation of the state to get data for. |
path |
the path to the FCC data. Defaults to the online ZIP file, but
can point to a local zip file or an extracted CSV (from e.g. |
A data frame with the population estimates.
## Not run: bl_load_state("WA") ## End(Not run)
## Not run: bl_load_state("WA") ## End(Not run)