x cd /pub/data/sf32000x/Tools; %let pgm=bgs_withlessthan3occhus; filename pgm "&pgm..sas"; *---The Bureau is going to suppress ACS data for BGs with fewer than 3 occ hus. Lets see what this amounts to by looking at 2k census data at bg level for a state (CA) to see what portion of the pop we might miss if we did that. jgb, 11-9-10 ---; libname xxtrbgs '/pub/data/sf32000x/xxtrbgs'; data aggin; set xxtrbgs.cabgs; nbgs=1; if totpop=0 then nopop=1; else nopop=0; keep totpop tothhs tothus HHInc200 poor povuniverse pctpoor meanpovratio under18 pctunder18 over65 pctover65 black1 pctblack1 hisppop pcthisppop avgfaminc families vacant pctvacant ruralHUs pctruralhus mobilehomes pctmobilehomes avgHValue specowner; if occhus100 ge 3 then OverLimit="Yes"; else OverLimit="No "; keep overlimit state county nbgs nopop; run; proc sort; by overlimit; run; %agg(setin=aggin, setout=aggout, aggby= state overlimit, aggvars=_numeric_, means=pctpoor meanpovratio pctunder18 pctover65 pctblack1 pcthisppop avgfaminc pctvacant pctruralhus pctmobilehomes avgHvalue, meanwts=povuniverse povuniverse totpop totpop totpop totpop families tothus tothus tothus specowner, debug=0); proc print data=aggout; by state; id overlimit; title "California Data from SF3 2000 Broken Down by BGs Under and Over 3-HH Limit"; run;