Takes the weighted average of the provided income measures, where the weights are the county's share of the total CoC population. The default measures are: median household income, median family income, and median individual earnings (pay from wages and salary).
build_coc_income(yr, county_crosswalk, income_variables)
yr | A numeric with the year of the data. |
---|---|
county_crosswalk | A data frame with the county to CoC crosswalk. |
income_variables | A character vector (optionally named with variable names) with the ACS variable codes. |
A data frame:
coc_number
: CoC_Number
year
: Year
Variables: Weighted average of the provided variables (weights are county share of the CoC population)