x cd /pub/data/acs2010/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas";
/*--Invoke the %doset macro to create observations in the Datasets dataset for this directory.
J. Blodgett, OSEDA, Sep. 2011
-- */
title "Job to Invoke doset Macro for Sets in acs2010, creating acs2010.datasets";
*---This job had a complete start-over circa 3/6/2012 10:19:18 AM after major reworking of the data.---;
%let todolist=uszctas5yr;
%let libnameG=acs2010;
libname acs2010 '/pub/data/acs2010';
/*<=========================Comment out=====================================
*-----Run this step ONLY ONCE------------------------------------------;
*----If you need to rerun (start over) then delete the datasets dataset first. doset will not
allow initialize mode if the datasets set already exists.---;
%doset(mode=initialize,
libname=acs2010,debug=1);
===========================End commented out================================ */
*----------------------------------------------------------------------;
%doset(
memname=usmcdcprofiles ,memlabel=%str(Single year 2010 summaries for all areas with pop of at least 65000),
libname =acs2010,
units=us state county place puma cd etc,
years=2010,
universe=United States,
keyvars=sumlev state county placefp,
keyfmats=sumlev state county place,
keyquals= | | | state,
Description = %nrbquote(Data for all large US geographies, 2010 1-year Period Estimates),
UsageNotes=%nrbquote(
- "Large" means a minimum of 65,000 population in 2010.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
- This dataset was regenerated Oct 10, 2011 after a thorough review of the previous version created 9-26-11. We had to write all
new code this cycle due to changes in the input formats available to us. We are also now having to use formulae to estimate many MOE
values rather than reading the values published by the Bureau.
),
debug=0);
%doset(
memname=usmcdcprofiles3yr,
libname =acs2010,
units=us state county place puma cd etc,
years=%str(2008-2010),
universe=United States,
keyvars=sumlev state county placefp,
keyfmats=sumlev state county place,
keyquals= | | | state,
Description = %nrbquote(Data for all large and medium US geographies, 2008-2010 3-year Period Estimates),
UsageNotes=%nrbquote(- "Large" means a minimum of 65,000 and "medium" 20,000 population in 2010.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usmcdcprofiles5yr,
libname =acs2010,
units=us state county place puma cd tract etc,
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county placefp geocomp,
keyfmats=sumlev state county place geocomp,
keyquals= | | | state,
Description = %nrbquote(Data for all US geographies, regardless of pop size, 5-year Period Estimates),
UsageNotes=%nrbquote(- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Census geography (census tracts and county subdivisions) are 2010 for the first time.
- Geographic ID variables on this dataset are not complete. See 5yr us geography-specific sets for complete geocodes.
- There is no block group level data here.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usmcdcprofiles5yr2,
libname =acs2010,
units=us state county place puma cd tract etc,
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county placefp geocomp,
keyfmats=sumlev state county place geocomp,
keyquals= | | | state,
Description = %nrbquote(Alternate version of usmcdcprofiles5yr but with all MOE variables moved to the end of the observations),
UsageNotes=%nrbquote(- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Census geography (census tracts and county subdivisions) are 2010 for the first time.
- Geographic ID variables on this dataset are not complete. See 5yr us geography-specific sets for complete geocodes.
- There is no block group level data here.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usgeocomps5yr,memlabel=%str(Period Estimates (2006-2010 5-year) for all US Geographic Components),
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=str(us state region division etc/geocomp),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state geocomp,
keyfmats=sumlev state geocomp,
keyquals=%str( | | | ) ,
Description = %nrbquote(Data for all US geographic components, such as urban and rural portions, 5-year Period Estimates),
UsageNotes=%nrbquote(- This is a subset of the usmcdcprofiles5yr2 data set,
- Urban and Rural summaries use the 2000-census-based definitions.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usregdiv5yr,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=str(us region division),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev ,
keyfmats=sumlev,
Description = %nrbquote(Data for US (nation totals), Regions, and Division),
UsageNotes=%nrbquote(- This is a subset of the usmcdcprofiles5yr2 data set,
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usstcnty5yr,
libname =acs2010,
units=State County,
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county cbsa,
keyfmats=sumlev state county cbsa,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US States Counties and Equivalents),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data
- From the SF1 dataset we added pop counts from 2000 and 2010 censuses,
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usplaces5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(place and place/county),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county placefp,
keyfmats=sumlev state county place,
keyquals=%str(| | | state),
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US Cities),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- Has both summary levels 160 and 155. The latter is place-within-county. No SF1 data for the 155 summaries.
- County variable is blank on 160 level summaries.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=uscousubs5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(mcds (county subdivisions)),
years=%str(2006-2010),
universe=United States,
keyvars=state county lsadc,
keyfmats=state county lsadc,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US County Subdivisions),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- County subs go by various names in different states. Called Towns in New England and mid-Atlantic states, Townships in Missouri.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=uscdslds5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(cd sldu sldl),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county ,
keyfmats=sumlev state county,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US Congressional and State Legislative Districts),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- CDs are 111th Congress (2009) and SLDs are as of 2009, prior to post-census redistricting.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=ustracts5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(2010 census tract),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state county cbsa,
keyfmats=sumlev state county cbsa,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US Census Tracts),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- These are the 2010 tracts. They do no match the 2000 census tracts used on the 2005-2009 data from last year.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usschools5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(School District),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev state,
keyfmats=sumlev state,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US School Districts),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- There are 3 kinds of districts: elementary, secondary and unified. The types vary by state.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=uspumas5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(2010 PUMAs),
years=%str(2006-2010),
universe=United States,
keyvars=state,
keyfmats=state,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US Public Use Microdata Areas),
UsageNotes=%nrbquote(
- These are the 2000 PUMAs. The 2010 PUMAs have not yet been finalized. These are the same codes currently being used on the ACS
PUMS files.
- There is no SF1 data on this dataset.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usurbareas5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(2002 Urban Areas),
years=%str(2006-2010),
universe=United States,
keyvars=,
keyfmats=,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US Urban Clusters and Urbanized Areas),
UsageNotes=%nrbquote(- No SF1 data on this data set.
- These are complete areas. There are no within-state summaries and state codes are not defined.
- These are the UAs defined circa 2002 based on pop densities found in the 2k census. 2010 UAs have not yet been assigned.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
),
debug=0);
%doset(
memname=usmetros5yr,memlabel=,
libname =acs2010,
CreatePgm=mcdcprofiles5yr,
units=%str(2010 Metro Areas),
years=%str(2006-2010),
universe=United States,
keyvars=sumlev cbsa csa metdiv state,
keyfmats=sumlev cbsa csa metrodiv state,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US CBSAs, CSAs, Metro Divs and New England Metro Areas),
UsageNotes=%nrbquote(- Created by merging usmcdcprofiles5yr2 with 2010 SF1 data.
- Contains complete and within-state summaries.
- CBSA is blanket term for Metropolitan and Micropolitan Statistical Areas.
- Weighting scheme change starting with this year to incorporate results of 2010 census.
- Contains both estimates and MOE (margin of error) values
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
),
debug=0);
%doset(
memname=uszctas5yr,memlabel=,
libname =acs2010,
CreatePgm=uszcta_allocation,
units=%str(ZCTAs within State),
years=%str(2006-2010),
universe=United States,
keyvars=state,
keyfmats=state,
Description = %nrbquote(Period Estimates (2006-2010 5-year) for all US ZCTAs, Allocated from tract level data),
UsageNotes=%nrbquote(- Created by using a 2010 census tract to 5-digit ZCTA equivalency file and data in ustracts5yr
- Contains level 871 summaries: State-ZCTA. Sorted by state and ZCTA.
- We made no attempt to allocate/aggregate the margin of error values.
- Medians were estimated by taking (population) weighted averages of the medians in the allocated tracts.
- The Census Bureau has indicated they plan to publish ZCTA level data for 2007-2011 late in 2012. So we should not have to
do this estimation again.
),
debug=0);
proc sort data=acs2010.datasets out=bysortprio; by sortprio; run;
proc datasets library=acs2010 nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options mprint msglevel=i;
%gendshtm(libname=acs2010,debug=1,runprocc=1);