x cd /pub/data/acspums/Tools; %let pgm=application_hhval_byownchild; filename pgm "&pgm..sas" ; *---the request from K. Carney, cubit: Client wants to look at housing values by with/without own children in HH. For Douglas County, CO. We could not give them that county but we select 3 PUMAs that are all or mostly in and use that as our universe. Uses the latest (vintage 2015) 1-year acspums data for Colorado. 11-26-16 jgb. ----; libname acspums '/pub/data/acspums'; title "Housing Values for Families With and Without Children"; title2 "Source: 2015 ACS PUMS Data Using 3 PUMAs Approximating Douglas County, CO"; footnote h=.75 link="https://mcdc.missouri.edu/data/acspums/Tools/application_hhval_byownchild.sas" "From setup in acspums/Tools/&pgm..sas"; ods html file="&pgm..html" style=meadow; proc format; value houseval 0-9999 ="Less than $10,000" 10000-14999="$10,000 to $14,999" 15000-19999="$15,000 to $19,999" 20000-24999="$20,000 to $24,999" 25000-29999="$25,000 to $29,999" 30000-34999="$30,000 to $34,999" 35000-39999="$35,000 to $39,999" 40000-49999="$40,000 to $49,999" 50000-59999="$50,000 to $59,999" 60000-69999="$60,000 to $69,999" 70000-79999="$70,000 to $79,999" 80000-89999="$80,000 to $89,999" 90000-99999="$90,000 to $99,999" 100000-124999="$100,000 to $124,999" 125000-149999 ="$125,000 to $149,999" 150000-174999 ="$150,000 to $174,999" 175000-199999="$175,000 to $199,999" 200000-249999="$200,000 to $249,999" 250000-299999="$250,000 to $299,999" 300000-399999="$300,000 to $399,999" 400000-499999="$400,000 to $499,999" 500000-749999="$500,000 to $749,999" 750000-999999="$750,000 to $999,999" 1000000-high ="$1,000,000 or more"; run; data hhs; set acspums.cohrecs15(in=inh keep=serialno wgtp puma sval valp fparc type ); *** acspums.coprecs15(in=inp keep=serialno povpip) end=last; **by serialno; where (puma in ('00821','00822','00823')) and type='1'; *--Per Geocorr these 3 pumas are Douglas county and more--; if '1' le fparc le '3' then WithOwn='Yes'; else if fparc='4' then WithOwn='No '; else delete; *--family hhs only-; if sval='1'; *--specified owner unit--; label WithOwn='With Own Rel Children' valp='Household Income'; run; proc freq data=hhs; weight wgtp; format valp houseval. ; table valp * WithOwn; run; proc sort data=hhs; by withown; run; proc freq data=hhs; by withown; weight wgtp; format valp houseval. ; table valp ; run; proc means data=hhs n mean p25 median p75 ; freq wgtp; class withown; run; ods html close;