cvap_distribute: Estimate CVAP at the Block Level

View source: R/distribute.R

cvap_distributeR Documentation

Estimate CVAP at the Block Level

Description

Assuming citizenship homogeneity within block group race/ethnicity, estimates down from block groups to the block level, proportionally by group if possible, otherwise by total population.

Usage

cvap_distribute(cvap, block)

Arguments

cvap

cvap data at the block group level, using default settings of get_cvap()

block

block data data for the Census before (or the same as) the year of the cvap data

Value

cvap tibble estimated at the block level

Examples

## Not run: 
# Requires API set up with tidycensus
state <- 'DE'
cvap <- cvap_get(state)
de_block <- censable::build_dec(geography = 'block',
state = state, year = 2010, geometry = FALSE)

## End(Not run)
# Alternatively, using example data
state <- 'DE'
cvap <- cvap_get(state)
data('de_block')
cvap_block <- cvap_distribute(cvap, de_block)

cvap documentation built on April 16, 2022, 9:05 a.m.