******************************************************************************** * Created by: Alison Goode * * Updated by: Nicole Watson & Markus Hahn * * * * Purpose of the progam: * * ====================== * * Merge wave 1 household, enumerating person and responding person files. * ******************************************************************************** clear set memory 1g // Specify directories (use "." to point to current directory) local origdatadir "C:\orig-data" // Location of original HILDA data files local newdatadir "C:\new-data" // Location to which to write new data files // Open enumerated person file use "`origdatadir'\Eperson_a140c" // Merge responding person file with enumerated person file merge 1:1 ahhrpid using "`origdatadir'\Rperson_a140c", nogen // Merge household file with enumerated & responding person file merge m:1 ahhrhid using "`origdatadir'\Household_a140c", nogen // Save new data set save "`newdatadir'\combined-2001", replace