x cd /pub/data/acspums/Tools; %let pgm=application_lowincome_kids; filename pgm "&pgm..sas" ; *---the request from DESE, 9-11: Here is the table we are completing : Table (A)(1)-1: Children from Low-Income[1] families, by age Number of children from Low-Income families in the State Children from Low-Income families as a percentage of all children in the State Infants under age 1 US Census Bureau Toddlers ages 1 through 2 Preschoolers ages 3 to kindergarten entry Total number of children, birth to kindergarten entry, from low-income families ----; libname user '/SAS_temp/user'; libname acspums '/pub/data/acspums'; ods html file="&pgm..html"; /* ========================begin comment==================================== ==========================end comment====================================== */ data kids; set acspums.moprecs09(keep=pwgtp povpip agep schg) end=last; where agep <= 5; ; *----We create two categories, one based on age and the other on low-income status. ---; if agep=00 then agecat='1: Infant (Age 0) '; else if agep in (01,02) then agecat='2: Age 1 & 2'; else if schg in (' ','01') then agecat='3: 3 to KG'; else delete; if povpip=. then IncCat='3: Not Determined'; else if povpip <= 200 then IncCat="1: Low Income"; else incCat="2: Not Low"; label agecat="Age Category" inccat="Income Category"; run; title "Missouri Children Under Age 6 (and pre-KG) by Low Income Status and Age"; title2 "Estimated from ACS PUMS Data for Surveys Taken in 2009"; options nodate; footnote h=2 "Low Income Means at or Below 200% of Poverty Level"; footnote2 h=1 "Report Generated by the Missouri Census Data Center on &sysdate"; proc freq data=kids; weight pwgtp; table agecat * IncCat; run; ods html close;