Specs for Creating the acs2005 Standard Extract Datasets ======================================================== jgb, 9/19/2006 11:28AM We want to create datasets that have variables which are modeled after our 2000 Census-based sf32000x compilations. We want to have comparable variables, where available, using the same names and labels and percentage denominators as we used for the sf32000x collection. So we'll want to use our invoke_dovars.sas module from sf32000x/Tools as a template for creating (initially) the new dataset. While the source data for sf3200x was usually just a single sf32000 complete-table dataset, things are a bit more complicated for acs2005. We will multiple input datasets which each contain individual tables. These are the B and C ("base") tables, as stored in the acs2005/btabs directory, and the data profile tables as stored in the acs2005/profiles subdirectory. We just need to maintain a list of the tables that we need to access and then we'll just have a big SAS merge stmt that references all of them. Note that geography is a lot simpler on acs2005 that it was on sf3, since we have such a limited set of cases. We'll start out by just creating a single dataset for the entire US and then we can easily create subsets from there. We need to use comments liberally as we do these defns in order to highlight things that are different between the variable on sf32000x with the same name. We will modify the dovar macro so that it recognizes a new global "flag" variable called &_moe. When the flag is set (has a value of 1, or true) then the program will generate and keep a margin-of-error variable. This variable will be named _moe and it will be assigned by the macro. It will only do this if the definition items consists of a single variable and if it finds the corresponding margin-of-error variable. As far as the invoke_dovars module goes, we just need to include a %let _moe=1; statement at the top and otherwise not worry about it. Once we have completed replicating as many as possible of the sf32000x variables, we can begin looking at other possible variables to be added. We should probably consider any item in one of the Bureau's dp1 thru dp4 tables as a likely candidate.