x cd /pub/data/pums2000/Tools; %let pgm=poorfams_withpreschoolers; filename pgm "&pgm..sas"; /* ------------------------------------------------------------------------ The request: From Lana Poole, Ctr for Family Policy & Research, UMC 3-22-04 Interested in lloking at families in Boone county with preschool children who were at or near the poverty level and receiving public assistance income. Proposed changes may require these families to pay for their child care. Output report in html format in /pub/reports/misc/&pgm..html ------------------------------------------------------------------------ */ %let htmlfile=/pub/reports/misc/&pgm..html; libname pums2000 "/pub/data/pums2000"; libname user "/SAS_temp/user"; proc format; value poverty 001-049 = '<.50' 050-074 = '.50-.74' 075-099 = '.75-.99' 100-124 = '1.00-1.24' 125-149 = '1.25-1.49' 150-199 = '1.50-1.99' 200-224 = '2.00-2.24' 225-249 = '2.25-2.49' 250-299 = '2.50-2.99' 300-high = '3.00 and over'; run; /*<=========================Comment out===================================== data &pgm; set pums2000.mo5 (keep=state serialno puma5 hweight paoc wif npf incpa poverty ); by state serialno; where puma5 = '00600'; *<---Boone County, MO--; where also (0 < poverty < 149) and paoc in ('1','3') and incpa > 0 and wif > '1'; *--The where statement specified we only want households (families) that: were in the poverty universe and had a poverty ratio under 150% of the poverty level, had own children under the age of 6 (paoc), had some public assistance income, had at least 1 person in the workforce (wif > 1 : wif=1 means 0 workers, 2 means 1 worker, etc.) We only keep the last persons for the family household. Within such a HH the value of poverty will not vary but the other Person record variable, incpa, will. But our where filter says to only keep persons who had assistance income. If 2 or more in the family had PA income that is irrelevant and we do not want to double count. --; if last.serialno; run; ===========================End commented out================================ */ title 'Families in Boone County With Pre School Age Children and Receiving Public Assistance'; title2 'Families as of April, 2000 With Poverty Ratio Based on 1999 Income'; title3 'Estimated from PUMS 1-in-20 Sample'; footnote 'Source: 2000 Census, Public Use Microdata Sample File for Missouri, 5% Sample'; footnote2 'Analysis by OSEDA: Office of Social & Economic Data Analysis, U of Missouri'; ods html file="&htmlfile" style=sasweb;; ods listing close; proc tabulate data=&pgm; format poverty poverty. ; freq hweight; var npf; label npf='# Persons in these Families'; class poverty ; table all="Total"*f=comma9. poverty="Poverty Ratio", npf=' '* (n="# Families"*f=comma7. sum='# Persons in These Families'*f=comma7.); run; ods html close;