Impute household income for missing responses
impute_income_pnta.RdImputes household income where missing or 'prefer not to answer', using survey and household variables. Use for cleaning and expanding income data.
Details
Prepares household and person data for imputation.
Uses model variables and ACS reference for prediction.
Handles missing block group GEOIDs and reference levels.
Returns data.table with imputed income and labels.
Assumes input is a data.table and value labels are complete.
Model form:
income_estimation ~ f_0_24999 + f_25000_49999 + f_50000_74999 + f_1000000_199999 + f_200000_plus + own_home + single_family_home + nonwadult_n + child_n + ft_grad_n + pt_grad_n + ft_bachelors_n + pt_bachelors_n + ft_no_college_n + pt_no_college_n + head_under_35_n + head_65_plus_n
Settings
report_dir (direct): directory for report output.
outputs_dir (direct): directory for imputation output.
See also
get_income_bounds, prepare_acs_income
Other imputation utilities:
calculate_acs_proportions(),
get_acs_ethnicity(),
get_acs_race(),
get_hh_person_sums(),
impute_ethnicity(),
impute_gender(),
impute_income_nonrelatives(),
impute_race(),
make_binary(),
prep_hhs_for_income_imputation(),
prepare_acs_income(),
prepare_ethnicity_labels(),
prepare_ethnicity_survey_data(),
prepare_impute_targets(),
prepare_income_fit_dt(),
prepare_persons_dt(),
update_hh_income_imputed()