intersect-community-data icon indicating copy to clipboard operation
intersect-community-data copied to clipboard

for 2020 consider family by race

Open npr99 opened this issue 8 months ago • 0 comments

Table P16 in 2020 has household types by race and Hispanic categories that include each race and Hispanic or not Hispanic.

https://api.census.gov/data/2020/dec/dhc/groups/P16S.html

` family_byrace_P16_2020_varstem_roots = {'metadata' : { 'concept' : 'Family', 'byracehispan' : dec2020byracehispan_groups_varstems, 'graft_chars' : ['race','hispan'], 'new_char': ['familybyP16'], 'char_vars' : ['familybyP16','byracehispan'], 'group' : 'P16', 'vintage' : '2020', 'dataset_name' : 'dec/dhc', 'for_geography' : 'block:*', 'unit_of_analysis' : 'household', 'mutually_exclusive' : False, 'mutually_exclusive_dict' : dec2020byracehispan_groups_varstems_mxpt1, 'indexvar' : ['GEO_ID','state','county','tract','block'], 'countvar' : 'hucount', 'notes' : {''} }, 'P16' : { '_002N' : {'familybyP16' : 1, 'label' : "Family Households"} } }

""" Variables to identify household type When grafting new variables need to do 1 at a time """

hhtype_byrace_P16_2020_varstem_roots = {'metadata' : { 'concept' : 'HOUSEHOLD TYPE', 'byracehispan' : dec2020byracehispan_groups_varstems, 'graft_chars' : ['race','hispan','family','numprec'], 'new_char': ['race','hispan','numprec','family','hhtype'], 'char_vars' : ['hhtype','family','numprec','byracehispan'], 'group' : 'P16', 'vintage' : '2020', 'dataset_name' : 'dec/dhc', 'for_geography' : 'block:*', 'unit_of_analysis' : 'household', 'mutually_exclusive' : False, 'mutually_exclusive_dict' : dec2020byracehispan_groups_varstems_mxpt1, 'indexvar' : ['GEO_ID','state','county','tract','block'], 'countvar' : 'hucount', 'notes' : {''} }, 'P16' : { '_003N' : {'hhtype' : 1, 'family' : 1, 'numprec' : -999, 'label' : "Husband-wife family"}, '_005N' : {'hhtype' : 2, 'family' : 1, 'numprec' : -999, 'label' : "Male householder, no wife present"}, '_006N' : {'hhtype' : 3, 'family' : 1, 'numprec' : -999, 'label' : "Female householder, no husband present"}, '_008N' : {'hhtype' : 4, 'family' : 0, 'numprec' : 1, 'label' : "Householder living alone"}, '_009N' : {'hhtype' : 5, 'family' : 0, 'numprec' : -999, 'label' : "Householder not living alone"}, } } `

npr99 avatar Feb 20 '25 17:02 npr99