%let _revdate=%str(11/20/2012 8:36:39 AM); ************12/27/2012 10:47:12 AM Abandoning this approach after seeing how many of the mcdcprofiles variables are available at the BG level. We can tweak our conversion code to access different tables in some instances . /* This is invoke_dovarsbg.sas, stored in the acs2011/Tools directory. NOTE: during testing we shall actually run this against 2006-2010 (vintage 2010 as opposed to 2011) data as we await the arrival of the 2007-2011 data which is due to arrive shortly. We are tweaking this code so that a vintage-year parm can be tested and variables included or excluded or have definitions altered based on the value if &vintage. Creates the standard ACS extract for block group level data. This is a unique set of variables since we have a unique set of base tables available at this level. Will try to keep all variables from the standard mcdcprofile extracts where data are available. This initial version will not deal with MOEs. We know they are all pretty bad at BG level and we are not comfortable with the reliability of formulas for moes of derived aggregates. John Blodgett, OSEDA, under contract with the Missouri Census Data Center. =======Revision history======: 11-20-12: Begin work. Using last acs invoke_dovars module from acs2007/Tools as template. ======================================== */ %let vintage=2010; *<=====================================; *---chkval values are for United States totals 2006-2010. -; %*--- macro to calculate new moe when you add 2 or more numbers together---; %macro calc_moe(m1, m2, m3=0, m4=0, m5=0, m6=0); %if &dvmode = %str(data) %then %do; /* if &m1 eq . then %let m1=0; if &m2 eq . then %let m2=0; if &m3 eq . then %let m3=0; if &m4 eq . then %let m4=0; if &m5 eq . then %let m5=0; if &m6 eq . then %let m6=0; */ _tempmoe=1.645*SQRT((&m1/1.645)**2+(&m2/1.645)**2+(&m3/1.645)**2+(&m4/1.645)**2+(&m5/1.645)**2+(&m6/1.645)**2); %end; %else %do; _tempmoe=""; %end; %mend calc_moe; drop _:; * Demographics; TableGroup=1; SubjectGroup='Demographic'; %let table=SAMPLE SIZE; %let lvl=0; %let pctof=; %dovar(TotPop,%nrbquote(Total Population),b01001i1,chkval=303965272) %let pctof=TotalPop; %let lvl=1; %dovar(PopSampled,Unweighted Sample Count of Pop,b00001i1,chkval=22642989) %dovar(HUsSampled,Unweighted Sample Count of HUs,b00002i1,ckval=9673523) %let table=AGE; %let lvl=0; %let pctof=; %let RefTables=B01001; %let universe=Total Population; %dovar(TotPop,%nrbquote(Total Population),b01001i1,dup=1) %let Pctof=TotPop; %let lvl=1; %dovar( Age0_4,%nrbquote(Under 5 years),b01001i3+b01001i27,chkval=20131420,moe=) %dovar( Age5_9,%nrbquote(5 to 9 years), b01001i4+b01001i28,moe=) %dovar( Age10_14,%nrbquote(10 to 14 years),b01001i5+b01001i29,moe=) %dovar( Age15_19,%nrbquote(15 to 19 years),b01001i6+b01001i7+b01001i30+b01001i31,moe=) %dovar( Age20_24,%nrbquote(20 to 24 years),b01001i8+b01001i9+b01001i10+b01001i32+b01001i33+b010034,moe=) %dovar( Age25_34,%nrbquote(25 to 34 years),b01001i11+b01001i12+b01001i35+b01001i36,moe=) %dovar( Age35_44,%nrbquote(35 to 44 years),b01001i13+b01001i14+b01001i37+b01001i38,moe=) %dovar( Age45_54,%nrbquote(45 to 54 years),b01001i15+b01001i16+b01001i39+b01001i40,moe=) %dovar( Age55_59,%nrbquote(55 to 59 years),b01001i17+b01001i41,moe=) %dovar( Age60_64,%nrbquote(60 to 64 years),b01001i18+b01001i19+b01001i42+b01001i43,moe=) %dovar( Age65_74,%nrbquote(65 to 74 years),b01001i20+b01001i21+b01001i22+b01001i44+b01001i45+b01010i46,moe=) %dovar( Age75_84,%nrbquote(75 to 84 years),b01001i23+b01001i24+b01001i47+b01001i48,moe=) %dovar( Over85,%nrbquote(85 years and over),b01001i25+b01001i49,moe=) /* %let lvl=0; %let Pctof=; %dovar( MedianAge,%nrbquote(Median age in years),d518,chkval=36.4,moe=moe518, fmt=4.1,wtvar=totpop) %let Pctof=TotPop; %let lvl=1; %dovar( Over5,%nrbquote(5 years and over), d505+d506+d507+d508+d509+d510+d511+d512+d513+d514+d515+d516) %dovar( Over15,%nrbquote(15 years and over), d507+d508+d509+d510+d511+d512+d513+d514+d515+d516) %calc_moe(m1=moe499, m2=moe520); %dovar( Under18,%nrbquote(Under 18 years of Age),TotPop-d520,moe=_tempmoe) %dovar( Over18,%nrbquote(18 years and over),d520,chkval=225633342,moe=moe520) %dovar( Over21,%nrbquote(21 years and over),d521,chkval=212355429,moe=moe521) %dovar( Over25,%nrbquote(25 years and over), d509+d510+d511+d512+d513+d514+d515+d516) %dovar( Over62,%nrbquote(62 years and over),d522,chkval=45143991,moe=moe522) %dovar( Over65,%nrbquote(65 years and over),d523,chkval=37191004,moe=moe523) %let table=AGE AND SEX; %let lvl=0; %let pctof=; %let RefTables=B01001; %let universe=Total Population; %dovar( TotPop,%nrbquote(Total population),d499,chkval=299398485,dup=1 ) %let Pctof=TotPop; %let lvl=1; %dovar( Males,%nrbquote(Male),d501,chkval=147434940,moe=moe501) %let lvl=2; %let Pctof=Males; %dovar( Over18Males,%nrbquote(18 years old and over),d526,chkval=109685985,moe=moe526) %dovar( Over65Males,%nrbquote(65 years old and over),d530,chkval=15606675,moe=moe530) %let lvl=1; %let Pctof=TotPop; %dovar( Females,%nrbquote(Female),d502,chkval=151963545,moe=moe502) %let lvl=2; %let Pctof=Females; %dovar( Over18Females,%nrbquote(18 years old and over),d527,chkval=115947357,moe=moe527) %dovar( Over65Females,%nrbquote(65 years old and over),d531,chkval=21584329,moe=moe531) %let table=RACE; %let lvl=0; %let pctof=; %let universe=Total Population; %let RefTables=B02001; %dovar( TotPop,%nrbquote(Total population),d537,chkval=299398485,dup=1 ) %let Pctof=TotPop; %let lvl=1; %dovar( OneRace,%nrbquote(One race),d538,chkval=293285839,moe=moe538) %let lvl=2; %dovar( White1,%nrbquote(White alone),d539,chkval=221331507,moe=moe539) %dovar( Black1,%nrbquote(Black or African American),d540,chkval=37051483,moe=moe540) %dovar( Indian1,%nrbquote(American Indian and Alaska Native),d541,chkval=2369431,moe=moe541) %dovar( Asian1,%nrbquote(Asian),d546,chkval=13100095,moe=moe546) %dovar( HawnPI1,%nrbquote(Native Hawaiian and Other Pacific Islander),d554,chkval=426194,moe=moe554) %dovar( Other1,%nrbquote(Some other race),d559,chkval=19007129,moe=moe559) %let lvl=1; %dovar( MultiRace,%nrbquote(Two or more races),d560,chkval=6112646,moe=moe560) %let RefTables=B02008; %dovar( White2,%nrbquote(White (alone or in combination)),d568,chkval=226537259,moe=moe568) %let RefTables=B02009; %dovar( Black2,%nrbquote(Black (alone or in combination)),d569,chkval=39151870,moe=moe569) %let RefTables=B02010; %dovar( Indian2,%nrbquote(American Indian (alone or in combination)),d570,chkval=4329799,moe=moe570) %let RefTables=B02011; %dovar( Asian2,%nrbquote(Asian (alone or in combination)),d571,chkval=14656608,moe=moe571) %let RefTables=B02012; %dovar( HawnPI2,%nrbquote(Native Hawaiian (alone or in combination)),d572,chkval=813474,moe=moe572) %let RefTables=B02013; %dovar( Other2,%nrbquote(Some other race (alone or in combination)),d573,chkval=20484020,moe=moe573) %let table=HISPANIC OR LATINO (any race); %let lvl=0; %let pctof=; %let universe=Total Population; %let RefTables=B03002; %dovar( TotPop,%nrbquote(Total population),d537,chkval=299398485,moe=,dup=1) %let Pctof=TotPop; %let lvl=1; %dovar( HispanicPop,%nrbquote(Hispanic or Latino of any race),d577,chkval=44252278,moe=moe577) %dovar( NonHispPop,%nrbquote(Not Hispanic or Latino),d582,chkval=255146207,moe=moe582) %macro editnhp; %global dvmode; %if &dvmode=%str(data) %then %do; if missing(NonHispPop) & missing(HispanicPop)=0 then do; *--if they suppress non-hisanic but give us hispanic then we can easily derive it. Mode 7-14-09, jgb--; NonHispPop=TotPop-HispanicPop; if totpop then PctNonHispPop=NonHispPop*100/Totpop; NonHispPop_moe=.; end; %end; %mend editnhp; %editnhp %let lvl=2; %dovar( NonHispWhite,%nrbquote(White alone),d583,chkval=198176991,moe=moe583) %dovar( NonHispBlack,%nrbquote(Black or African American alone),d584,chkval=36434530,moe=moe584) %dovar( NonHispAmInd,%nrbquote(American Indian and Alaska Native alone),d585,chkval=2035551,moe=moe585) %dovar( NonHispAsian,%nrbquote(Asian alone),d586,chkval=12945401,moe=moe586) %dovar( NonHispHawnPI,%nrbquote(Native Hawaiian and Other Pacific Islander alone),d587,chkval=387230,moe=moe587) * Economic; TableGroup=2; SubjectGroup='Economic'; %let table=HOUSEHOLD INCOME AND BENEFITS (IN 2007 INFLATION-ADJUSTED DOLLARS); %let lvl=0; %let pctof=; %let universe=Total households; %let RefTables=C19001; %dovar( TotHHs,%nrbquote(Total households),d262,chkval=111617402,moe=moe262) %let Pctof=TotHHs; %let lvl=1; %dovar( HHInc0,%nrbquote(Less than $10,000),d263,chkval=8898696,moe=moe263) %dovar( HHInc10,%nrbquote($10,000 to $14,999),d264,chkval=6639877,moe=moe264) %dovar( HHInc15,%nrbquote($15,000 to $24,999),d265,chkval=12721628,moe=moe265) %dovar( HHInc25,%nrbquote($25,000 to $34,999),d266,chkval=12446822,moe=moe266) %dovar( HHInc35,%nrbquote($35,000 to $49,999),d267,chkval=16511457,moe=moe267) %dovar( HHInc50,%nrbquote($50,000 to $74,999),d268,chkval=21221889,moe=moe268) %dovar( HHInc75,%nrbquote($75,000 to $99,999),d269,chkval=13214551,moe=moe269) %dovar( HHInc100,%nrbquote($100,000 to $149,999),d270,chkval=12164206,moe=moe270) %dovar( HHInc150,%nrbquote($150,000 to $199,999),d271,chkval=3981276,moe=moe271) %dovar( HHInc200,%nrbquote($200,000 or more),d272,chkval=3817000,moe=moe272) %let lvl=0; %let Pctof=; %let RefTables=B19013; %dovar( MedianHHInc,%nrbquote(Median household income),d273,chkval=48451,moe=moe273, fmt=dollar9.,wtvar=tothhs) %let pctof=; %let lvl=1; %dovar( AvgHHInc,%nrbquote(Mean household income),d274,chkval=65527,moe=moe274,wtvar=TotHHs, fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19051; %dovar( NumHHEarnings,%nrbquote(With earnings),d276,chkval=89607878,moe=moe276) %let pctof=; %let lvl=1; %dovar( AvgHHEarnings,%nrbquote(Mean Household Earnings),d277,chkval=66733,moe=moe277,wtvar=NumHHEarnings, fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19055; %dovar( NumHHSocSec,%nrbquote(With Social Security),d278,chkval=29902386,moe=moe278) %let pctof=; %let lvl=1; %dovar( AvgHHSocSec,%nrbquote(Mean Household Social Security income),d279,chkval=13877,moe=moe279,wtvar=NumHHSocSec, fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19059; %dovar( NumHHRetInc,%nrbquote(With retirement income),d280,chkval=19457645,moe=moe280) %let pctof=; %let lvl=1; %dovar( AvgHHRetInc,%nrbquote(Mean Household retirement income),d281,chkval=19141,moe=moe281,wtvar=NumHHRetInc, fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19056; %dovar( NumHHSuppSecInc,%nrbquote(With Supplemental Security Income),d283,chkval=4419328,moe=moe283) %let pctof=; %let lvl=1; %dovar( AvgHHSuppSecInc,%nrbquote(Mean Household Supplemental Security Income),d284,chkval=7388,moe=moe284,wtvar=NumHHSuppSecInc, fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19057; %dovar( NumHHPubAssist,%nrbquote(With cash public assistance income),d285,chkval=2624441,moe=moe285) %let pctof=; %let lvl=1; %dovar( AvgHHPubAssist,%nrbquote(Mean Household cash public assistance income),d286,chkval=3139,moe=moe286,wtvar=NumHHPubAssist,fmt=dollar9.) %let Pctof=TotHHs; %let lvl=0; %let RefTables=B19058; %dovar( NumHHFoodStmp,%nrbquote(With Food Stamp benefits in the past 12 months),d287,chkval=9019877,moe=moe287) %let table=FAMILY INCOME AND BENEFITS (2007 INFLATION-ADJUSTED); %let lvl=0; %let pctof=TotHHs; *<---changed 1/28/2009 2:02:56 PM jgb---; %let universe=Family Households; %let RefTables=B19101; %dovar( FamHHs,%nrbquote(Family Households),d289,chkval=74564066,moe=moe289) %let Pctof=FamHHs; %let lvl=1; %dovar( FamHHInc0,%nrbquote(Less than $10,000),d290,chkval=3564147,moe=moe290) %dovar( FamHHInc10,%nrbquote($10,000 to $14,999),d291,chkval=2703830,moe=moe291) %dovar( FamHHInc15,%nrbquote($15,000 to $24,999),d292,chkval=6768641,moe=moe292) %dovar( FamHHInc25,%nrbquote($25,000 to $34,999),d293,chkval=7493307,moe=moe293) %dovar( FamHHInc35,%nrbquote($35,000 to $49,999),d294,chkval=10887856,moe=moe294) %dovar( FamHHInc50,%nrbquote($50,000 to $74,999),d295,chkval=15594053,moe=moe295) %dovar( FamHHInc75,%nrbquote($75,000 to $99,999),d296,chkval=10639706,moe=moe296) %dovar( FamHHInc100,%nrbquote($100,000 to $149,999),d297,chkval=10195215,moe=moe297) %dovar( FamHHInc150,%nrbquote($150,000 to $199,999),d298,chkval=3414557,moe=moe298) %dovar( FamHHInc200,%nrbquote($200,000 or more),d299,chkval=3302754,moe=moe299) %let lvl=0; %let Pctof=; %let RefTables=B19113; %dovar( MedianFamInc,%nrbquote(Median family income),d300,chkval=58526,moe=moe300, fmt=dollar9.,wtvar=FamHHs) %dovar( AvgFamInc,%nrbquote(Mean family income),d301,chkval=76130,moe=moe301,wtvar=FamHHs, fmt=dollar9.) %let table=OTHER INCOME MEASURES (IN 2007 INFLATION-ADJUSTED DOLLARS); %let lvl=0; %let pctof=; %let universe=Total Households; %let RefTables=B19301; %dovar( PCI,%nrbquote(Per capita income),d303,chkval=25267,moe=moe303,wtvar=totpop,fmt=dollar9. ) %let Pctof=totHHs; %dovar( NonFamHHs,%nrbquote(Nonfamily households),d305,chkval=37053336,moe=moe305) %let Pctof=; %let lvl=1; %dovar( MedianNonFamInc,%nrbquote(Median nonfamily income),d306,chkval=29521,moe=moe306,fmt=dollar9.,wtvar=nonfamhhs ) %dovar( AvgNonFamInc,%nrbquote(Mean nonfamily income),d307,chkval=41515,moe=moe307,wtvar=NonFamHHs,fmt=dollar9. ) %let lvl=0; %let RefTables=B19325; %calc_moe(m1=B19325m3, m2=B19325m50); %dovar( FullTimeWorkers, %nrbquote(All Full Time Workers), B19325i3+B19325i50, moe=_tempmoe) %let lvl=1; %let pctof=FullTimeWorkers; %dovar( FullTimeWorkersMale, %nrbquote(All Male Full Time Workers), B19325i3, moe=B19325m3) %dovar( FullTimeWorkersFemale, %nrbquote(All Female Full Time Workers), B19325i50, moe=B19325m50) %let lvl=0; %let RefTables=B19326; %let pctof=; %dovar( MedianEarnings,%nrbquote(Median earnings for workers),d309,chkval=27239,moe=moe309,fmt=dollar9.,wtvar=FullTimeWorkers ) %dovar( MedianEarningsMale,%nrbquote(Median earnings for male full-time, year-round workers),d310,chkval=42210,moe=moe310,fmt=dollar9., wtvar=FullTimeWorkersMale ) %dovar( MedianEarningsFemale,%nrbquote(Median earnings for female full-time, year-round workers),d311,chkval=32649,moe=moe311,fmt=dollar9., wtvar=FullTimeWorkersFemale ) %let table=POVERTY STATUS OVER THE LAST 12 MONTHS; %let lvl=0; %let pctof=; %let universe=Persons for whom poverty status is determined; * fix me; %let display=1; %let lvl=0; %let Pctof=totpop; %let RefTables=B17001; %dovar( PovUniverse,%nrbquote(Persons for whom poverty status is determined),C17001i1,chkval=,moe=C17001m1) %let Pctof=; %let display=0; %let lvl=1; %calc_moe(m1=C17001m4, m2=C17001m8, m3=C17001m13, m4=C17001m17); %dovar( PovUniverseUnder18,%nrbquote(Persons under 18 for whom poverty status is determined), C17001i4+C17001i8+C17001i13+C17001i17, moe=_tempmoe) %calc_moe(m1=C17001m5, m2=C17001m9, m3=C17001m14, m4=C17001m18); %dovar( PovUniverse18_64,%nrbquote(Persons aged 18 to 64 for whom poverty status is determined), C17001i5+C17001i9+C17001i14+C17001i18, moe=_tempmoe) %calc_moe(m1=C17001m6, m2=C17001m10, m3=C17001m15, m4=C17001m19); %dovar( PovUniverseOver65,%nrbquote(Persons over 65 for whom poverty status is determined), C17001i6+C17001i10+C17001i15+C17001i19, moe=_tempmoe) %let pctof=; %let display=1; %let pctof=PovUniverse; %let display=1; %dovar(poor, %nrbquote(Persons Below Poverty),PovUniverse*d324*0.01, moe=moe324*PovUniverse*0.01); %let povmoe=PovUniverse*0.01*moe324/poor; %let pctof=PovUniverseUnder18; %dovar( poorUnder18,%nrbquote(Persons under 18 in Poverty), C17001i4+C17001i8,chkval=, moe=moe325*PovUniverseUnder18*0.010); %let pctof=PovUniverse18_64; %dovar( poor18to64,%nrbquote(Persons aged 18 to 64 in Poverty), C17001i5+C17001i9, chkval=, moe=moe330*PovUniverse18_64*0.010); %let pctof=PovUniverseOver65; %dovar( poorOver65,%nrbquote(Persons over 65 in Poverty), C17001i6+C17001i10, chkval=, moe=moe331*PovUniverseOver65*0.010); %*---changing things here, 7/15/2009 9:38:25 AM. We had some bad universes being used here---; %let pctof=totpop; %let display=0; %let RefTables=B11002; %*--FamilyPop is new, 7-15-09 and replaces PovUniverseFamily, which was incorrect---; %dovar(FamilyPop,Persons living in Families,B11002i2) %let RefTables=B17007; %dovar(PovUniverseUnrelated,%nrbquote(Unrelated individuals aged 15+ for whom poverty status is determined),B17007i1) %let display=1; %let pctof=FamilyPop; %let RefTables=; %*----renaming poorFamily to poorInFamily to avoid confusion of thinking it was a poor family count--; %dovar( poorInFamily,%nrbquote(Poor Persons in Families),d332*.01*FamilyPop, moe=moe332*FamilyPop*0.010) %let pctof=PovUniverseUnrelated; %let RefTables=B17007; %dovar( poorUnrelated,%nrbquote(Poor Unrelated Persons 15+),B17007i2,chkval=, moe=B17007i2*&povmoe) %let pctof=PovUniverse; %let RefTables=B17002; %dovar( PovRatioUnderHalf,%nrbquote(Poverty Ratio Under 0.5),B17002i2,chkval=, moe=B17002i2*&povmoe) %dovar( PovRatiov5tov75,%nrbquote(Poverty Ratio in 0.5 to 0.75),B17002i3,chkval=, moe=B17002i3*&povmoe) %dovar( PovRatiov75to1,%nrbquote(Poverty Ratio in 0.75 to 1),B17002i4,chkval=, moe=B17002i4*&povmoe) %dovar( PovRatio1to2,%nrbquote(Poverty Ratio in 1 to 2),B17002i5+B17002i6+B17002i7+B17002i8+B17002i9,chkval=, moe=(B17002i5+B17002i6+B17002i7+B17002i8+B17002i9)*&povmoe) %dovar( PovRatio2to3,%nrbquote(Poverty Ratio in 2 to 3), B17002i10,chkval=, moe=B17002i10*&povmoe) %dovar( PovRatioOver3, %nrbquote(Poverty Ratio Over 3), B17002i11+B17002i12+B17002i13,chkval=, moe=(B17002i11+B17002i12+B17002i13)*&povmoe) %let pctof=; %let lvl=0; %dovar(MeanPovRatio, %nrbquote(Mean Poverty Ratio), (B17002i2*0.25+B17002i3*0.675+B17002i4*0.875 + B17002i5*1.125+B17002i6*1.325 + B17002i7*1.575 +B17002i8*1.800 + B17002i9*1.925 +B17002i10*2.500 + B17002i11*3.500+B17002i12*4.500+B17002i13*6.000)/B17002i1, fmt=5.1,wtvar=povuniverse, comment=%nrbquote(See http://mcdc.missouri.edu/allabout/measures_of_income/ for information about Mean Poverty Ratios)) %let table=EMPLOYMENT STATUS; %let lvl=0; %let pctof=; %let universe=Population 16 years and over; %let RefTables=B23001; %dovar( Over16,%nrbquote(Population 16 years and over),d198,chkval=234243963,moe=moe198) %let Pctof=Over16; %let lvl=1; %dovar( LaborForce,%nrbquote(In labor force),d199,chkval=152193214,moe=moe199) %let lvl=2; %dovar( CivLabForce,%nrbquote(Civilian labor force),d200,chkval=151203992,moe=moe200) %let lvl=3; %let pctof=CivLabForce; %dovar( EmployedCLF,%nrbquote(Employed Civilians),d201,chkval=141501434,moe=moe201) %dovar( UnemployedCLF,%nrbquote(Unemployed Civilians),d202,chkval=9702558,moe=moe202) %let lvl=2; %let Pctof=Over16; %dovar( Military,%nrbquote(In Military),d203,chkval=989222,moe=moe203) %let lvl=1; %dovar( NOTInLF,%nrbquote(Not in labor force),d204,chkval=82050749,moe=moe204) %dovar( Over16Females,%nrbquote(Females 16 years and over),d209,chkval=120141345,moe=moe209) %let lvl=2; %dovar( LaborForceFemales,%nrbquote(Females in labor force), d210,chkval=70578178,moe=moe210) %let lvl=3; %dovar( CivLabForceFemales,%nrbquote(Females in civilian labor force), d211,chkval=70441258,moe=moe211) %let lvl=4; %let pctof=CivLabForceFemales; %dovar( EmployedFemales,%nrbquote(Employed Females), d212,chkval=65822879,moe=moe212) %let pctof=Over16; %let lvl=1; %let table=Children With All Parents Working; %let lvl=0; %let pctof=; %let universe=Own Children; %let RefTables=B23008; %dovar( OwnKidsUnder6,%nrbquote((Own) children under 6),d214,chkval=23210775,moe=moe214) %let lvl=1; %let pctof=OwnKidsUnder6; %dovar( OwnKidsU6AllPrntsWk,%nrbquote(All parents working),d215,chkval=14292278,moe=moe215) %let lvl=0; %let pctof=; %dovar( OwnKidsOver6,%nrbquote((Own) Children Aged 6 to 17),d217,chkval=45942524,moe=moe217) %let pctof=OwnKidsOver6; %let lvl=1; %dovar( OwnKidsO6AllPrntsWk,%nrbquote(All parents working),d218,chkval=32019857,moe=moe218) %let table=COMMUTING TO WORK; %let lvl=0; %let pctof=; %let universe=Workers 16 years and over; %let RefTables=B08006; %dovar( Worker16,%nrbquote(Workers 16 years and over),d221,chkval=138265905,moe=moe221) %let Pctof=Worker16; %let lvl=1; %calc_moe(m1=moe221, m2=moe227); %dovar( Commuters,%nrbquote(Workers 16+ who commute to work),d221-d227,chkval=138265905,moe=_tempmoe) %let lvl=2; %dovar( DriveAlone,%nrbquote(Car, truck, or van -- drove alone),d222,chkval=105046395,moe=moe222) %dovar( Carpool,%nrbquote(Car, truck, or van -- carpooled),d223,chkval=14851751,moe=moe223) %dovar( PublicTrans,%nrbquote(Public transportation (excluding taxicab)),d224,chkval=6684040,moe=moe224) %dovar( WalkToWork,%nrbquote(Walked to Work),d225,chkval=3951534,moe=moe225) %dovar( OtherCommute,%nrbquote(Other means of commuting), d226,chkval=2321077,moe=moe226) %let lvl=1; %dovar( WorkAtHome,%nrbquote(Worked at home),d227,chkval=5411108,moe=moe227) %let pctof=; %let lvl=0; %dovar( AvgCommute,%nrbquote(Mean travel time to work in minutes),d229,chkval=25,moe=moe229,fmt=5.1,wtvar=Commuters) %let table=WORKERS BY OCCUPATION; %let lvl=0; %let pctof=; %let universe=Civilian employed population 16 years and over; %let RefTables=B24050; %dovar( EmployedCLF,%nrbquote(Civilian employed population 16 years and over),d231,chkval=141501434,moe=moe231,dup=1) %let Pctof=EmployedCLF; %let lvl=1; %dovar( ManProfOccs,%nrbquote(Management, professional, and related occupations),d233,chkval=48058369,moe=moe233) %dovar( ServiceOccs,%nrbquote(Service occupations),d234,chkval=23361096,moe=moe234) %dovar( SalesOffOccs,%nrbquote(Sales and office occupations),d235,chkval=36615694,moe=moe235) %dovar( FarmFishOccs,%nrbquote(Farming, fishing, and forestry occupations),d236,chkval=1007036,moe=moe236) %dovar( ConsOccs,%nrbquote(Construction, extraction, maintenance and repair occupations),d237,chkval=14094249,moe=moe237) %dovar( TransOccs,%nrbquote(Production, transportation, and material moving occupations),d238,chkval=18364990,moe=moe238) %let table=WORKERS BY INDUSTRY; %let lvl=0; %let pctof=; %let universe=Agriculture, forestry, fishing and hunting, and mining; %let RefTables=B24030; %dovar( EmployedCLF,%nrbquote(Civilian employed population 16 years and over),d231,chkval=141501434,moe=moe231,dup=1) %let Pctof=EmployedCLF; %let lvl=1; %dovar( Agriculture,%nrbquote(Agriculture, forestry, fishing and hunting, and mining),d241,chkval=2588454,moe=moe241) %dovar( Construction,%nrbquote(Construction),d242,chkval=11183930,moe=moe242) %dovar( Manufacturing,%nrbquote(Manufacturing),d243,chkval=16350948,moe=moe243) %dovar( WholesaleTrade,%nrbquote(Wholesale trade),d244,chkval=4842294,moe=moe244) %dovar( RetailTrade,%nrbquote(Retail trade),d245,chkval=16268904,moe=moe245) %dovar( Transportation,%nrbquote(Transportation and warehousing, and utilities),d246,chkval=7144167,moe=moe246) %dovar( Information,%nrbquote(Information),d247,chkval=3524717,moe=moe247) %dovar( Finance_Ins,%nrbquote(Finance and insurance, and real estate and rental and leasing),d248,chkval=10241270,moe=moe248) %dovar( Professional,%nrbquote(Professional, scientific, management, and administrative),d249,chkval=,moe=moe249) %dovar( Educ_Health_SocSvcs,%nrbquote(Educational services, and health care, and social assistance),d250,chkval=29491331,moe=moe250) %dovar( RecreationEtc,%nrbquote(Arts, entertainment, and recreation, and accommodation, and food services),d251,chkval=12149998,moe=moe251) %dovar( OtherIndustries,%nrbquote(Other services, except public administration),d252,chkval=6796996,moe=moe252) %dovar( PublicAdmin,%nrbquote(Public administration),d253,chkval=6616727,moe=moe253) %let table=CLASS OF WORKER; %let lvl=0; %let pctof=; %let universe=Private wage and salary workers; %let RefTables=B24080; %dovar( EmployedCLF,%nrbquote(Civilian employed population 16 years and over),d231,chkval=141501434,moe=moe231,dup=1) %let Pctof=EmployedCLF; %let lvl=1; %dovar( PrivWageWorkers,%nrbquote(Private wage and salary workers),d256,chkval=111181420,moe=moe256) %dovar( GovWorkers,%nrbquote(Government workers),d257,chkval=20363443,moe=moe257) %dovar( SelfEmpWorkers,%nrbquote(Self-employed workers in own not incorporated business),d258,chkval=9629574,moe=moe258) %dovar( UnpaidFamWorkers,%nrbquote(Unpaid family workers),d259,chkval=326997,moe=moe259) * Social; TableGroup=3; SubjectGroup='Social'; %let table=HOUSEHOLDS BY TYPE; %let lvl=0; %let pctof=; %let universe=Total households; %let RefTables=B11005; %dovar( TotHHs,%nrbquote(Total households),d5,chkval=111617402,moe=moe5,dup=1) %let Pctof=TotHHs; %let lvl=1; %let RefTables=B11003; %dovar( Families,%nrbquote(Family households),d6,chkval=74564066,moe=moe6) %let lvl=2; %dovar( FamsWithKids,%nrbquote(With own children under 18 years),d7,chkval=34965930,moe=moe7) %dovar( MarriedCouples,%nrbquote(Married-couple families),d8,chkval=55521868,moe=moe8) %let lvl=3; %dovar( CouplesWithKids,%nrbquote(With own children under 18 years),d9,chkval=24149585,moe=moe9) %let lvl=2; %dovar( SingleMaleFamilies,%nrbquote(Male householder, no wife present),d10,chkval=5121415,moe=moe10) %let lvl=3; %dovar( SingleFathers,%nrbquote(With own children under 18 years),d11,chkval=2510889,moe=moe11) %let lvl=2; %dovar( SingleFemaleFamilies,%nrbquote(Female householder, no husband present),d12,chkval=13920783,moe=moe12) %let lvl=3; %dovar( SingleMothers,%nrbquote(With own children under 18 years),d13,chkval=8305456,moe=moe13) %let lvl=1; %dovar( NonFamHHs,%nrbquote(Nonfamily households),d14,chkval=37053336,moe=moe14,dup=1) %let lvl=2; %dovar( LivingAlone,%nrbquote(Householder living alone),d15,chkval=30496588,moe=moe15) %let lvl=3; %dovar( Over65Alone,%nrbquote(65 years and over living alone),d16,chkval=10209135,moe=moe16) %let lvl=1; %dovar( HHsWithKids,%nrbquote(Households with one or more people under 18 years),d18,chkval=38628743,moe=moe18) %let RefTables=B11007; %dovar( HHsWithElders,%nrbquote(Households with one or more people 65 years and over),d19,chkval=25867508,moe=moe19) %let lvl=0; %let Pctof=; %dovar( AvgHHSize,%nrbquote(Average household size),d21,chkval=2.61,fmt=5.2,moe=moe21, wtvar=TotHHs) %dovar( AvgFamSize,%nrbquote(Average family size),d22,chkval=3.2,fmt=5.2,moe=moe22, wtvar=Families) %let table=PERSONS BY HOUSEHOLD TYPE / GROUP QUARTERS; %let lvl=0; %let pctof=; %let RefTables=B09016; %let universe=All Persons; %dovar( totpop,%nrbquote(Total Population),b09016i1,moe=b09016m1,dup=1) %let Pctof=Totpop; %let lvl=1; %dovar( HHPop,%nrbquote(Household population),d25,chkval=291332841,moe=moe25) %let lvl=2; %dovar( FamHHpop,%nrbquote(Living in Family Households),b09016i3, moe=b09016m3) %dovar( NonFamHHpop,%nrbquote(Living in NonFamily Households), b09016i19,moe=b09016m19) %let lvl=3; %calc_moe(m1=B09016m22, m2=B09016m25); %dovar( LivingAlone,%nrbquote(Living Alone), b09016i22+b09016i25,moe=_tempmoe) %let lvl=2; %dovar( GrpQuarters,%nrbquote(Living in Group Quarters), b09016i33,moe=b09016m33) %let table=RELATIONSHIP; %let lvl=0; %let pctof=; %let universe=Household population; %let Pctof=totPop; %let RefTables=B09016; %dovar( HHPop,%nrbquote(Household population),d25,chkval=291332841,moe=moe25) %let Pctof=HHPop; %let lvl=1; %dovar( Householder,%nrbquote(Householder),d26,chkval=111617402,moe=moe26) %dovar( Spouse,%nrbquote(Spouse),d27,chkval=55480873,moe=moe27) %dovar( Child,%nrbquote(Child),d28,chkval=88904692,moe=moe28) %dovar( OtherRelative,%nrbquote(Other relatives),d29,chkval=19586781,moe=moe29) %dovar( NonRelative,%nrbquote(Nonrelatives),d30,chkval=15743093,moe=moe30) %dovar( UnmarriedPartner,%nrbquote(Unmarried partner HHs),d31,chkval=6049030,moe=moe31) %let display=0; %let Pctof=; %dovar( UMPartnerHHsPerK,%nrbquote(Unmarried-partner HHs per 1000),1000*UnmarriedPartner/TotHHs,fmt=4., comment=%nrbquote(Households, not persons),wtvar=TotHHs) %let table=MARITAL STATUS; %let lvl=0; %let pctof=; %let universe=Persons 15 years and over; %let RefTables=B12001; %calc_moe(m1=moe34,m2=moe41); %dovar(Over15,%nrbquote(Persons 15 years and over),d34+d41,moe=_tempmoe); %let Pctof=Over15; %let lvl=1; %calc_moe(m1=moe35,m2=moe42); %dovar( NeverMarried,%nrbquote(Never married),d35+d42,moe=_tempmoe) %calc_moe(m1=moe36,m2=moe43); %dovar( Married,%nrbquote(Now married, except separated),d36+d43,moe=_tempmoe) %calc_moe(m1=moe37,m2=moe44); %dovar( Separated,%nrbquote(Separated),d37+d44,moe=_tempmoe) %calc_moe(m1=moe38,m2=moe45); %dovar( Widowed,%nrbquote(Widowed),d38+d45,moe=_tempmoe) %calc_moe(m1=moe39,m2=moe46); %dovar( Divorced,%nrbquote(Divorced, and not currently married),d39+d46,moe=_tempmoe) %let table=FERTILITY; %let lvl=0; %let pctof=; %let display=0; %let universe=Women 15 to 50 years old who gave birth in the past 12 months; * fix me; *----?????-------------------------------------------------------------???-----; %let RefTables=B13002; %dovar(Women15to50, %nrbquote(Women 15 to 50 years old), int(1000*d49/d52)) %dovar(UnmarriedWomen15to50, %nrbquote(UnMarried Women 15 to 50 years old), int(1000*d50/d51)) *---This orginally had d52 as denom. Changed, jgb, 2-16-09--; %let pctof=Women15to50; %let display=1; *<---changed by jgb, 2-11-09--; %dovar(WomenGivingBirth,%nrbquote(Women 15 to 50 years old who had a birth in the past 12 months),d49,chkval=4182942,moe=moe49) %dovar( UnmarriedGivingBirth,%nrbquote(Unmarried women who gave birth),d50,chkval=1370877,moe=moe50) %let Pctof=; %let lvl=1; %let display=0; %calc_moe(m1=B01001m30,m2=B01001m31); %dovar(Women15to19,%nrbquote(Women 15 to 19 years of age),B01001i30+B01001i31,moe=_tempmoe) %calc_moe(m1=B01001m32,m2=B01001m33,m3=B01001m34,m4=B01001m35,m5=b01001m36); %dovar(Women20to34,%nrbquote(Women 20 to 34 years of age),B01001i32+B01001i33+B01001i34+B01001i35+B01001i36,moe=_tempmoe) %calc_moe(m1=B01001m37,m2=B01001m38,m3=B01001m39,m4=B01001m40/5); %dovar(Women35to50,%nrbquote(Women 35 to 50 years of age),B01001i37+B01001i38+B01001i39+(B01001i40)/5,moe=_tempmoe) %let display=1; %dovar( UnmarriedGivingBirthPerk,%nrbquote(Per 1,000 unmarried women), d51,chkval=35,moe=moe51,wtvar=UnmarriedWomen15to50) %dovar( GivingBirthPerk,%nrbquote(Per 1,000 women 15 to 50 years old),d52,chkval=55,moe=moe52,wtvar=Women15to50) %dovar( BirthRate15_19,%nrbquote(Per 1,000 women 15 to 19 years old),d53,chkval=26,moe=moe53,wtvar=Women15to19) %dovar( BirthRate20_34,%nrbquote(Per 1,000 women 20 to 34 years old),d54,chkval=104,moe=moe54,wtvar=Women20to34) %dovar( BirthRate35_50,%nrbquote(Per 1,000 women 35 to 50 years old),d55,chkval=23,moe=moe55,wtvar=Women35to50) %let display=1; %let table=GRANDPARENTS as Caregivers; %let lvl=0; %let pctof=; %let universe=Grandparents living with own grandchildren under 18 year; %let RefTables=B10002; %dovar(GrandPrntsLvngWithGrndkid,%nrbquote(Grandparents living with own grandchildren under 18 years),d58,chkval=6062034,moe=moe58) %let lvl=1; %let Pctof=GrandPrntsLvngWithGrndkid; %dovar( GrandPrntsCaring,%nrbquote(Responsible for grandchildren),d59,chkval=2455102,moe=moe59) %let Pctof=GrandPrntsCaring; %let lvl=2; %dovar( GrandPrntsCaringLT1,%nrbquote(Less than 1 year),d61,chkval=553508,moe=moe61) %let RefTables=B10050; %dovar( GrandPrntsCaring1or2,%nrbquote(1 or 2 years),d62,chkval=589685,moe=moe62) %calc_moe(m1=moe63,m2=moe64); %dovar( GrandPrntsCaring3or4,%nrbquote(3 or 4 years),d63,chkval=393958,moe=moe63) %dovar( GrandPrntsCaring5orMore,%nrbquote(5 or more years),d64,chkval=917951,moe=moe64) %let table=SCHOOL ENROLLMENT; %let lvl=0; %let pctof=Totpop; %let universe=Population 3 years of age and over; %let RefTables=B14001; %let display=0; %*NOTE: This was mislabeled prior to fixing 11-09 saying 3 years and over enrolled in school. But it is everybody over 3, not just those enrolled. (That is EnrolledOver3)-; %dovar(Over3,%nrbquote(Population 3 years and over), B14001i1,moe=B14001m1) %let display=1; %let pctof=Over3; %dovar(EnrolledOver3,%nrbquote(Population 3 years and over enrolled in school), d71,chkval=79121944,moe=moe153) %let Pctof=EnrolledOver3; %let lvl=1; %dovar( InNursery,%nrbquote(In nursery school, preschool),d72,chkval=4901007,moe=moe72) %dovar( InKindergarten,%nrbquote(In kindergarten),d73,chkval=4012680,moe=moe73) %dovar( InElementary,%nrbquote(In elementary school, grades 1-8),d74,chkval=32256951,moe=moe74) %dovar( InHighSchool,%nrbquote(In High school, ie. grades 9-12),d75,chkval=17500473,moe=moe75) %dovar( InCollege,%nrbquote(In College or graduate school),d76,chkval=20450833,moe=moe76) %let table=EDUCATIONAL ATTAINMENT; %let lvl=0; %let pctof=; %let universe=Population 25 years and over; %let RefTables=C15002; %dovar( Over25,%nrbquote(Population 25 years and over),d79,chkval=195932824,moe=moe79) %let Pctof=Over25; %let lvl=1; %dovar( LessThan9th,%nrbquote(Less than 9th grade),d80,chkval=12743555,moe=moe80) %dovar( SomeHighSchool,%nrbquote(9th to 12th grade, no diploma),d81,chkval=18502540,moe=moe81) %dovar( HighSchool,%nrbquote(High school graduate, includes equivalency),d82,chkval=59123954,moe=moe82) %dovar( SomeCollege,%nrbquote(Some college, no degree),d83,chkval=38185678,moe=moe83) %dovar( Associates,%nrbquote(Associates degree),d84,chkval=14486202,moe=moe84) %dovar( Bachelors,%nrbquote(Bachelors degree),d85,chkval=33496187,moe=moe85) %dovar( GradProf,%nrbquote(Graduate or professional degree),d86,chkval=19394708,moe=moe86) %let lvl=0; %calc_moe(m1=moe82,m2=moe83,m3=moe84,m4=moe85,m5=moe86); %dovar( HighSchoolOrMore,%nrbquote(High school graduate or higher), d82+d83+d84+d85+d86,moe=_tempmoe) %calc_moe(m1=moe85,m2=moe86); %dovar( Bachelorsormore,%nrbquote(Bachelor degree or higher), d85+d86,chkval=,moe=_tempmoe) %let table=VETERAN STATUS; %let lvl=0; %let pctof=; %let universe=Civilian population 18 years and over; %let Pctof=Over18; %let RefTables=B21001; %dovar( ArmedForces,%nrbquote(In Military),d203,chkval=989222,moe=moe203) %dovar( Civilian,%nrbquote(Civilian population 18 years and over),d92,chkval=224648294,moe=moe92) %let lvl=1; %let Pctof=Civilian; %dovar( Veteran,%nrbquote(Civilian veterans),d93,chkval=23425051,moe=moe93) %*let display=0; %let table=DISABLED BY AGE; %let lvl=0; %let pctof=; %let universe=Civilan Noninstitutionalized population over 5; %let RefTables=B18001; %dovar(DisabledUniv5,%nrbquote(Civian non institutionalized persons 5 years and over), d96,chkval=273835465,moe=moe96) %let Pctof=DisabledUniv5; %let lvl=2; %dovar( Disabled,%nrbquote(With a disability),d97,chkval=41259809,moe=moe97) %let lvl=1; %dovar( DisabledUniv5_15,%nrbquote(Persons 5 to 15 years),d99,chkval=44696789,moe=moe99) %let pctof=DisabledUniv5_15; %let lvl=2; %dovar( Disabled5_15,%nrbquote(With a disability),d100,chkval=2829622,moe=moe100) %let lvl=1; %let pctof=DisabledUniv5; %dovar( DisabledUniv16_64,%nrbquote(Persons 16 to 64 years),d102,chkval=193568216,moe=moe102) %let pctof=DisabledUniv16_64; %let lvl=2; %dovar( Disabled16_64,%nrbquote(With a disability),d103,chkval=23863097,moe=moe103) %let lvl=1; %let Pctof=DisabledUniv5; %dovar( DisabledUniv65,%nrbquote(Persons 65 years and over),d105,chkval=35570460,moe=moe105) %let pctof=DisabledUniv65; %let lvl=2; %dovar( DisabledElder,%nrbquote(With a disability),d106,chkval=14567090,moe=moe106) %let display=1; %let table=RESIDENCE 1 YEAR AGO; %let lvl=0; %let pctof=; %let universe=Population 1 year of age and older; %let RefTables=B07002; %dovar( Over1,%nrbquote(Population 1 year and over),d109,chkval=295345172,moe=moe109) %let Pctof=Over1; %let lvl=1; %dovar( SameHouse,%nrbquote(Same house),d110,chkval=245677993,moe=moe110) %dovar( DiffHouse,%nrbquote(Different house in the U.S.),d111,chkval=47776225,moe=moe111) %let lvl=2; %dovar( DiffHouseSameCounty,%nrbquote(Same county, different house),d112,chkval=29298359,moe=moe112) %dovar( DiffCounty,%nrbquote(Different county),d113,chkval=18477866,moe=moe113) %let lvl=3; %dovar( DiffCntySameState,%nrbquote(Different county, Same state),d114,chkval=10530806,moe=moe114) %dovar( DiffState,%nrbquote(Different state),d115,chkval=7947060,moe=moe115) %let lvl=1; %dovar( LivedAbroad,%nrbquote(Lived Abroad 1 year ago),d116,chkval=1890954,moe=moe116) %let table=Place of Birth and Citizenship Status; %let lvl=0; %let pctof=; %let universe=Total population; %let RefTables=B05002; %dovar( TotPop,%nrbquote(Total population),d119,chkval=299398485,moe=moe119 ) %let Pctof=TotPop; %let lvl=1; %dovar( USNative,%nrbquote(US Native),d120,chkval=261850696,moe=moe120) %let lvl=2; %dovar( BornInUS,%nrbquote(Born in United States),d121,chkval=258104017,moe=moe121) %let lvl=3; %dovar( BornInCurrState,%nrbquote(Born in State of current residence),d122,chkval=176467918,moe=moe122) %dovar( BornInDiffState,%nrbquote(Born in Different state than current residence),d123,chkval=81636099,moe=moe123) %let lvl=2; %dovar( BornAbroad,%nrbquote(Born in Puerto Rico, U.S. Island areas, or born abroad to American parents),d124,chkval=3746679,moe=moe124) %let lvl=1; %dovar( ForeignBorn,%nrbquote(Foreign born),d125,chkval=37547789,moe=moe125) %let Pctof=ForeignBorn; %let lvl=2; %dovar( Naturalized,%nrbquote(Naturalized U.S. citizen),d129,chkval=15767731,moe=moe129) %dovar( NonCitizen,%nrbquote(Not a U.S. citizen),d130,chkval=21780058,moe=moe130) %let table=YEAR OF ENTRY; %let lvl=0; %let pctof=; %let universe=Population born outside the United States; %let Pctof=TotPop; %let RefTables=B05005; %dovar( BornOutsideUS,%nrbquote(Population born outside the United States),d133,chkval=41294468,moe=moe133) %let Pctof=BornOutsideUS; %let lvl=1; %dovar(BornOutsideUSNative,%nrbquote(Native, born outside US), d135,chkval=3746679,moe=moe135) %let lvl=2; %let Pctof=BornOutsideUSNative; %dovar( NativeEnteredGE2000,%nrbquote(Entered US 2000 or later),d136,chkval=546422,moe=moe136) %dovar( NativeEnteredLT2000,%nrbquote(Entered US before 2000),d137,chkval=3200257,moe=moe137) %let lvl=1; %let Pctof=BornOutsideUS; %dovar( ForeignBorn,%nrbquote(Foreign born),d139,chkval=37547789,moe=moe139,dup=1) %let lvl=2; %let Pctof=ForeignBorn; %dovar( FBEnteredGE2000,%nrbquote(Entered US 2000 or later),d140,chkval=9511828,moe=moe140) %dovar( FBEnteredLT2000,%nrbquote(Entered US before 2000),d141,chkval=28035961,moe=moe141) %let table=WORLD REGION OF BIRTH OF FOREIGN BORN; %let lvl=0; %let pctof=totpop; %let universe=Foreign-born population, excluding population born at sea; %let RefTables=B05006; %dovar( FBMinusSea,%nrbquote(Foreign-born population, excluding population born at sea),d144,chkval=37547315,moe=moe144) %let Pctof=FBMinusSea; %let lvl=1; %dovar( FBEurope,%nrbquote(Europe),d145,chkval=4993135,moe=moe145) %dovar( FBAsia,%nrbquote(Asia),d146,chkval=10052929,moe=moe146) %dovar( FBAfrica,%nrbquote(Africa),d147,chkval=1375676,moe=moe147) %dovar( FBOceania,%nrbquote(Oceania),d148,chkval=181987,moe=moe148) %dovar( FBLatinAmerica,%nrbquote(Latin and Central America (includes Mexico)),d149,chkval=20088292,moe=moe149) %dovar( FBNorthAmerica,%nrbquote(Northern America),d150,chkval=855296,moe=moe150, comment=%nrbquote(Isn't this just Canada?)) %let table=LANGUAGE SPOKEN AT HOME; %let lvl=0; %let universe=Population 5 years and over; %let Pctof=TotPop; %let RefTables=B06007; %dovar( Over5,%nrbquote(Population 5 years and over),d153,chkval=279012712,moe=moe153, dup=1) %let pctof=Over5; %let lvl=1; %dovar( EnglishOnly,%nrbquote(English only),d154,chkval=224154288,moe=moe154) %dovar( OthLang,%nrbquote(Language other than English),d155,chkval=54858424,moe=moe155) %let lvl=3; %dovar( OthLangEnglishLTD,%nrbquote(Speaks English less than "very well"),d156,chkval=24212711,moe=moe156) %let lvl=2; %dovar( Spanish,%nrbquote(Speak Spanish),d157,chkval=34044945,moe=moe157) %let lvl=3; %dovar( SpanishEnglishLTD,%nrbquote(Speaks English less than "very well"),d158,chkval=16118920,moe=moe158) %let lvl=2; * Housing; TableGroup=4; SubjectGroup='Housing'; %let table=HOUSING OCCUPANCY AND TENURE; %let lvl=0; %let pctof=; %let universe=Total housing units; %let RefTables=B25014; %let pctof=; %dovar( TotHUs,%nrbquote(Total housing units),d337,chkval=126311823,moe=moe337) %let Pctof=TotHUs; %let lvl=1; %dovar( OccHUs,%nrbquote(Occupied housing units),d338,chkval=111617402,moe=moe338) %let Pctof=OccHUs; %let lvl=2; %dovar( OwnerOcc,%nrbquote(Owner-occupied),d388,chkval=75086485,moe=moe388) %dovar( RenterOcc,%nrbquote(Renter-occupied),d389,chkval=36530917,moe=moe389) %let pctof=; %let lvl=2; %dovar( AvgOwnerHHSize,%nrbquote(Average household size of owner-occupied unit),d391,chkval=2.71,moe=moe391,fmt=5.2,wtvar=OwnerOcc) %dovar( AvgRenterHHSize,%nrbquote(Average household size of renter-occupied unit),d392,chkval=2.41,moe=moe392,fmt=5.2,wtvar=RenterOcc) %let Pctof=TotHUs; %let lvl=1; %dovar( VacHUs,%nrbquote(Vacant housing units),d339,chkval=14694421,moe=moe339) %let lvl=2; %let Pctof=VacHUs; %dovar( VacantForSale,%nrbquote(For Sale), B25004i4, moe=B25004m4) %dovar( VacantForRent,%nrbquote(For Rent), B25004i2, moe=B25004m2) %dovar( VacantSeasonal,%nrbquote(For Seasonal, Recreational, or Occasional use), B25004i6, moe=B25004m6) %let lvl=0; %let Pctof=; %dovar( TotalOwnerUnits,%nrbquote(Total Owner Units), OwnerOcc+VacantForSale,comment=Includes vacant units for sale) %dovar( OwnerVacRate,%nrbquote(Homeowner vacancy rate),d341,chkval=2.2,moe=moe341,fmt=5.1,wtvar=TotalOwnerUnits) %dovar( TotalRentalUnits,%nrbquote(Total Rental Units),RenterOcc+VacantForRent,comment=Includes vacant units for rent) %dovar( RenterVacRate,%nrbquote(Rental vacancy rate),d342,chkval=7.7,moe=moe342,fmt=5.1,wtvar=TotalRentalUnits) %let display=0; %let pctof=totpop; %dovar( PersonsInOwnerUnits,%nrbquote(People living in owned homes), C25033i2,moe=C25033m2) %dovar( PersonsInRenterUnits,%nrbquote(People living in rental homes), C25033i6,moe=C25033m6) %let display=1; %let table=UNITS IN STRUCTURE; %let lvl=0; %let pctof=; %let Pctof=; %let RefTables=B25024; %let universe=Total housing units (including Vacant); %dovar( TotHUs,%nrbquote(Total housing units),d337,chkval=126311823,moe=moe337,dup=1) %let Pctof=TotHUs; %let lvl=1; %calc_moe(moe345,moe346); %dovar( Units1,%nrbquote(Single Family Units),d345+d346,moe=_tempmoe) %let lvl=2; %dovar( Units1Detached,%nrbquote(Single Unit, detached),d345,chkval=77604832,moe=moe345) %dovar( Units1Attached,%nrbquote(Single Unit, attached),d346,chkval=7171431,moe=moe346) %let lvl=1; %dovar( Units2,%nrbquote(Duplexes),d347,chkval=5073972,moe=moe347) %dovar( Units3_4,%nrbquote(3 or 4 units),d348,chkval=5769160,moe=moe348) %dovar( Units5_9,%nrbquote(5 to 9 units),d349,chkval=6162813,moe=moe349) %dovar( Units10_19,%nrbquote(10 to 19 units),d350,chkval=5643606,moe=moe350) %dovar( Units20up,%nrbquote(20 or more units),d351,chkval=10009529,moe=moe351) %dovar( MobileHomes,%nrbquote(Mobile home),d352,chkval=8771390,moe=moe352) %dovar( BoatRV,%nrbquote(Boat, RV, van, etc.),d353,chkval=105090,moe=moe353) %*let display=0; %let pctof=; %dovar( MobileHomesPerK,Mobile Homes Per 1000 HUs, %str(1000*MobileHomes/TotHUs),fmt=4.,wtvar=TotHUs) %let table=YEAR STRUCTURE BUILT; %let lvl=0; %let pctof=; %let universe=Total housing units; %let RefTables=B25034; %dovar( TotHUs,%nrbquote(Total housing units),d337,chkval=126311823,moe=moe337,dup=1) %let Pctof=TotHUs; %let lvl=1; %dovar( Built2005orLater,%nrbquote(Built 2005 or later), d356,chkval=2230916,moe=moe356) %dovar( Built2000_2004,%nrbquote(Built 2000 to 2004),d357,chkval=10890683,moe=moe357) %dovar( Built1990_1999,%nrbquote(Built 1990 to 1999),d358,chkval=18101683,moe=moe358) %dovar( Built1980_1989,%nrbquote(Built 1980 to 1989),d359,chkval=18311803,moe=moe359) %dovar( Built1970_1979,%nrbquote(Built 1970 to 1979),d360,chkval=21264894,moe=moe360) %dovar( Built1960_1969,%nrbquote(Built 1960 to 1969),d361,chkval=14812548,moe=moe361) %dovar( Built1950_1959,%nrbquote(Built 1950 to 1959),d362,chkval=14600528,moe=moe362) %dovar( Built1940_1949,%nrbquote(Built 1940 to 1949),d363,chkval=7602544,moe=moe363) %dovar( BuiltBefore1940,%nrbquote(Built 1939 or earlier),d364,chkval=18496224,moe=moe364) %let table=YEAR HOUSEHOLDER MOVED INTO UNIT; %let lvl=0; %let pctof=; %let universe=Occupied housing units; %let RefTables=B25038; %dovar( OccHUs,%nrbquote(Occupied housing units),d386,chkval=111617402,moe=moe386,dup=1) %let Pctof=OccHUs; %let lvl=1; %dovar( MovedIn2005orLater,%nrbquote(Moved in 2005 or later),d395,chkval=23980976,moe=moe395) %dovar( MovedIn2000_2004,%nrbquote(Moved in 2000 to 2004),d396,chkval=34708152,moe=moe396) %dovar( MovedIn1990_1999,%nrbquote(Moved in 1990 to 1999),d397,chkval=26892373,moe=moe397) %dovar( MovedIn1980_1989,%nrbquote(Moved in 1980 to 1989),d398,chkval=11602897,moe=moe398) %dovar( MovedIn1970_1979,%nrbquote(Moved in 1970 to 1979),d399,chkval=7642543,moe=moe399) %dovar( MovedInBefore1969,%nrbquote(Moved in 1969 or earlier),d400,chkval=6790461,moe=moe400) %let table=VEHICLES AVAILABLE; %let lvl=0; %let pctof=; %let universe=Occupied housing units; %let RefTables=B25044; %dovar( OccHUs,%nrbquote(Occupied housing units),d386,chkval=111617402,moe=moe386,dup=1) %let Pctof=OccHUs; %let lvl=1; %dovar( NoVehicles,%nrbquote(No vehicles available),d403,chkval=9803809,moe=moe403) %dovar( Vehicles1,%nrbquote(1 vehicle available),d404,chkval=37073490,moe=moe404) %dovar( Vehicles2,%nrbquote(2 vehicles available),d405,chkval=42411514,moe=moe405) %dovar( VehiclesGE3,%nrbquote(3 or more vehicles available),d406,chkval=22328589,moe=moe406) %let table=HOUSE HEATING FUEL; %let lvl=0; %let pctof=; %let universe=Occupied housing units; %let RefTables=B25040; %dovar( OccHUs,%nrbquote(Occupied housing units),d386,chkval=111617402,moe=moe386,dup=1) %let Pctof=OccHUs; %let lvl=1; %dovar( HHFUtilGas,%nrbquote(Utility gas),d409,chkval=56349922,moe=moe409) %dovar( HHFLPGas,%nrbquote(Bottled, tank, or LP gas),d410,chkval=6460378,moe=moe410) %dovar( HHFElectric,%nrbquote(Electricity),d411,chkval=36609110,moe=moe411) %dovar( HHFKerosene,%nrbquote(Fuel oil, kerosene, etc.),d412,chkval=8565971,moe=moe412) %dovar( HHFCoal,%nrbquote(Coal or coke),d413,chkval=137369,moe=moe413) %dovar( HHFWood,%nrbquote(Wood),d414,chkval=2025916,moe=moe414) %dovar( HHFSolar,%nrbquote(Solar energy),d415,chkval=37319,moe=moe415) %dovar( HHFOther,%nrbquote(Other fuel),d416,chkval=460951,moe=moe416) %dovar( HHFNoFuel,%nrbquote(No fuel used),d417,chkval=970466,moe=moe417) %let table=SELECTED CHARACTERISTICS; %let lvl=0; %let pctof=; %let universe=Occupied housing units; %let RefTables=; %dovar( OccHUs,%nrbquote(Occupied housing units),d386,chkval=111617402,moe=moe386,dup=1) %let Pctof=OccHUs; %let lvl=1; %let RefTables=B25049; %dovar( NoPlumbing,%nrbquote(Lacking complete plumbing facilities),d420,chkval=475302,moe=moe420) %let RefTables=B25052; %dovar( NoKitchen,%nrbquote(Lacking complete kitchen facilities),d421,chkval=643747,moe=moe421) %dovar( NoPhone,%nrbquote(No telephone service available),d422,chkval=6571249,moe=moe422) %let table=OCCUPANTS PER ROOM; %let lvl=0; %let pctof=; %let universe=Occupied housing units; %let RefTables=B25014; %dovar( OccHUs,%nrbquote(Occupied housing units),d386,chkval=111617402,moe=moe386,dup=1) %let Pctof=OccHUs; %let lvl=1; %*---Edited this 8/09. For some reason we had RoomLow instead of PersonsPerRoomLow. --; %dovar( PersonsPerRoomLow,%nrbquote(1.00 or less),d425,chkval=108282494,moe=moe425) %dovar( PersonsPerRoomMedium,%nrbquote(1.01 to 1.50),d426,chkval=2568275,moe=moe426) %dovar( PersonsPerRoomHigh,%nrbquote(1.51 or more),d427,chkval=766633,moe=moe427) %let table=HOME VALUES; %let lvl=0; %let pctof=; %let universe=Owner-occupied units; %let RefTables=B25075; %dovar( OwnerOcc,%nrbquote(Owner-occupied units),d429,chkval=75086485,moe=moe429,dup=1) %let Pctof=OwnerOcc; %let lvl=1; %dovar( HvalUnder50,%nrbquote(Less than $50,000),d431,chkval=6083637,moe=moe431) %dovar( Hval50,%nrbquote($50,000 to $99,999),d432,chkval=11975080,moe=moe432) %dovar( Hval100,%nrbquote($100,000 to $149,999),d433,chkval=12019215,moe=moe433) %dovar( Hval150,%nrbquote($150,000 to $199,999),d434,chkval=10076286,moe=moe434) %dovar( Hval200,%nrbquote($200,000 to $299,999),d435,chkval=11924864,moe=moe435) %dovar( Hval300,%nrbquote($300,000 to $499,999),d436,chkval=12728126,moe=moe436) %dovar( Hval500,%nrbquote($500,000 to $999,999),d437,chkval=8453164,moe=moe437) %dovar( HvalOverMillion,%nrbquote($1,000,000 or more),d438,chkval=1826113,moe=moe438) %let pctof=; %dovar( MedianHValue,%nrbquote(Median Home Value),d439,chkval=185200,moe=moe439,fmt=dollar9.,wtvar=OwnerOcc) %dovar( AvgHValue,%nrbquote(Average Home Value),b25082i1/OwnerOcc,fmt=dollar9.,wtvar=OwnerOcc) %let table=SELECTED MONTHLY OWNER COSTS; %let lvl=0; %let universe=Owner Occupied units; %dovar( OwnerOcc,%nrbquote(Owner-occupied units),d429,chkval=75086485,moe=moe429,dup=1) %let lvl=1; %let pctof=OwnerOcc; %let RefTables=B25091; %dovar( HUsMort,%nrbquote(Housing units with a mortgage),d442,chkval=51234170,moe=moe442) %let lvl=2; %calc_moe(moe464,moe465); %dovar( HUsMortOver30Pct,%nrbquote(Owner Costs 30% or more of HH income),d464+d465,moe=_tempmoe) %let pctof=; %let RefTables=B25092; %dovar( MedianOwnerCostsMort,%nrbquote(Median Owner Costs),d450,chkval=1402,moe=moe450, fmt=dollar9.,wtvar=HUsMort) %let pctof=OwnerOcc; %let lvl=1; %dovar( HUsNoMort,%nrbquote(Housing units without a mortgage),d451,chkval=23852315,moe=moe451) %let lvl=2; %calc_moe(moe473,moe474); %dovar( HUsNoMortOver30Pct,%nrbquote(Non Mortgage Owner Costs 30% or more of HH Income),d473+d474,moe=_tempmoe) %let pctof=; %dovar( MedianOwnerCostsNoMort,%nrbquote(Median Owner Costs),d457,chkval=399,moe=moe457, fmt=dollar9.,wtvar=HUsNoMort) %let table=GROSS RENT; %let lvl=0; %let pctof=; %let universe=Renter-occupied units; %let RefTables=; %dovar( RenterOcc,%nrbquote(Renter-occupied units),d477,chkval=36530917,moe=moe477,dup=1) %let Pctof=RenterOcc; %let lvl=1; %dovar( NoCashRenter,%nrbquote(Paying no cash rent),d486,chkval=2211206,moe=moe486) %let pctof=; %let RefTables=B25064; %dovar( MedianGrossRent,%nrbquote(Median Rent),d487,chkval=763,moe=moe487,fmt=dollar9.,wtvar=RenterOcc ) %dovar( AvgGrossRent,%nrbquote(Average Gross Rent), C25066i1/C25033i6,fmt=dollar9.,wtvar=RenterOcc) %let Pctof=RenterOcc; %calc_moe(m1=moe494,m2=moe495); %dovar( CashRenterOver30Pct,%nrbquote(Gross Rent 30% or more of HH Income),d494+d495,moe=_tempmoe) %calc_moe(m1=moe483,m2=moe484,m3=moe485); %let RefTables=B25063; %dovar( CashRenterOver750,%nrbquote(Gross Rent of $750 or more),d483+d484+d485,moe=_tempmoe); */ DateCreated="&sysdate";