x cd /pub/data/acspums/Tools; %let pgm=application_poorhsgrads; filename pgm "&pgm..sas" ; *---the request from Dan Anderson AZ Board of Regents: " I am looking for data from the 2005 ACS on the proportion of 18-24 year old high school graduates in Arizona who come from families earning less than $40,000 annually. If possible, it would be good to see this from the 2004 ACS to see how much variation has occurred over the year. And a related question has been raised on the number of students who are recent high school graduates. It would be good if I could also compile from the 2004 and 2005 ACSs the number of 18 & 19 year olds with a high school diploma by race/ethnicity. " We use the latest (2005) ACS pums data to respond to this request. *******************************ON HOLD***************************************************** ----; libname acspums '/pub/data/acspums' access=readonly; data xtract; set acspums.azprecs05(in=inp keep=serialno puma povpip sch schg pwgtp) end=last; *---we have nothing form the housing records dataset that we need for this application.---; /* =======================Begin comment================ proc tabulate data=xtract; class InCollege Poor Area; var povpip PoorNumeric; label InCollege="Enrolled in College?" PoorNumeric="Poor"; ***freq pwgtp; *<====here we comment out the freq statement to make these numbers unweighted---; title4 "Part 2: Unweighted Numbers"; *--we could do this first table just as easily with Proc Freq, of course. --; table All='Total' InCollege, Area*(all Poor)*N*f=comma9.; *--this table calculates poverty rates and average poverty ratios----; table all='Total' InCollege, Area*PoorNumeric*mean='Pct Poor'*f=percent6.1 povpip*mean='Mean Poverty Ratio'*f=9. ; run; *--note that without the run statement the output from this tabulate step would not be written to the html file--; ods html close; ======================End comment================== */