10 likes | 132 Vues
This module outlines the process of reading and manipulating 2010 Census data using VBA macros in MS Access. It covers hardcoded distributions of traveler types based on demographic data, including population by sex and age, household type, and group quarters. The methodology involves populating lists of residents—adults and children—formulating different household sizes, and assigning traveler types according to state statistics. Additionally, resident income brackets are assigned and stored in a CSV file to facilitate analysis. This structured approach enhances data usability and insight into household dynamics.
E N D
Module 1 • Read-in Census Data • Hardcoded distribution* of Traveler Types • 2010 Census Summary File 1 • P12 Pop. By Sex by Age • P16 Pop. Over/Under 18 by Sex • H13 HH Size • P29 HH Type by Relationship • P43 Group Quarter • Using VBA macro in MS Access on raw SF1 file • Populate lists of male and female, adults and children • Form all households (HH) of different sizes and types. • Assign a Traveler Type to every resident • Populate all Group Quarters (GQ) in Census Block. • Iterate over # of HH of each size • Choose Fam or Non-Fam HH • Choose main Hhersex • Draw remaining members from HH relations distribution • Iterate over # of people of each age ranges of each sex • Uniformly distributed ages in ranges • Iterate over # of people in each GQ by age and sex • Preset Traveler Type for those whose GQ determines it. • Based primarily on age and HH type • Distribution based on statewide stats of employment and enrollment Legend: • Write these attributes to a CSV, the NJ Resident File • Assign an Income Bracket to each Working Resident Parsing text data Read • HH income sampled first with dollar amount • Then divided among workers in HH • Converted to Bracket indicators Ext. data External data • Each resident is given a unique person ID • Each resident also given a household ID • Household members have the same HH ID and are in consecutive rows • Read-in Household Income Data Process Process Titles • Family Household Incomes • Non-Family Household Incomes Descr. Brief Process Description • Family and Non-Family fields only • Only estimates, not margins of error • 2010 ACS 5 YR