x cd /pub/data/corrlst; %let pgm=usco2puma_byrace; filename pgm "&pgm..sas"; *---Per request from Eduardo Martins, American Human Development Project, Columbia U. NYC: "What I would like to do is to calculate allocation factors for each race group, rather than use total population. I don't suppose it is possible with GeoCorr, right? Is there any assistance you can give me on how I could accomplish this?" With followup we agreed upon specific race-based weights: "White Alone, not Hispanic Black or African American alone, not Hispanic Asian or Pacific Islander Alone, not Hispanic American Indian and Alaska Native alone, not Hispanic Hispanic, of any race" and also that we would tweak those weight variables to make them conform to 2007 official pop estimates at the county level. jgb, 12/08. This program is being sponsored by (i.e. paid for) by measureofamerica.org . ----*; libname user '/SAS_temp/userb'; libname pubdata3 "/pub/data3"; %libname (popests); %libname (mable2k); x cd /pub/data3; %let state=10; %let stab=de; x unzip pl942000 &stab.geos.sas7bdat &stab.detail; data aggin; *** /view=aggin; merge pubdata3.&stab.geos(keep=geo_id county tract block sumlev where=(sumlev='750') in=blksummary ) pubdata3.&stabdetail(in=indetail where=(race_id <= 4 or hispanic); if inblksummary and indetail; if hispanic then race_id=5; *--Making up our own codes here. If the person is hispanic then we treat that like a race; run;