* This do-file takes the raw data files from IPUMS 100% sample of the 1880 federal census and * constructs the city-level segregation measures. clear global filepath "/Users/jparman/Dropbox/segregation-files/" global segdir "$filepath/Process/1880_Seg_measures" global outdir "$filepath/Output/" *Define sorting criteria global sorter="occ1950" //Define the criteria you will be sorting people on. global criteria = "$sorter>899 & $sorter<971" *Generate neighbor segregation measures cd "$segdir" run "1880_NeighborPrep.do" *Generate traditional measures and combine to make final dataset cd "$segdir" run "1880_TraditionalPrep.do"