Changeset 19658 in main


Ignore:
Timestamp:
12/29/19 15:48:11 (3 years ago)
Author:
LoisHaggard_NM
Message:

NM SAS files for ACS, updated to 2017 data version before beginning 2018 data

Location:
adopters/nm/trunk/src/main/sas/acs/programs
Files:
84 added
53 edited

Legend:

Unmodified
Added
Removed
  • adopters/nm/trunk/src/main/sas/acs/programs/1ACSInputData.sas

    r13269 r19658  
    1212 * to change occasionally. I have used the 2012 var names so that all vars have the same name  ;
    1313 * in every year. Use P:\ACS\programs\INCLUDE\InputDatasetMetaData_LMH.xlsx to verify variable ;
    14  * sequence and content.                                                                       ;                                                                                             ;
    15  *                                                                                             ;                                                                                             ;
     14 * sequence and content.                                                                       ;
     15 *                                                                                             ;
    1616 * Created by: Lois Haggard 12/30/13                                                           ;
    1717 * Last Modified:                                                                              ;
     
    2020 *  - 12/09/2015, Lois H., to include 2010-2014 5-yr estimates.                                ;
    2121 *  - 12/23/2016, Lois H., to include 2011-2015 5-yr estimates.                                ;
     22 *  - 12/07/2017, Lois H., to include 2012-2016 5-yr estimates.                                ;
     23 *  - 12/06/2018, Lois H., to include 2013-2017 5-yr estimates.                                ;
     24 *  - 12/14/2018, Lois H., to include tribal census tracts                                     ;
    2225 *  -                                                                                          ;
    2326 **********************************************************************************************;
     
    4245****************************************************************;
    4346
    44         DATA Social_DP02_11;
    45                 infile 'P:\ACS\data\ORIG\ACS_11_5YR_DP02_with_ann.csv'
    46                         dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    47                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_11_12.sas' ;
    48                 year=2009; *MID-POINT YEAR IN 5-YR ACS DATASET;
    49                 run;
     47        DATA Popn_S0101_12;
     48                infile 'P:\ACS\data\ORIG\ACS_12_5YR_S0101_with_ann.csv'
     49                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     50                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2012.sas' ;
     51                year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET;
     52                run;
     53        DATA Popn_S0101_13;
     54                infile 'P:\ACS\data\ORIG\ACS_13_5YR_S0101_with_ann.csv'
     55                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     56                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2012.sas' ; 
     57                year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET;               /*In 2013, 3 vars about computer and internet usage were added at the end */
     58                run;
     59        DATA Popn_S0101_14;
     60                infile 'P:\ACS\data\ORIG\ACS_14_5YR_S0101_with_ann.csv'
     61                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     62                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2012.sas' ;
     63                year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET;
     64                run;
     65        DATA Popn_S0101_15;
     66                infile 'P:\ACS\data\ORIG\ACS_15_5YR_S0101_with_ann.csv'
     67                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     68                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2012.sas' ;
     69                year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET;
     70                run;
     71        DATA Popn_S0101_16;
     72                infile 'P:\ACS\data\ORIG\ACS_16_5YR_S0101_with_ann.csv'
     73                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     74                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2012.sas' ;
     75                year=2014; *MID-POINT YEAR IN 5-YR ACS DATASET;
     76                run;
     77        DATA Popn_S0101_17;
     78                infile 'P:\ACS\data\ORIG\ACS_17_5YR_S0101_with_ann.csv'
     79                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     80                %INCLUDE 'P:\ACS\programs\INCLUDE\Input5PopnS0101_2017.sas' ;
     81                year=2015; *MID-POINT YEAR IN 5-YR ACS DATASET;
     82                run;
     83                DATA sections.popn_s0101;
     84                        set Popn_S0101_12 Popn_S0101_13 Popn_S0101_14 Popn_S0101_15 Popn_S0101_16 Popn_S0101_17;
     85                        %INCLUDE 'P:\ACS\programs\INCLUDE\InputPopPctData.sas' ;
     86                run;
     87
     88                /*
     89                proc contents data=sections.popn_s0101; run;
     90                proc print data=sections.popn_s0101 noobs;
     91                        var year geolong geoid ageACS5_17T ageACS0_17T ageACS0_18T ageACS65_T ageACS18_64T ageACS19_64T;
     92                        title 'popn_s0101';
     93                        run;
     94                */
     95
    5096        DATA Social_DP02_12;
    5197                infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP02_with_ann.csv'
    5298                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    53                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_11_12.sas' ;
     99                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2012.sas' ;
    54100                year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET;
    55101                run;
     
    57103                infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP02_with_ann.csv'
    58104                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    59                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_13_.sas' ; 
     105                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2013.sas' ; 
    60106                year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET;               /*In 2013, 3 vars about computer and internet usage were added at the end */
    61107                run;
     
    63109                infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP02_with_ann.csv'
    64110                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    65                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_13_.sas' ;
     111                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2013.sas' ;
    66112                year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET;
    67113                run;
     
    69115                infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP02_with_ann.csv'
    70116                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    71                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_13_.sas' ;
     117                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2013.sas' ;
    72118                year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET;
    73119                run;
     120        DATA Social_DP02_16;
     121                infile 'P:\ACS\data\ORIG\ACS_16_5YR_DP02_with_ann.csv'
     122                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     123                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2013.sas' ;
     124                year=2014; *MID-POINT YEAR IN 5-YR ACS DATASET;
     125                run;
     126        DATA Social_DP02_17;
     127                infile 'P:\ACS\data\ORIG\ACS_17_5YR_DP02_with_ann.csv'
     128                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     129                %INCLUDE 'P:\ACS\programs\INCLUDE\Input2SocDP02_2013.sas' ;
     130                year=2015; *MID-POINT YEAR IN 5-YR ACS DATASET;
     131                run;
    74132                DATA sections.Social_DP02;
    75                         set Social_DP02_11 Social_DP02_12 Social_DP02_13 Social_DP02_14 Social_DP02_15;
    76                         drop trash1 trash2;
     133                        set Social_DP02_12 Social_DP02_13 Social_DP02_14 Social_DP02_15 Social_DP02_16 Social_DP02_17;
     134                        drop geotext;
    77135                run;
    78136
    79137                /*
    80138                proc contents data=sections.Social_DP02; run;
    81                 proc print data=sections.Social_DP02 (obs=10);
    82                         title 'Social Char by 2010 Census Tract' ;
    83                         run;
    84                 proc freq data=sections.Social_DP02;
    85                         tables geoid*year / nopercent norow nocol missprint;
     139                proc print data=sections.Social_DP02 noobs;
     140                        var year geolong geoid;
     141                        title 'Social_DP02';
    86142                        run;
    87143                */
    88144
    89         DATA Econ_DP03_11;
    90                 infile 'P:\ACS\data\ORIG\ACS_11_5YR_DP03_with_ann.csv'
    91                         dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    92                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_11_12.sas' ;
    93                 year=2009; *MID-POINT YEAR IN 5-YR ACS DATASET;
    94                 run;
    95145        DATA Econ_DP03_12;
    96146                infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP03_with_ann.csv'
    97147                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    98                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_11_12.sas' ;
     148                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;
    99149                year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET;
    100150                run;
     
    102152                infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP03_with_ann.csv'
    103153                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    104                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_11_12.sas' ;/*Continue to use the 11_12 input statements, the var nums changed but the order and meaning did not.*/
     154                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;/*Continue to use the 11_12 input statements, the var nums changed but the order and meaning did not.*/
    105155                year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET;
    106156                run;
     
    108158                infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP03_with_ann.csv'
    109159                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    110                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_11_12.sas' ;
     160                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;
    111161                year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET;
    112162                run;
     
    114164                infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP03_with_ann.csv'
    115165                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    116                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_11_12.sas' ;
     166                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;
    117167                year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET;               
    118168                run;
     169        DATA Econ_DP03_16;
     170                infile 'P:\ACS\data\ORIG\ACS_16_5YR_DP03_with_ann.csv'
     171                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     172                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;
     173                year=2014; *MID-POINT YEAR IN 5-YR ACS DATASET;               
     174                run;
     175        DATA Econ_DP03_17;
     176                infile 'P:\ACS\data\ORIG\ACS_17_5YR_DP03_with_ann.csv'
     177                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     178                %INCLUDE 'P:\ACS\programs\INCLUDE\Input3EconDP03_2012.sas' ;
     179                year=2015; *MID-POINT YEAR IN 5-YR ACS DATASET;               
     180                run;
    119181        DATA sections.Econ_DP03;
    120                         set Econ_DP03_11 Econ_DP03_12 Econ_DP03_13 Econ_DP03_14 Econ_DP03_15;
    121                         drop trash1 trash2;
     182                        set Econ_DP03_12 Econ_DP03_13 Econ_DP03_14 Econ_DP03_15 Econ_DP03_16 Econ_DP03_17;
     183                        drop geotext;
    122184                run;
    123185
    124186                /*
    125187                proc contents data=sections.Econ_DP03; run;
    126                 proc print data=sections.Econ_DP03 (obs=9);
    127                         title 'Economic Char by 2010 Census Tract' ;
    128                         run;
    129                 proc freq data=sections.Econ_DP03;
    130                         tables geoid*year / nopercent norow nocol missprint;
     188                proc print data=sections.Econ_DP03 noobs;
     189                        var year geolong geoid;
     190                        title 'Econ_DP03';
    131191                        run;
    132192                */
    133193
    134         DATA Housing_DP04_11;
    135                 infile 'P:\ACS\data\ORIG\ACS_11_5YR_DP04_with_ann.csv'
    136                         dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    137                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_11_12.sas' ;
    138                 year=2009; *MID-POINT YEAR IN 5-YR ACS DATASET;
    139                 run;
    140194        DATA Housing_DP04_12;
    141195                infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP04_with_ann.csv'
    142196                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    143                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_11_12.sas' ;
     197                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2012.sas' ;
    144198                year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET;
    145199                run;
     
    147201                infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP04_with_ann.csv'
    148202                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    149                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_11_12.sas' ;
     203                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2012.sas' ;
    150204                year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET;
    151205                run;
     
    153207                infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP04_with_ann.csv'
    154208                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    155                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_11_12.sas' ;
     209                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2012.sas' ;
    156210                year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET;
    157211                run;
     
    159213                infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP04_with_ann.csv'
    160214                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
    161                 %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_15_.sas' ; /* The 2015 5-yr file includes additional variables for age of house and different cut-off points for smocapi*/
     215                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2015.sas' ; /* The 2015 5-yr file includes additional variables for age of house and different cut-off points for smocapi*/
    162216                year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET;             /* The input file was adjusted to input the vars using the old var names for the vars that are used. */
    163217                run;
     218        DATA Housing_DP04_16;
     219                infile 'P:\ACS\data\ORIG\ACS_16_5YR_DP04_with_ann.csv'
     220                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     221                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2015.sas' ;
     222                year=2014; *MID-POINT YEAR IN 5-YR ACS DATASET;
     223                run;
     224        DATA Housing_DP04_17;
     225                infile 'P:\ACS\data\ORIG\ACS_17_5YR_DP04_with_ann.csv'
     226                        dlm=',' MISSOVER DSD lrecl=9000 firstobs=3 ;
     227                %INCLUDE 'P:\ACS\programs\INCLUDE\Input4HousDP04_2015.sas' ;
     228                year=2015; *MID-POINT YEAR IN 5-YR ACS DATASET;
     229                run;
    164230        DATA sections.Housing_DP04;
    165                         set Housing_DP04_11 Housing_DP04_12 Housing_DP04_13 Housing_DP04_14 Housing_DP04_15;
    166                         *These are variables that changed in meaning over time;
    167                         Drop trash1  trash2 
     231                        set Housing_DP04_12 Housing_DP04_13 Housing_DP04_14 Housing_DP04_15 Housing_DP04_16 Housing_DP04_17;
     232                        *The drop vars are variables that changed in meaning over time;
     233                        Drop  geotext 
    168234                                Hous_HC01_VC26   Hous_HC02_VC26   Hous_HC03_VC26   Hous_HC04_VC26 
    169235                                Hous_HC01_VC27   Hous_HC02_VC27   Hous_HC03_VC27   Hous_HC04_VC27 
     
    214280                                Hous_HC01_VC183  Hous_HC02_VC183  Hous_HC03_VC183  Hous_HC04_VC183 
    215281                                Hous_HC01_VC184  Hous_HC02_VC184  Hous_HC03_VC184  Hous_HC04_VC184 ; 
    216 
    217 
    218282                run;
    219283
    220284                /*
    221285                proc contents data=sections.Housing_DP04; run;
    222                 proc print data=sections.Housing_DP04 (obs=10);
    223                         title 'Housing Char by 2010 Census Tract' ;
    224                         run;
    225                 proc freq data=sections.Housing_DP04;
    226                         tables geoid*year / nopercent norow nocol missprint;
     286                proc print data=sections.Housing_DP04 noobs;
     287                        var year geolong geoid;
     288                        title 'Housing_DP04';
    227289                        run;
    228290                */
    229291
    230         proc sort data=sections.Social_DP02; by geoid year; run;
    231         proc sort data=sections.Econ_DP03; by geoid year; run;
    232         proc sort data=sections.Housing_DP04; by geoid year; run;
     292        proc sort data=sections.popn_s0101; by geolong year; run;
     293        proc sort data=sections.social_dp02; by geolong year; run;
     294        proc sort data=sections.econ_dp03; by geolong year; run;
     295        proc sort data=sections.housing_dp04; by geolong year; run;
    233296
    234297****************************************************************;
     
    241304        DATA acs_geoid;
    242305                merge
    243                 sections.social_DP02
    244                 sections.econ_DP03
    245                 sections.housing_DP04
     306                sections.popn_s0101
     307                sections.social_dp02
     308                sections.econ_dp03
     309                sections.housing_dp04
    246310                ;
    247                 by geoid year;
     311                by geolong year;
     312                if substr(geolong,1,4) = "610U" then do;
     313                        format senprefix $6.;
     314                        senprefix="Senate";
     315                        geolongish=cat(senprefix,geoid);
     316                end;
     317                if substr(geolong,1,4) = "620L" then do;
     318                        format hseprefix $5.;
     319                        hseprefix="House";
     320                        geolongish=cat(hseprefix,geoid);
     321                end;
    248322                run;
    249323
    250324/*
     325
     326                proc freq data=sections.popn_s0101;
     327                        tables geolong*year / nopercent norow nocol missprint;
     328                        run;
     329                proc freq data=sections.social_dp02;
     330                        tables geolong*year / nopercent norow nocol missprint;
     331                        run;
     332                proc freq data=sections.econ_dp03;
     333                        tables geolong*year / nopercent norow nocol missprint;
     334                        run;
     335                proc freq data=sections.housing_dp04;
     336                        tables geolong*year / nopercent norow nocol missprint;
     337                        run;
    251338                proc freq data=acs_geoid;
    252                         tables geoid*year / missprint nopercent norow nocol;
     339                        tables geolong*year / missprint nopercent norow nocol;
    253340                        run;
    254341*/
    255342
    256343        DATA prelim.acs_all;
    257                 format sarea134 5.0 fipscode 5.0 region 5.0 fipstrct10 11.0 ;
     344                format fipscode 5.0 region 5.0 schdist 7.0 senfips 5.0 housefips 5.0 sarea134 5.0 fipstrct10 11.0 tribtrct10 9.0 nmtribe 5.0 ;
    258345                set acs_geoid;
     346
     347                if (senprefix = "Senate" or hseprefix = "House") then geolong=geolongish;
     348                drop senprefix hseprefix geolongish;
     349                if geolong=:"610" then delete; *records with old state senate ids - 3 different sets for 2-year terms;
     350                if geolong=:"620" then delete; *records with old state house ids - 3 different sets for 2-year terms;
     351
    259352                fipscode=.;
    260                 if (35001<=geoid<=35061) then do;
     353                if (geolong<=:"0500000US") then do;
    261354                        fipscode=geoid;
    262                         end;
     355                end;
     356
     357                schdist=.;
     358                if (geolong=:"9700000US") then do;
     359                        schdist=geoid;
     360                end;
     361
     362                senfips=.;
     363                if geolong=:"Senate" then do;
     364                        senfips=geoid;
     365                end;
     366
     367                housefips=.;
     368                if geolong=:"House" then do;
     369                        housefips=geoid;
     370                end;
     371
    263372                fipstrct10=.;
    264                 if (35001000107<=geoid<=35061971400) then do;
     373                if geolong=:"1400000US" then do;
    265374                        fipstrct10=geoid;
    266                         end;
    267                 if geoid=35 then fipscode=35000;  *New Mexico state overall;
    268                 if geoid=. then fipscode=1000; *United States;
     375                end;
     376
     377                tribtrct10=.;
     378        /*      if (geolong<=:"2560000US") then do;
     379                        tribtrct10=compress(geoid,'','kd'); *Strip out alphabets (Keeps only digits);
     380                end;*/
     381
     382                if geolong=:"0400000US35" then fipscode=35000;  *New Mexico state overall;
     383                if geolong=:"0100000US" then fipscode=1000; *United States;
    269384               
    270385                sarea134=.;
     
    272387               
    273388                region=.;
    274                      if fipscode in (35006 35031 35045)                                         then region=1;  *Northwest;
     389                     if fipscode in (35006 35031 35045)                                                                 then region=1;  *Northwest;
    275390                else if fipscode in (35007 35019 35021 35028 35033 35039 35047 35049 35055 35059)       then region=2;  *Northeast;
    276                 else if fipscode in (35001 35043 35057 35061)                                   then region=3;  *Metro;
    277                 else if fipscode in (35005 35009 35011 35015 35025 35027 35037 35041)                   then region=4;  *Southeast;
    278                 else if fipscode in (35003 35013 35017 35023 35029 35035 35051 35053)           then region=5;  *Southwest;
    279 
    280                 label
    281                         sarea134 = '108 NM Small Areas, version 1.3.4'
    282                         region = '5 NM health regions'
     391                else if fipscode in (35001 35043 35057 35061)                                                   then region=3;  *Metro;
     392                else if fipscode in (35005 35009 35011 35015 35025 35027 35037 35041)   then region=4;  *Southeast;
     393                else if fipscode in (35003 35013 35017 35023 35029 35035 35051 35053)   then region=5;  *Southwest;
     394
     395                if geoid=:"2560000US0010T" then nmtribe =  5;   * Acoma Pueblo and Off-Reservation Trust Land, NM;
     396                if geoid=:"2560000US0680T" then nmtribe =  6;   * Pueblo de Cochiti, NM;
     397                if geoid=:"2560000US1625T" then nmtribe =  7;   * Isleta Pueblo, NM;
     398                if geoid=:"2560000US1685T" then nmtribe =  8;   * Jemez Pueblo, NM;
     399                if geoid=:"2560000US1700T" then nmtribe =  1;   * Jicarilla Apache Nation Reservation and Off-Reservation Trust Land, NM;
     400                if geoid=:"2560000US1840T" then nmtribe =  9;   * Laguna Pueblo and Off-Reservation Trust Land, NM;
     401                if geoid=:"2560000US2205T" then nmtribe =  2;   * Mescalero Reservation, NM;
     402                if geoid=:"2560000US2400T" then nmtribe = 10;   * Nambe Pueblo and Off-Reservation Trust Land, NM;
     403                if geoid=:"2560000US2430T" then nmtribe =  3;   * Navajo Nation Reservation and Off-Reservation Trust Land, AZ--NM--UT;
     404                if geoid=:"2560000US2510T" then nmtribe = 15;   * Ohkay Owingeh, NM;
     405                if geoid=:"2560000US2785T" then nmtribe = 11;   * Picuris Pueblo, NM;
     406                if geoid=:"2560000US2990T" then nmtribe =  4;   * Pueblo of Pojoaque and Off-Reservation Trust Land, NM;
     407                if geoid=:"2560000US3370T" then nmtribe = 12;   * Sandia Pueblo, NM;
     408                if geoid=:"2560000US3400T" then nmtribe = 13;   * San Felipe Pueblo, NM;
     409                if geoid=:"2560000US3415T" then nmtribe = 14;   * San Ildefonso Pueblo and Off-Reservation Trust Land, NM;
     410                if geoid=:"2560000US3480T" then nmtribe = 16;   * Santa Ana Pueblo, NM;
     411                if geoid=:"2560000US3495T" then nmtribe = 17;   * Santa Clara Pueblo and Off-Reservation Trust Land, NM;
     412                if geoid=:"2560000US3585T" then nmtribe = 18;   * Santo Domingo Pueblo, NM;
     413                if geoid=:"2560000US4140T" then nmtribe = 19;   * Taos Pueblo and Off-Reservation Trust Land, NM;
     414                if geoid=:"2560000US4170T" then nmtribe = 20;   * Tesuque Pueblo and Off-Reservation Trust Land, NM;
     415                if geoid=:"2560000US4470T" then nmtribe = 27;   * Ute Mountain Reservation and Off-Reservation Trust Land, CO--NM--UT;
     416                if geoid=:"2560000US4770T" then nmtribe = 21;   * Zia Pueblo and Off-Reservation Trust Land, NM;
     417                if geoid=:"2560000US4785T" then nmtribe = 22;   * Zuni Reservation and Off-Reservation Trust Land, NM--AZ;
     418                if geoid=:"2560000US4755T" then nmtribe = 23;   * Ysleta del Sur Pueblo and Off-Reservation Trust Land, TX;
     419                if geoid=:"2560000US3925T" then nmtribe = 28;   *Southern Ute Reservation, CO;
     420
     421        label
     422                        fipscode = '5-digit numeric NM county fipscodes'
     423                        region = '1-digit numeric code for 5 NM health regions'
     424                        schdist = '7-digit numeric code for 90+ NM unified school districts'
     425                        senfips = '5-digit numeric code for 42 NM State Senate Districts'
     426                        housefips = '5-digit numeric code for 70 NM State House Districts'
     427                        sarea134 = '3-digit numeric code for 108 NM Small Areas, version 1.3.4'
     428                        fipstrct10 = '11-digit numeric code for 499 NM 2010 census tracts'
     429                        tribtrct10 = '9-digit numeric code for 485 U.S. Tribal census tracts'
     430                        nmtribe = 'NM and nearby tribes, incl all of Navajo'
    283431                        ;
    284432                run;
     433
    285434/*
    286435        ods html close ;
     
    288437
    289438        proc contents data=prelim.acs_all varnum; run;
     439
     440        proc freq data=prelim.acs_all;
     441                tables geolong*year / nopercent norow nocol missprint;
     442                run;
     443
    290444        proc print data=prelim.acs_all (obs=20);
    291445                where fipscode ne .;
    292446                run;
    293447        proc print data=prelim.acs_all (obs=20);
     448                where region ne .;
     449                run;
     450        proc print data=prelim.acs_all (obs=20);
     451                where schdist ne .;
     452                run;
     453        proc print data=prelim.acs_all (obs=20);
     454                where senfips ne .;
     455                run;
     456        proc print data=prelim.acs_all (obs=20);
     457                where housefips ne .;
     458                run;
     459        proc print data=prelim.acs_all (obs=20);
     460                where sarea134 ne .;
     461                run;
     462        proc print data=prelim.acs_all (obs=20);
    294463                where fipstrct10 ne .;
    295464                run;
    296         proc print data=prelim.acs_all (obs=20);
    297                 where sarea134 ne .;
     465        proc print data=prelim.acs_all (obs=100) ;
     466                where nmtribe ne .;
    298467                run;
    299468        proc freq data=prelim.acs_all;
    300                 tables (Sarea134 fipscode fipstrct10)*year / missprint nopercent norow nocol;
     469                tables (fipscode region schdist senfips housefips Sarea134 fipstrct10 nmtribe tribtrct10)*year / missprint nopercent norow nocol;
     470                run;
     471        proc freq data=prelim.acs_all;
     472                where fipscode ne .;
     473                tables fipscode*year / missprint nopercent norow nocol;
     474                run;
     475        proc freq data=prelim.acs_all;
     476                where nmtribe ne .;
     477                tables nmtribe*year / missprint nopercent norow nocol;
    301478                run;
    302479*/
  • adopters/nm/trunk/src/main/sas/acs/programs/2ACS_CountyTopics.sas

    r13269 r19658  
    11******************************************************************;
    2 * Program to combine County datasets.                             ;
     2* Program to combine County datasets.                             ;
    33*                                                                 ;
    44* C:\SAS\programs\2ACS_CountyTopics.sas                           ;
     
    88*    12/11/2015 by Lois - added RacEth data                       ;
    99*    12/23/2016 by Lois - added 2011-2015 5-year data             ;
     10*    02/24/2017, Lois H., to include NM overall estimates         ;
     11*    03/02/2017, Lois H., to include SNAP and cash assistance     ;
     12*    12/07/2018, Lois H., to include SNAP and cash assistance     ;
    1013*                                                                 ;
    1114******************************************************************;
     
    2427
    2528****** Closes/clears Results Viewer Window and sets it to reopen for new output. ******;
    26 ods html close ;
     29*ods html close ;
    2730*ods html ;
    2831
    2932/*             
    3033        proc contents data=prelim.acs_all varnum; run;
     34        proc compare base=topics.cnty13housing20180703
     35                          compare=topics.cnty13housing; run;
    3136*/
     37
     38        DATA cntypopn;
     39                format fipscode 5.0;
     40                set final.popibiscnty90_17_20aug2018;*Use cnty pop ibis dataset for both county and region;     
     41                if (2010<=year<=2015); *MID-POINT YEARS IN 5-YR ACS DATASETS;
     42                fipscode=35000+fipscode;
     43                *agegrppov;
     44                if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
     45                if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
     46                if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
     47                if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
     48                run;
    3249
    3350        data acs_all;
     
    3552                run;
    3653
    37                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty0RacEth.sas';
     54                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty0ACSPop.sas';
    3855                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty1Educ.sas';
    39                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty2MedIncome.sas';
     56                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty2Income.sas';
    4057                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty3Poverty.sas';
    4158                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty4Employment.sas';
     
    5067                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty13Housing.sas';
    5168
    52         data prelim.cntyACSdemos11_15;
    53                 format region sarea134 fipstrct10 5.0;
     69        data prelim.cntyACSdemos12_17;
     70                format fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    5471                merge
    55                         topics.Cnty0RacEth
     72                        topics.Cnty0ACSPop
    5673                        topics.Cnty1Educ
    57                         topics.Cnty2MedIncome
     74                        topics.Cnty2Income
    5875                        topics.Cnty3Poverty
    5976                        topics.Cnty4Employment
     
    7188
    7289                if fipscode > 35000 then do;
    73                         fipscode=(fipscode-35000); *To set fipscode to same value used in pop dataset.;
     90                        fipscode=(fipscode-35000); *To set fipscode to same value used in ibis pop dataset.;
    7491                end;
    75                 if fipscode=35000 then do;
     92                if fipscode=35000 then do;  *set state total rows for all geo vars to dimension value 35000;
    7693                        region=35000;
     94                        schdist=35000;
     95                        senfips=35000;
     96                        housefips=35000;
    7797                        sarea134=35000;
    7898                        fipstrct10=35000;
     99                        nmtribe=35000;
     100                        tribtrct10=35000;
     101                end;
     102                if fipscode=1000 then do;  *set U.S. total rows for all geo vars to dimension value 1000;
     103                        region=1000;
     104                        schdist=1000;
     105                        senfips=1000;
     106                        housefips=1000;
     107                        sarea134=1000;
     108                        fipstrct10=1000;
     109                        nmtribe=1000;
     110                        tribtrct10=1000;
    79111                end;
    80112
    81 
    82                 label fipscode= 'fipscode: 2-digit numeric fipscode for NM counties, 1-61, NM=35000';
     113                label fipscode= 'fipscode: 2-digit numeric fipscode for NM counties, 1-61, NM=35000, U.S.=1000';
    83114
    84115                run;
    85116
    86117        /*
    87         dm "dexport prelim.CntyACSdemos11_15 'P:\ACS\data\cntyACSdemos11_15.csv' ";
     118        proc print data=prelim.cntyACSdemos12_17 (obs=18);
     119                var fipscode year
     120                povest pov5est pov18est Pov5_17Pct pov65est povesterr pov5esterr pov18esterr Pov5_17Pcterr pov65esterr
     121                povpct pov5pct pov18pct Pov5_17Pct pov65pct povpcterr pov5pcterr pov18pcterr Pov5_17Pcterr pov65pcterr;
     122                title 'prelim.cntyACSdemos12_17';
     123                run;
     124
     125
     126        dm "dexport prelim.cntyACSdemos12_17 'P:\ACS\data\cntyACSdemos12_17.csv' ";
    88127
    89128        ods html close ;
    90129        ods html ;
    91                 proc contents data=prelim.CntyACSdemos11_15 varnum; run;
    92                 proc print data=prelim.CntyACSdemos11_15 noobs;
     130                proc contents data=prelim.cntyACSdemos12_17 varnum; run;
     131                proc print data=prelim.cntyACSdemos12_17 noobs;
    93132                        title '';
    94133                        run;
  • adopters/nm/trunk/src/main/sas/acs/programs/3ACS_RegionTopics.sas

    r13269 r19658  
    44* Created by: Lois Haggard, 02/24/2017                            ;
    55* Modified:                                                       ;
     6*    02/24/2017, Lois H., to include NM overall estimates         ;
     7*    03/02/2017, Lois H., to include SNAP and cash assistance     ;
    68*                                                                 ;
    79*                                                                 ;
     
    2123
    2224****** Closes/clears Results Viewer Window and sets it to reopen for new output. ******;
    23 ods html close ;
    24 ods html ;
     25*ods html close ;
     26*ods html ;
    2527
    2628        /*     
     
    2830        */
    2931
    30         data acs_all;
     32        DATA cntypopn;
     33                format fipscode 5.0;
     34                set final.popibiscnty90_17_20aug2018;   *Use cnty pop ibis dataset for both county and region;
     35                if (2010<=year<=2015); *MID-POINT YEARS IN 5-YR ACS DATASETS;
     36                fipscode=35000+fipscode;
     37                *agegrppov;
     38                if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
     39                if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
     40                if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
     41                if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
     42                run;
     43
     44                data acs_all;
    3145                set prelim.acs_all;
    3246                run;
    3347
    34                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region0RacEth.sas';
     48                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region0ACSPop.sas';
    3549                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region1Educ.sas';
    36                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region2MedIncome.sas';
     50                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region2Income.sas';
    3751                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region3Poverty.sas';
    3852                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region4Employment.sas';
     
    4761                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region13Housing.sas';
    4862
    49         data prelim.regionACSdemos11_15;
     63        data prelim.regionACSdemos12_17;
     64                format fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    5065                merge
    51                         topics.Region0RacEth
     66                        topics.Region0ACSPop
    5267                        topics.Region1Educ
    53                         topics.Region2MedIncome
     68                        topics.Region2Income
    5469                        topics.Region3Poverty
    5570                        topics.Region4Employment
     
    6681                by region year;
    6782
     83                label region= 'region: NM health regions, 1-61, NM=35000, U.S.=1000';
     84
    6885                run;
    6986
    70 /*
    71         dm "dexport prelim.regionACSdemos11_15 'P:\ACS\data\regionACSdemos11_15.csv' ";
     87/*     
     88        proc print data=prelim.regionACSdemos12_17 (obs=12);
     89                title 'prelim.regionACSdemos12_17';
     90                run;
    7291
    73 ods html close ;
    74 ods html ;
    75         proc contents data=prelim.regionACSdemos11_15 varnum; run;
    76         proc print data=prelim.regionACSdemos11_15 (obs=9);
    77                 title 'data=prelim.regionACSdemos11_15';
    78                 run;
     92        dm "dexport prelim.regionACSdemos12_17 'P:\ACS\data\regionACSdemos12_17.csv' ";
     93
     94        ods html close ;
     95        ods html ;
     96                proc contents data=prelim.regionACSdemos12_17 varnum; run;
     97                proc print data=prelim.regionACSdemos12_17 (obs=9);
     98                        title 'data=prelim.regionACSdemos12_17';
     99                        run;
    79100*/
  • adopters/nm/trunk/src/main/sas/acs/programs/4ACS_SareaTopics.sas

    r13269 r19658  
    77*    12/11/2015 by Lois - added RacEth data                       ;
    88*    12/23/2016 by Lois - added 2011-2015 5-year data             ;
     9*    02/24/2017, Lois H., to include NM overall estimates         ;
     10*    03/02/2017, Lois H., to include SNAP and cash assistance     ;
    911*                                                                 ;
    1012******************************************************************;
     
    2426
    2527****** Closes/clears Results Viewer Window and sets it to reopen for new output. ******;
    26 ods html close ;
    27 ods html ;
     28*ods html close ;
     29*ods html ;
    2830
    2931        /*     
    3032        proc contents data=prelim.acs_all varnum; run;
    3133        */
     34       
     35        DATA trctpopn;
     36                format sarea134 5.0 fipstrct10 11.0;
     37                set final.popibistrct90_17_20aug2018; *Use ibis tract pop dataset for both sarea and tract;
     38                if (2010<=year<=2015); *MID-POINT YEARS IN 5-YR ACS DATASETS;
     39                *agegrppov;
     40                if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
     41                if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
     42                if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
     43                if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
     44                run;
    3245
    3346        data acs_all;
     
    3548                run;
    3649
    37                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea0RacEth.sas';
     50                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea0ACSPop.sas';
    3851                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea1Educ.sas';
    39                 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea2MedIncome.sas';
     52                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea2Income.sas';
    4053                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea3Poverty.sas';
    4154                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea4Employment.sas';
     
    5063                %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea13Housing.sas';
    5164
    52         data prelim.sareaACSdemos11_15;
     65        data prelim.sareaACSdemos12_17;
     66                format fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    5367                merge
    54                         topics.Sarea0RacEth
     68                        topics.Sarea0ACSPop
    5569                        topics.Sarea1Educ
    56                         topics.Sarea2MedIncome
     70                        topics.Sarea2Income
    5771                        topics.Sarea3Poverty
    5872                        topics.Sarea4Employment
     
    6983                by Sarea134 year;
    7084
     85                label sarea134= 'sarea134: 108 NM sareas, NM=35000, U.S.=1000';
     86
    7187                run;
    7288
    73 /*
    74         dm "dexport prelim.sareaACSdemos11_15 'P:\ACS\data\sareaACSdemos11_15.csv' ";
     89/*     
     90        proc print data=prelim.sareaACSdemos12_17 (obs=12);
     91                title 'prelim.sareaACSdemos12_17';
     92                run;
    7593
    76 ods html close ;
    77 ods html ;
    78         proc contents data=prelim.sareaACSdemos11_15 varnum; run;
    79         proc print data=prelim.sareaACSdemos11_15 (obs=9);
    80                 title 'data=prelim.sareaACSdemos11_15';
    81                 run;
     94        dm "dexport prelim.sareaACSdemos12_17 'P:\ACS\data\sareaACSdemos12_17.csv' ";
     95
     96        ods html close ;
     97        ods html ;
     98                proc contents data=prelim.sareaACSdemos12_17 varnum; run;
     99                proc print data=prelim.sareaACSdemos12_17 (obs=9);
     100                        title 'data=prelim.sareaACSdemos12_17';
     101                        run;
    82102*/
  • adopters/nm/trunk/src/main/sas/acs/programs/ACSMisc.sas

    r13269 r19658  
    2222        DATA acsalltrct; set prelim.acs_all; if 35001000107<=fipstrct10=35001000116; run;
    2323        DATA acsall; set acsallcnty acsallsarea acsalltrct; run;
     24        DATA acsdemos; set prelim.acsdemos12_17; run;
     25proc print data=acsdemos noobs;
     26        where (Pov65Pct>100);
     27        var year fipscode region schdist senfips housefips sarea134 fipstrct10 nmtribe tribtrct10 PovPct Pov18Pct Pov5Pct Pov5_17Pct Pov65Pct PovPctErr Pov18PctErr Pov5PctErr Pov5_17PctErr Pov65PctErr ;
     28        title 'where (PovPct>100)';
     29        run;
     30proc univariate data=acsdemos outtable=Table noprint;
     31        where (nmtribe=. and fipscode ^= 1000 and fipscode ^= 35000);
     32        var Pop25Pct EduLT9Pct EduNoHSPct EduBachPct EduProfPct TotIncHHPct CashAsstPct FoodSNAPPct PovPct
     33        Pov18Pct Pov5Pct Pov5_17Pct Pov65Pct Pop16PlusPct InLabFrcPct CvLabFrcPct UnemployPct
     34        Fem16PluPct Fem16LFcPct ChildLT6Pct PrntEmp6Pct Child6_17Pct PrntEmp6_17Pct Wrkr16UpPct
     35        DrvAlonePct CarPooldPct PubTransPct WalkdWrkPct WorkHomePct CivEmp16Pct MgtScArtPct
     36        ServicePct SalesOfcPct ResConstPct ProdTranPct IndAgricPct IndConstPct IndManufPct IndTradePct
     37        IndRetaiPct IndTransPct IndInforPct IndFinanPct IndProfePct IndEducaPct IndArtsePct IndOthSvPct
     38        IndPubAdPct ClassPriPct ClassGovPct ClassSelPct ClassFamPct CivNIPopPct CvPop1864Pct NoHlthInsPct
     39        NoIns1864Pct DisabledPct Disab1864Pct Civ18PopPct Civ18VetPct Pop1PlusPct SameHousPct
     40        SameCntyPct DiffCntyPct DiffStatPct OutsidUSPct TotalPopPct BorninNMPct BrnOthStPct OutUSCitPct
     41        OutUSNoCPct Pop5PlusPct LangNoEnPct EngNoWelPct LangSpanPct SpanNoEnPct LangEuroPct
     42        EuroNoEnPct LangAsiaPct AsiaNoEnPct LangOthrPct OthrNoEnPct TotHHPct FamHHPct NonFamHHPct
     43        FamHHKidsPct FamHHMarPct FamHHMarKidsPct FamHHSFemPct FamHHSFemKidsPct HHwKidsPct
     44        HHw65upPct GPRespGrKidsPct TotHUnitPct TotOccupPct TotVacntPct SinglDetPct MobileHmPct
     45        Befr1950Pct Befr1980Pct OccNoVehPct OccNoPluPct OccNoPhoPct OccLE1RmPct OccG15RmPct
     46        OwnerOccPct RentrOccPct GRAPIDnmPct GRAPI_35Pct ComputerPct BroadbndPct;
     47        run;
     48proc print data=Table label noobs;
     49        var _VAR_ _Q3_ _MEAN_ _MAX_ ;
     50        label _VAR_='acsdemos';
     51        title 'where is not tribe and not state or U.S. total';
     52        run;
     53
     54
     55proc univariate data=acsdemos outtable=Table noprint;
     56        where nmtribe=.;
     57        var Pop25Pct EduLT9Pct EduNoHSPct EduBachPct EduProfPct Pop25PctErr EduLT9PctErr EduNoHSPctErr
     58        EduBachPctErr EduProfPctErr TotIncHHPct CashAsstPct FoodSNAPPct TotIncHHPctErr CashAsstPctErr
     59        FoodSNAPPctErr PovPct Pov18Pct Pov5Pct Pov5_17Pct Pov65Pct PovPctErr Pov18PctErr Pov5PctErr
     60        Pov5_17PctErr Pov65PctErr Pop16PlusPct InLabFrcPct CvLabFrcPct UnemployPct Fem16PluPct
     61        Fem16LFcPct ChildLT6Pct PrntEmp6Pct Child6_17Pct PrntEmp6_17Pct Pop16PlusPctErr InLabFrcPctErr
     62        CvLabFrcPctErr UnemployPctErr Fem16PluPctErr Fem16LFcPctErr ChildLT6PctErr PrntEmp6PctErr
     63        Child6_17PctErr PrntEmp6_17PctErr Wrkr16UpPct DrvAlonePct CarPooldPct PubTransPct WalkdWrkPct
     64        WorkHomePct Wrkr16UpPctErr DrvAlonePctErr CarPooldPctErr PubTransPctErr WalkdWrkPctErr
     65        WorkHomePctErr CivEmp16Pct MgtScArtPct ServicePct SalesOfcPct ResConstPct ProdTranPct
     66        IndAgricPct IndConstPct IndManufPct IndTradePct IndRetaiPct IndTransPct IndInforPct IndFinanPct
     67        IndProfePct IndEducaPct IndArtsePct IndOthSvPct IndPubAdPct ClassPriPct ClassGovPct ClassSelPct
     68        ClassFamPct CivEmp16PctErr MgtScArtPctErr ServicePctErr SalesOfcPctErr ResConstPctErr
     69        ProdTranPctErr IndAgricPctErr IndConstPctErr IndManufPctErr IndTradePctErr IndRetaiPctErr
     70        IndTransPctErr IndInforPctErr IndFinanPctErr IndProfePctErr IndEducaPctErr IndArtsePctErr
     71        IndOthSvPctErr IndPubAdPctErr ClassPriPctErr ClassGovPctErr ClassSelPctErr ClassFamPctErr CivNIPopPct
     72        CvPop1864Pct NoHlthInsPct NoIns1864Pct DisabledPct Disab1864Pct CivNIPopPctErr CvPop1864PctErr
     73        NoHlthInsPctErr NoIns1864PctErr DisabledPctErr Disab1864PctErr Civ18PopPct Civ18VetPct
     74        Civ18PopPctErr Civ18VetPctErr Pop1PlusPct SameHousPct SameCntyPct DiffCntyPct DiffStatPct
     75        OutsidUSPct Pop1PlusPctErr SameHousPctErr SameCntyPctErr DiffCntyPctErr DiffStatPctErr
     76        OutsidUSPctErr TotalPopPct BorninNMPct BrnOthStPct OutUSCitPct OutUSNoCPct TotalPopPctErr
     77        BorninNMPctErr BrnOthStPctErr OutUSCitPctErr OutUSNoCPctErr Pop5PlusPct LangNoEnPct
     78        EngNoWelPct LangSpanPct SpanNoEnPct LangEuroPct EuroNoEnPct LangAsiaPct AsiaNoEnPct
     79        LangOthrPct OthrNoEnPct Pop5PlusPctErr LangNoEnPctErr EngNoWelPctErr LangSpanPctErr
     80        SpanNoEnPctErr LangEuroPctErr EuroNoEnPctErr LangAsiaPctErr AsiaNoEnPctErr LangOthrPctErr
     81        OthrNoEnPctErr TotHHPct FamHHPct NonFamHHPct FamHHKidsPct FamHHMarPct FamHHMarKidsPct
     82        FamHHSFemPct FamHHSFemKidsPct HHwKidsPct HHw65upPct GPRespGrKidsPct TotHHPctErr
     83        FamHHPctErr NonFamHHPctErr FamHHKidsPctErr FamHHMarPctErr FamHHMarKidsPctErr
     84        FamHHSFemPctErr FamHHSFemKidsPctErr HHwKidsPctErr HHw65upPctErr GPRespGrKidsPctErr
     85        TotHUnitPct TotOccupPct TotVacntPct SinglDetPct MobileHmPct Befr1950Pct Befr1980Pct OccNoVehPct
     86        OccNoPluPct OccNoPhoPct OccLE1RmPct OccG15RmPct OwnerOccPct RentrOccPct GRAPIDnmPct
     87        GRAPI_35Pct ComputerPct BroadbndPct TotHUnitPctErr TotOccupPctErr TotVacntPctErr SinglDetPctErr
     88        MobileHmPctErr Befr1950PctErr Befr1980PctErr OccNoVehPctErr OccNoPluPctErr OccNoPhoPctErr
     89        OccLE1RmPctErr OccG15RmPctErr OwnerOccPctErr RentrOccPctErr GRAPIDnmPctErr GRAPI_35PctErr
     90        ComputerPctErr BroadbndPctErr ;
     91        run;
     92proc print data=Table label noobs;
     93   var _VAR_ _MIN_ _MEAN_ _MAX_ ;
     94   label _VAR_='acsdemos';
     95        run;
    2496
    2597
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty10Foreign.sas

    r13269 r19658  
    3131        DATA tmp;
    3232                set prelim.acs_all;
    33                 if 35000<=fipscode<=35061;
     33                if (35000<=fipscode<=35061) or (fipscode=1000);
    3434                keep fipscode year
    3535               
     
    102102               
    103103        DATA final;
     104                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    104105                set tmp;
     106                *fipscode=.;
     107                region=.;
     108                schdist=.;
     109                senfips=.;
     110                housefips=.;
    105111                sarea134=.;
    106                 region=.;
    107112                fipstrct10=.;
     113                nmtribe=.;
     114                tribtrct10=.;
    108115
    109116                        TotalPopErr = (sqrt(TotalPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty11Language.sas

    r13269 r19658  
    3636        DATA tmp;
    3737                set prelim.acs_all;
    38                 if 35000<=fipscode<=35061;
     38                if (35000<=fipscode<=35061) or (fipscode=1000);
    3939                keep fipscode year
    4040               
     
    132132               
    133133        DATA final;
     134                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    134135                set tmp;
     136                *fipscode=.;
     137                region=.;
     138                schdist=.;
     139                senfips=.;
     140                housefips=.;
    135141                sarea134=.;
    136                 region=.;
    137142                fipstrct10=.;
     143                nmtribe=.;
     144                tribtrct10=.;
    138145
    139146                        Pop5PlusErr = (sqrt(Pop5Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty12HHType.sas

    r13269 r19658  
    3737        DATA tmp;
    3838                set prelim.acs_all;
    39                 if 35000<=fipscode<=35061;
     39                if (35000<=fipscode<=35061) or (fipscode=1000);
    4040                keep fipscode year
    4141               
     
    6565                set tmp;
    6666                TotHHEst = Soc_HC01_VC03;
    67                 FamHHEst = Soc_HC01_VC04;       
    68                 NonFamHHEst = Soc_HC01_VC13;   
    69                 FamHHkidsEst = Soc_HC01_VC06;   
    70                 FamHHMarEst = Soc_HC01_VC07;   
    71                 FamHHMarKidsEst = Soc_HC01_VC08;       
    72                 FamHHSFemEst = Soc_HC01_VC11;   
    73                 FamHHSFemKidsEst = Soc_HC01_VC12;       
    74                 HHwKidsEst = Soc_HC01_VC17;     
    75                 HHw65upEst = Soc_HC01_VC18;     
    76                 GPRespGrKidsEst = Soc_HC01_VC62;       
    77                 PopinHHEst = Soc_HC01_VC25;     
     67                FamHHEst = Soc_HC01_VC04;
     68                NonFamHHEst = Soc_HC01_VC13;
     69                FamHHkidsEst = Soc_HC01_VC06;
     70                FamHHMarEst = Soc_HC01_VC07;
     71                FamHHMarKidsEst = Soc_HC01_VC08;
     72                FamHHSFemEst = Soc_HC01_VC11;
     73                FamHHSFemKidsEst = Soc_HC01_VC12;
     74                HHwKidsEst = Soc_HC01_VC17;
     75                HHw65upEst = Soc_HC01_VC18;
     76                GPRespGrKidsEst = Soc_HC01_VC62;
     77                PopinHHEst = Soc_HC01_VC25;
    7878
    7979                *******************************************************;
     
    124124               
    125125        DATA final;
     126                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    126127                set tmp;
     128                *fipscode=.;
     129                region=.;
     130                schdist=.;
     131                senfips=.;
     132                housefips=.;
    127133                sarea134=.;
    128                 region=.;
    129134                fipstrct10=.;
     135                nmtribe=.;
     136                tribtrct10=.;
    130137               
    131138                        TotHHErr = (sqrt(TotHHx));
     
    152159                        HHwKidsPct = (HHwKidsEst/TotHHEst)*100;
    153160                        HHw65upPct = (HHw65upEst/TotHHEst)*100;
    154                         GPRespGrKidsPct = (GPRespGrKidsEst/TotHHEst)*100;
     161                        GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100;
    155162                        AvgHHSize = (PopinHHEst/TotHHEst);
    156163
     
    165172                        HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100;
    166173                        HHw65upPctErr = (HHw65upErr/TotHHEst)*100;
    167                         GPRespGrKidsPctErr = (GPRespGrKidsErr/TotHHEst)*100;
     174                        GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100;
    168175                        AvgHHSizeErr = (PopinHHErr/TotHHEst);
    169176                        if fipscode=35000 then AvgHHSizeErr=.001;
     
    194201                        FamHHSFemEst = 'Family HH single female head of HH'
    195202                        FamHHSFemKidsEst = 'Family HH single female w/own kids'
    196                         HHwKidsEst = 'HH w/people under age 18'
     203                        HHwKidsEst = 'HH w/children under age 18'
    197204                        HHw65upEst = 'HH w/people age 65 and over'
    198205                        GPRespGrKidsEst = 'Grandparents resp for GrandKids'
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty13Housing.sas

    r13269 r19658  
    5656    DATA tmp;
    5757        set prelim.acs_all;
    58                 if 35000<=fipscode<=35061;
     58                if (35000<=fipscode<=35061) or (fipscode=1000);
    5959                keep fipscode year
    6060               
     
    227227               
    228228        DATA final;
     229                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    229230                set tmp;
     231                *fipscode=.;
     232                region=.;
     233                schdist=.;
     234                senfips=.;
     235                housefips=.;
    230236                sarea134=.;
    231                 region=.;
    232237                fipstrct10=.;
     238                nmtribe=.;
     239                tribtrct10=.;
    233240               
    234241                        TotHUnitErr = (sqrt(TotHUnitx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty1Educ.sas

    r13269 r19658  
    3232        DATA tmp;
    3333                set prelim.acs_all;
    34                 if 35000<=fipscode<=35061;
     34                if (35000<=fipscode<=35061) or (fipscode=1000);
    3535                keep fipscode year
    3636               
     
    9595               
    9696        DATA final;
     97                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    9798                set tmp;
     99                *fipscode=.;
     100                region=.;
     101                schdist=.;
     102                senfips=.;
     103                housefips=.;
    98104                sarea134=.;
    99                 region=.;
    100105                fipstrct10=.;
     106                nmtribe=.;
     107                tribtrct10=.;
    101108
    102109                        Pop25Err   = (sqrt(Pop25x  ));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty3Poverty.sas

    r13269 r19658  
    2525* of poverty count estimaes, ACS only provides percentages.       ;
    2626******************************************************************;
    27         DATA popn;
    28                 format fipscode 5.0;
    29                 set final.popibiscnty90_15_11oct2016;
    30                 if year in (2009 2010 2011 2012 2013); *MID-POINT YEARS IN 5-YR ACS DATASETS;
    31                 fipscode=35000+fipscode;
    32                 *agegrppov;
    33                 if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
    34                 if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
    35                 if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
    36                 if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
    37                 run;
    38         proc summary data=popn ;
     27        *cntypopn dataset is created in the 2ACS_CountyTopics.sas program;
     28        *Use cnty pop ibis dataset for both county and region;
     29       
     30        proc summary data=cntypopn ;
    3931                var popcount;                     *All persons;
    4032                class fipscode year;
     
    4335                data pop; set pop; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run;
    4436
    45         proc summary data=popn ;
    46                 where (agregrppov = 1);  *_under age 5_ estimated popn by county, years 2009, 2010, 2011;
     37        proc summary data=cntypopn ;
     38                where (agregrppov = 1);  *_under age 5_ estimated popn by county;
    4739                var popcount;
    4840                class fipscode year;
     
    5143                data pop5; set pop5; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run;
    5244
    53         proc summary data=popn ;
    54                 where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county, years 2009, 2010, 2011;
     45        proc summary data=cntypopn ;
     46                where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county;
    5547                var popcount;
    5648                class fipscode year;
     
    5951                data pop5_17; set pop5_17; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run;
    6052
    61         proc summary data=popn ;
    62                 where (agregrppov in (1 2));  *_under age 18_ estimated popn by county, years 2009, 2010, 2011;
     53        proc summary data=cntypopn ;
     54                where (agregrppov in (1 2));  *_under age 18_ estimated popn by county;
    6355                var popcount;
    6456                class fipscode year;
     
    6759                data pop18; set pop18; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run;
    6860
    69         proc summary data=popn ;
    70                 where (agregrppov=3);  *_age 65+_ estimated popn by county, years 2009, 2010, 2011;
     61        proc summary data=cntypopn ;
     62                where (agregrppov=3);  *_age 65+_ estimated popn by county;
    7163                var popcount;
    7264                class fipscode year;
     
    9284        DATA tmp;
    9385                set prelim.acs_all;
    94                 if 35000<=fipscode<=35061;
     86                if (35000<=fipscode<=35061) or (fipscode=1000);
    9587                keep fipscode year
    9688               
     
    125117        DATA tmp;
    126118                set numbers;
    127                 PovEst=Econ_HC03_VC166*popcount/100;
    128                 Pov18Est=Econ_HC03_VC167*popcount18/100;
    129                 Pov5Est=Econ_HC03_VC169*popcount5/100;
    130                 Pov5_17Est=Econ_HC03_VC170*popcount5_17/100;
    131                 Pov65Est=Econ_HC03_VC173*popcount65/100;
    132 
    133                 *******************************************************;
    134                 * 90% marg of err: div by 1.65 to get standard error   ;
    135                 * pooled stderr is the sum of the stderr terms divided ;
    136                 * by the sqrt of sum of squared stderr terms.          ;
    137                 * sum the squared err terms, then take sqrt in next    ;
    138                 * data step.                                           ;
    139                 *******************************************************;
    140                 PovEstx=((Econ_HC04_VC166/1.65*popcount/100)**2);
    141                 Pov18Estx=((Econ_HC04_VC167/1.65*popcount18/100)**2);
    142                 Pov5Estx=((Econ_HC04_VC169/1.65*popcount5/100)**2);
    143                 Pov5_17Estx=((Econ_HC04_VC170/1.65*popcount5_17/100)**2);
    144                 Pov65Estx=((Econ_HC04_VC173/1.65*popcount65/100)**2);
     119                if (35000<=fipscode<=35061) then do;
     120                        PovEst=Econ_HC03_VC166*popcount/100;
     121                        Pov18Est=Econ_HC03_VC167*popcount18/100;
     122                        Pov5Est=Econ_HC03_VC169*popcount5/100;
     123                        Pov5_17Est=Econ_HC03_VC170*popcount5_17/100;
     124                        Pov65Est=Econ_HC03_VC173*popcount65/100;
     125
     126                        *******************************************************;
     127                        * 90% marg of err: div by 1.65 to get standard error   ;
     128                        * pooled stderr is the sum of the stderr terms divided ;
     129                        * by the sqrt of sum of squared stderr terms.          ;
     130                        * sum the squared err terms, then take sqrt in next    ;
     131                        * data step.                                           ;
     132                        *******************************************************;
     133                        PovEstx=((Econ_HC04_VC166/1.65*popcount/100)**2);
     134                        Pov18Estx=((Econ_HC04_VC167/1.65*popcount18/100)**2);
     135                        Pov5Estx=((Econ_HC04_VC169/1.65*popcount5/100)**2);
     136                        Pov5_17Estx=((Econ_HC04_VC170/1.65*popcount5_17/100)**2);
     137                        Pov65Estx=((Econ_HC04_VC173/1.65*popcount65/100)**2);
     138                end;
    145139                run;
    146140
     
    162156               
    163157        DATA final;
     158                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    164159                set tmp;
     160                *fipscode=.;
     161                region=.;
     162                schdist=.;
     163                senfips=.;
     164                housefips=.;
    165165                sarea134=.;
    166                 region=.;
    167166                fipstrct10=.;
     167                nmtribe=.;
     168                tribtrct10=.;
    168169               
    169170                        PovEstErr    =(sqrt(PovEstx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty4Employment.sas

    r13269 r19658  
    4343        DATA tmp;
    4444                set prelim.acs_all;
    45                 if 35000<=fipscode<=35061;
     45                if (35000<=fipscode<=35061) or (fipscode=1000);
    4646                keep fipscode year
    4747               
     
    135135
    136136        DATA final;
     137                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    137138                set tmp;
     139                *fipscode=.;
     140                region=.;
     141                schdist=.;
     142                senfips=.;
     143                housefips=.;
    138144                sarea134=.;
    139                 region=.;
    140145                fipstrct10=.;
     146                nmtribe=.;
     147                tribtrct10=.;
    141148               
    142149                        Pop16PlusErr    = (sqrt(Pop16Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty5Commute.sas

    r13269 r19658  
    3333        DATA tmp;
    3434                set prelim.acs_all;
    35                 if 35000<=fipscode<=35061;
     35                if (35000<=fipscode<=35061) or (fipscode=1000);
    3636                keep fipscode year
    3737               
     
    112112
    113113        DATA final;
     114                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    114115                set tmp;
     116                *fipscode=.;
     117                region=.;
     118                schdist=.;
     119                senfips=.;
     120                housefips=.;
    115121                sarea134=.;
    116                 region=.;
    117122                fipstrct10=.;
     123                nmtribe=.;
     124                tribtrct10=.;
    118125               
    119126                        Wrkr16UpErr = (sqrt(Wrkr16Upx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty6OccIndus.sas

    r13269 r19658  
    4848        DATA tmp;
    4949                set prelim.acs_all;
    50                 if 35000<=fipscode<=35061;
     50                if (35000<=fipscode<=35061) or (fipscode=1000);
    5151                keep fipscode year
    5252               
     
    8787                set tmp;
    8888                CivEmp16Est = Econ_HC01_VC40;
    89                 MgtScArtEst = Econ_HC01_VC41;   
     89                MgtScArtEst = Econ_HC01_VC41;
    9090                 ServiceEst = Econ_HC01_VC42;
    9191                SalesOfcEst = Econ_HC01_VC43;
    92                 ResConstEst = Econ_HC01_VC44;   
     92                ResConstEst = Econ_HC01_VC44;
    9393                ProdTranEst = Econ_HC01_VC45;
    9494                IndAgricEst = Econ_HC01_VC50;
     
    206206               
    207207        DATA final;
     208                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    208209                set tmp;
     210                *fipscode=.;
     211                region=.;
     212                schdist=.;
     213                senfips=.;
     214                housefips=.;
    209215                sarea134=.;
    210                 region=.;
    211216                fipstrct10=.;
     217                nmtribe=.;
     218                tribtrct10=.;
    212219               
    213220                        CivEmp16Err = (sqrt(CivEmp16x));
     
    232239                        ClassPriErr = (sqrt(ClassPrix));
    233240                        ClassGovErr = (sqrt(ClassGovx));
    234                         ClassSelErr = (sqrt(ClassSelx));
     241                        ClassSelErr = (sqrt(ClassSelx));
    235242                        ClassFamErr = (sqrt(ClassFamx));
    236243
    237                         CivEmp16Pct = (CivEmp16Est/CivEmp16Est)*100;
     244                        CivEmp16Pct = (CivEmp16Est/CivEmp16Est)*100;
    238245                        MgtScArtPct = (MgtScArtEst/CivEmp16Est)*100;
    239                          ServicePct = ( ServiceEst/CivEmp16Est)*100;
     246                         ServicePct = ( ServiceEst/CivEmp16Est)*100;
    240247                        SalesOfcPct = (SalesOfcEst/CivEmp16Est)*100;
    241                         ResConstPct = (ResConstEst/CivEmp16Est)*100;
     248                        ResConstPct = (ResConstEst/CivEmp16Est)*100;
    242249                        ProdTranPct = (ProdTranEst/CivEmp16Est)*100;
    243                         IndAgricPct = (IndAgricEst/CivEmp16Est)*100;
     250                        IndAgricPct = (IndAgricEst/CivEmp16Est)*100;
    244251                        IndConstPct = (IndConstEst/CivEmp16Est)*100;
    245                         IndManufPct = (IndManufEst/CivEmp16Est)*100;
     252                        IndManufPct = (IndManufEst/CivEmp16Est)*100;
    246253                        IndTradePct = (IndTradeEst/CivEmp16Est)*100;
    247                         IndRetaiPct = (IndRetaiEst/CivEmp16Est)*100;
     254                        IndRetaiPct = (IndRetaiEst/CivEmp16Est)*100;
    248255                        IndTransPct = (IndTransEst/CivEmp16Est)*100;
    249                         IndInforPct = (IndInforEst/CivEmp16Est)*100;
     256                        IndInforPct = (IndInforEst/CivEmp16Est)*100;
    250257                        IndFinanPct = (IndFinanEst/CivEmp16Est)*100;
    251                         IndProfePct = (IndProfeEst/CivEmp16Est)*100;
     258                        IndProfePct = (IndProfeEst/CivEmp16Est)*100;
    252259                        IndEducaPct = (IndEducaEst/CivEmp16Est)*100;
    253                         IndArtsePct = (IndArtseEst/CivEmp16Est)*100;
     260                        IndArtsePct = (IndArtseEst/CivEmp16Est)*100;
    254261                        IndOthSvPct = (IndOthSvEst/CivEmp16Est)*100;
    255                         IndPubAdPct = (IndPubAdEst/CivEmp16Est)*100;
     262                        IndPubAdPct = (IndPubAdEst/CivEmp16Est)*100;
    256263                        ClassPriPct = (ClassPriEst/CivEmp16Est)*100;
    257                         ClassGovPct = (ClassGovEst/CivEmp16Est)*100;
     264                        ClassGovPct = (ClassGovEst/CivEmp16Est)*100;
    258265                        ClassSelPct = (ClassSelEst/CivEmp16Est)*100;
    259                         ClassFamPct = (ClassFamEst/CivEmp16Est)*100;
    260 
    261                         CivEmp16PctErr = (CivEmp16Err/CivEmp16Est)*100;
     266                        ClassFamPct = (ClassFamEst/CivEmp16Est)*100;
     267
     268                        CivEmp16PctErr = (CivEmp16Err/CivEmp16Est)*100;
    262269                        MgtScArtPctErr = (MgtScArtErr/CivEmp16Est)*100;
    263                          ServicePctErr = ( ServiceErr/CivEmp16Est)*100;
     270                         ServicePctErr = ( ServiceErr/CivEmp16Est)*100;
    264271                        SalesOfcPctErr = (SalesOfcErr/CivEmp16Est)*100;
    265                         ResConstPctErr = (ResConstErr/CivEmp16Est)*100;
     272                        ResConstPctErr = (ResConstErr/CivEmp16Est)*100;
    266273                        ProdTranPctErr = (ProdTranErr/CivEmp16Est)*100;
    267                         IndAgricPctErr = (IndAgricErr/CivEmp16Est)*100;
     274                        IndAgricPctErr = (IndAgricErr/CivEmp16Est)*100;
    268275                        IndConstPctErr = (IndConstErr/CivEmp16Est)*100;
    269                         IndManufPctErr = (IndManufErr/CivEmp16Est)*100;
     276                        IndManufPctErr = (IndManufErr/CivEmp16Est)*100;
    270277                        IndTradePctErr = (IndTradeErr/CivEmp16Est)*100;
    271                         IndRetaiPctErr = (IndRetaiErr/CivEmp16Est)*100;
     278                        IndRetaiPctErr = (IndRetaiErr/CivEmp16Est)*100;
    272279                        IndTransPctErr = (IndTransErr/CivEmp16Est)*100;
    273                         IndInforPctErr = (IndInforErr/CivEmp16Est)*100;
     280                        IndInforPctErr = (IndInforErr/CivEmp16Est)*100;
    274281                        IndFinanPctErr = (IndFinanErr/CivEmp16Est)*100;
    275                         IndProfePctErr = (IndProfeErr/CivEmp16Est)*100;
     282                        IndProfePctErr = (IndProfeErr/CivEmp16Est)*100;
    276283                        IndEducaPctErr = (IndEducaErr/CivEmp16Est)*100;
    277                         IndArtsePctErr = (IndArtseErr/CivEmp16Est)*100;
     284                        IndArtsePctErr = (IndArtseErr/CivEmp16Est)*100;
    278285                        IndOthSvPctErr = (IndOthSvErr/CivEmp16Est)*100;
    279                         IndPubAdPctErr = (IndPubAdErr/CivEmp16Est)*100;
     286                        IndPubAdPctErr = (IndPubAdErr/CivEmp16Est)*100;
    280287                        ClassPriPctErr = (ClassPriErr/CivEmp16Est)*100;
    281                         ClassGovPctErr = (ClassGovErr/CivEmp16Est)*100;
     288                        ClassGovPctErr = (ClassGovErr/CivEmp16Est)*100;
    282289                        ClassSelPctErr = (ClassSelErr/CivEmp16Est)*100;
    283                         ClassFamPctErr = (ClassFamErr/CivEmp16Est)*100;
     290                        ClassFamPctErr = (ClassFamErr/CivEmp16Est)*100;
    284291
    285292                keep year sarea134 fipscode fipstrct10
    286                         CivEmp16Est CivEmp16Err CivEmp16Pct CivEmp16PctErr
     293                        CivEmp16Est CivEmp16Err CivEmp16Pct CivEmp16PctErr
    287294                        MgtScArtEst MgtScArtErr MgtScArtPct MgtScArtPctErr
    288                          ServiceEst  ServiceErr  ServicePct  ServicePctErr
     295                         ServiceEst  ServiceErr  ServicePct  ServicePctErr
    289296                        SalesOfcEst SalesOfcErr SalesOfcPct SalesOfcPctErr
    290                         ResConstEst ResConstErr ResConstPct ResConstPctErr
     297                        ResConstEst ResConstErr ResConstPct ResConstPctErr
    291298                        ProdTranEst ProdTranErr ProdTranPct ProdTranPctErr
    292                         IndAgricEst IndAgricErr IndAgricPct IndAgricPctErr
     299                        IndAgricEst IndAgricErr IndAgricPct IndAgricPctErr
    293300                        IndConstEst IndConstErr IndConstPct IndConstPctErr
    294                         IndManufEst IndManufErr IndManufPct IndManufPctErr
     301                        IndManufEst IndManufErr IndManufPct IndManufPctErr
    295302                        IndTradeEst IndTradeErr IndTradePct IndTradePctErr
    296                         IndRetaiEst IndRetaiErr IndRetaiPct IndRetaiPctErr
     303                        IndRetaiEst IndRetaiErr IndRetaiPct IndRetaiPctErr
    297304                        IndTransEst IndTransErr IndTransPct IndTransPctErr
    298                         IndInforEst IndInforErr IndInforPct IndInforPctErr
     305                        IndInforEst IndInforErr IndInforPct IndInforPctErr
    299306                        IndFinanEst IndFinanErr IndFinanPct IndFinanPctErr
    300                         IndProfeEst IndProfeErr IndProfePct IndProfePctErr
     307                        IndProfeEst IndProfeErr IndProfePct IndProfePctErr
    301308                        IndEducaEst IndEducaErr IndEducaPct IndEducaPctErr
    302                         IndArtseEst IndArtseErr IndArtsePct IndArtsePctErr
     309                        IndArtseEst IndArtseErr IndArtsePct IndArtsePctErr
    303310                        IndOthSvEst IndOthSvErr IndOthSvPct IndOthSvPctErr
    304                         IndPubAdEst IndPubAdErr IndPubAdPct IndPubAdPctErr
     311                        IndPubAdEst IndPubAdErr IndPubAdPct IndPubAdPctErr
    305312                        ClassPriEst ClassPriErr ClassPriPct ClassPriPctErr
    306                         ClassGovEst ClassGovErr ClassGovPct ClassGovPctErr
     313                        ClassGovEst ClassGovErr ClassGovPct ClassGovPctErr
    307314                        ClassSelEst ClassSelErr ClassSelPct ClassSelPctErr
    308                         ClassFamEst ClassFamErr ClassFamPct ClassFamPctErr
     315                        ClassFamEst ClassFamErr ClassFamPct ClassFamPctErr
    309316                        ;
    310317
     
    360367                        ClassFamErr = 'ClassFamEst std err (mult by Z for CI)'
    361368
    362                         CivEmp16Pct = 'CivEmp16Est as a Pct of CivEmp16Est'
     369                        CivEmp16Pct = 'CivEmp16Est as a Pct of CivEmp16Est'
    363370                        MgtScArtPct = 'MgtScArtEst as a Pct of CivEmp16Est'
    364                          ServicePct = ' ServiceEst as a Pct of CivEmp16Est'
     371                         ServicePct = ' ServiceEst as a Pct of CivEmp16Est'
    365372                        SalesOfcPct = 'SalesOfcEst as a Pct of CivEmp16Est'
    366                         ResConstPct = 'ResConstEst as a Pct of CivEmp16Est'
     373                        ResConstPct = 'ResConstEst as a Pct of CivEmp16Est'
    367374                        ProdTranPct = 'ProdTranEst as a Pct of CivEmp16Est'
    368                         IndAgricPct = 'IndAgricEst as a Pct of CivEmp16Est'
     375                        IndAgricPct = 'IndAgricEst as a Pct of CivEmp16Est'
    369376                        IndConstPct = 'IndConstEst as a Pct of CivEmp16Est'
    370                         IndManufPct = 'IndManufEst as a Pct of CivEmp16Est'
     377                        IndManufPct = 'IndManufEst as a Pct of CivEmp16Est'
    371378                        IndTradePct = 'IndTradeEst as a Pct of CivEmp16Est'
    372                         IndRetaiPct = 'IndRetaiEst as a Pct of CivEmp16Est'
     379                        IndRetaiPct = 'IndRetaiEst as a Pct of CivEmp16Est'
    373380                        IndTransPct = 'IndTransEst as a Pct of CivEmp16Est'
    374                         IndInforPct = 'IndInforEst as a Pct of CivEmp16Est'
     381                        IndInforPct = 'IndInforEst as a Pct of CivEmp16Est'
    375382                        IndFinanPct = 'IndFinanEst as a Pct of CivEmp16Est'
    376                         IndProfePct = 'IndProfeEst as a Pct of CivEmp16Est'
     383                        IndProfePct = 'IndProfeEst as a Pct of CivEmp16Est'
    377384                        IndEducaPct = 'IndEducaEst as a Pct of CivEmp16Est'
    378                         IndArtsePct = 'IndArtseEst as a Pct of CivEmp16Est'
     385                        IndArtsePct = 'IndArtseEst as a Pct of CivEmp16Est'
    379386                        IndOthSvPct = 'IndOthSvEst as a Pct of CivEmp16Est'
    380                         IndPubAdPct = 'IndPubAdEst as a Pct of CivEmp16Est'
     387                        IndPubAdPct = 'IndPubAdEst as a Pct of CivEmp16Est'
    381388                        ClassPriPct = 'ClassPriEst as a Pct of CivEmp16Est'
    382                         ClassGovPct = 'ClassGovEst as a Pct of CivEmp16Est'
     389                        ClassGovPct = 'ClassGovEst as a Pct of CivEmp16Est'
    383390                        ClassSelPct = 'ClassSelEst as a Pct of CivEmp16Est'
    384                         ClassFamPct = 'ClassFamEst as a Pct of CivEmp16Est'
     391                        ClassFamPct = 'ClassFamEst as a Pct of CivEmp16Est'
    385392
    386393                        CivEmp16PctErr = 'CivEmp16Pct std err (mult by Z for CI)'
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty7HlthIns.sas

    r13269 r19658  
    3333        DATA tmp;
    3434                set prelim.acs_all;
    35                 if 35000<=fipscode<=35061;
     35                if (35000<=fipscode<=35061) or (fipscode=1000);
    3636                keep fipscode year
    3737               
    3838                /*est vars              marg err*/
    39                 Econ_HC01_VC127 Econ_HC02_VC127 
    40                 Econ_HC01_VC136 Econ_HC02_VC136 
    41                 Econ_HC01_VC131 Econ_HC02_VC131 
    42                 Econ_HC01_VC142 Econ_HC02_VC142 
    43                 Econ_HC01_VC147 Econ_HC02_VC147 
    44                 Econ_HC01_VC153 Econ_HC02_VC153 
    45                  Soc_HC01_VC104  Soc_HC02_VC104 
    46                  Soc_HC01_VC110  Soc_HC02_VC110 
     39                Econ_HC01_VC127 Econ_HC02_VC127
     40                Econ_HC01_VC136 Econ_HC02_VC136
     41                Econ_HC01_VC131 Econ_HC02_VC131
     42                Econ_HC01_VC142 Econ_HC02_VC142
     43                Econ_HC01_VC147 Econ_HC02_VC147
     44                Econ_HC01_VC153 Econ_HC02_VC153
     45                 Soc_HC01_VC104  Soc_HC02_VC104
     46                 Soc_HC01_VC110  Soc_HC02_VC110
    4747                ;
    4848                run;
     
    5858                 CivNIPopEst = Econ_HC01_VC127;
    5959                CvPop1864Est = Econ_HC01_VC136;
    60                 NoHlthInsEst = Econ_HC01_VC131; 
    61                 NoIns1864Est = (Econ_HC01_VC142+Econ_HC01_VC147+Econ_HC01_VC153) ;     
    62                  DisabledEst = Soc_HC01_VC104; 
    63                 Disab1864Est = Soc_HC01_VC110; 
     60                NoHlthInsEst = Econ_HC01_VC131;
     61                NoIns1864Est = (Econ_HC01_VC142+Econ_HC01_VC147+Econ_HC01_VC153) ;
     62                 DisabledEst = Soc_HC01_VC104;
     63                Disab1864Est = Soc_HC01_VC110;
    6464
    6565                *******************************************************;
     
    8484                         CivNIPopEst  CivNIPopx
    8585                        CvPop1864Est CvPop1864x
    86                         NoHlthInsEst NoHlthInsx 
    87                         NoIns1864Est NoIns1864x         
    88                          DisabledEst  Disabledx 
    89                         Disab1864Est Disab1864x         
     86                        NoHlthInsEst NoHlthInsx
     87                        NoIns1864Est NoIns1864x
     88                         DisabledEst  Disabledx
     89                        Disab1864Est Disab1864x
    9090                        ;
    9191                class fipscode year;
     
    9393                                                 CivNIPopEst  CivNIPopx
    9494                                                CvPop1864Est CvPop1864x
    95                                                 NoHlthInsEst NoHlthInsx 
    96                                                 NoIns1864Est NoIns1864x         
    97                                                  DisabledEst  Disabledx 
    98                                                 Disab1864Est Disab1864x         
     95                                                NoHlthInsEst NoHlthInsx
     96                                                NoIns1864Est NoIns1864x
     97                                                 DisabledEst  Disabledx
     98                                                Disab1864Est Disab1864x
    9999                                                )=;
    100100                run;
     
    102102
    103103        DATA final;
     104                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    104105                set tmp;
     106                *fipscode=.;
     107                region=.;
     108                schdist=.;
     109                senfips=.;
     110                housefips=.;
    105111                sarea134=.;
    106                 region=.;
    107112                fipstrct10=.;
     113                nmtribe=.;
     114                tribtrct10=.;
    108115
    109116                         CivNIPopErr  = (sqrt( CivNIPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty8Veteran.sas

    r13269 r19658  
    2727        DATA tmp;
    2828                set prelim.acs_all;
    29                 if 35000<=fipscode<=35061;
     29                if (35000<=fipscode<=35061) or (fipscode=1000);
    3030                keep fipscode year
    3131               
     
    4343                set tmp;
    4444                Civ18PopEst = Soc_HC01_VC98;
    45                 Civ18VetEst = Soc_HC01_VC99;   
     45                Civ18VetEst = Soc_HC01_VC99;
    4646
    4747                *******************************************************;
     
    7676               
    7777        DATA final;
     78                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    7879                set tmp;
     80                *fipscode=.;
     81                region=.;
     82                schdist=.;
     83                senfips=.;
     84                housefips=.;
    7985                sarea134=.;
    80                 region=.;
    8186                fipstrct10=.;
     87                nmtribe=.;
     88                tribtrct10=.;
    8289
    8390                        Civ18PopErr = (sqrt(Civ18Popx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty9Mobility.sas

    r13269 r19658  
    3131        DATA tmp;
    3232                set prelim.acs_all;
    33                 if 35000<=fipscode<=35061;
     33                if (35000<=fipscode<=35061) or (fipscode=1000);
    3434                keep fipscode year
    3535               
     
    102102               
    103103        DATA final;
     104                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    104105                set tmp;
     106                *fipscode=.;
     107                region=.;
     108                schdist=.;
     109                senfips=.;
     110                housefips=.;
    105111                sarea134=.;
    106                 region=.;
    107112                fipstrct10=.;
     113                nmtribe=.;
     114                tribtrct10=.;
    108115
    109116                        Pop1PlusErr = (sqrt(Pop1Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region10Foreign.sas

    r13269 r19658  
    9999               
    100100        DATA final;
     101                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    101102                set tmp2;
    102103                fipscode=.;
     104                *region=.;
     105                schdist=.;
     106                senfips=.;
     107                housefips=.;
    103108                sarea134=.;
    104109                fipstrct10=.;
     110                nmtribe=.;
     111                tribtrct10=.;
    105112
    106113                        TotalPopErr = (sqrt(TotalPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region11Language.sas

    r13269 r19658  
    129129               
    130130        DATA final;
     131                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    131132                set tmp2;
    132133                fipscode=.;
     134                *region=.;
     135                schdist=.;
     136                senfips=.;
     137                housefips=.;
    133138                sarea134=.;
    134139                fipstrct10=.;
     140                nmtribe=.;
     141                tribtrct10=.;
    135142
    136143                        Pop5PlusErr = (sqrt(Pop5Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region12HHType.sas

    r13269 r19658  
    6464                set tmp;
    6565                TotHHEst = Soc_HC01_VC03;
    66                 FamHHEst = Soc_HC01_VC04;       
     66                FamHHEst = Soc_HC01_VC04;
    6767                NonFamHHEst = Soc_HC01_VC13;   
    6868                FamHHkidsEst = Soc_HC01_VC06;   
    6969                FamHHMarEst = Soc_HC01_VC07;   
    70                 FamHHMarKidsEst = Soc_HC01_VC08;       
     70                FamHHMarKidsEst = Soc_HC01_VC08;
    7171                FamHHSFemEst = Soc_HC01_VC11;   
    7272                FamHHSFemKidsEst = Soc_HC01_VC12;       
     
    121121               
    122122        DATA final;
     123                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    123124                set tmp2;
    124125                fipscode=.;
     126                *region=.;
     127                schdist=.;
     128                senfips=.;
     129                housefips=.;
    125130                sarea134=.;
    126131                fipstrct10=.;
     132                nmtribe=.;
     133                tribtrct10=.;
    127134               
    128135                        TotHHErr = (sqrt(TotHHx));
     
    149156                        HHwKidsPct = (HHwKidsEst/TotHHEst)*100;
    150157                        HHw65upPct = (HHw65upEst/TotHHEst)*100;
    151                         GPRespGrKidsPct = (GPRespGrKidsEst/TotHHEst)*100;
     158                        GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100;
    152159                        AvgHHSize = (PopinHHEst/TotHHEst);
    153160
     
    162169                        HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100;
    163170                        HHw65upPctErr = (HHw65upErr/TotHHEst)*100;
    164                         GPRespGrKidsPctErr = (GPRespGrKidsErr/TotHHEst)*100;
     171                        GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100;
    165172                        AvgHHSizeErr = (PopinHHErr/TotHHEst);
    166173
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region13Housing.sas

    r13269 r19658  
    5151
    5252    DATA tmp;
    53         set acs_all;
     53        set prelim.acs_all;
    5454                if 35001<=fipscode<=35061;
    5555                keep fipscode region year
     
    220220               
    221221        DATA final;
     222                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    222223                set tmp2;
    223224                fipscode=.;
     225                *region=.;
     226                schdist=.;
     227                senfips=.;
     228                housefips=.;
    224229                sarea134=.;
    225230                fipstrct10=.;
     231                nmtribe=.;
     232                tribtrct10=.;
    226233               
    227234                        TotHUnitErr = (sqrt(TotHUnitx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region1Educ.sas

    r13269 r19658  
    5353                Pop25Est   = (Soc_HC01_VC84);
    5454                EduLT9Est  = (Soc_HC01_VC85);   
    55                 EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);     
    56                 EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);     
     55                EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);
     56                EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);
    5757                EduProfEst = (Soc_HC01_VC91);
    5858
     
    9191               
    9292        DATA final;
     93                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    9394                set tmp2;
    9495                fipscode=.;
     96                *region=.;
     97                schdist=.;
     98                senfips=.;
     99                housefips=.;
    95100                sarea134=.;
    96101                fipstrct10=.;
     102                nmtribe=.;
     103                tribtrct10=.;
    97104
    98105                        Pop25Err   = (sqrt(Pop25x  ));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region3Poverty.sas

    r13269 r19658  
    2525* used %s to calc nums by tract, combined nums by trct, calc SA %s;
    2626******************************************************************;
    27         DATA popn;
    28                 format fipscode 5.0;
    29                 set final.popibiscnty90_15_11oct2016;
    30                 if year in (2009 2010 2011 2012 2013); *MID-POINT YEARS IN 5-YR ACS DATASETS;
    31                 fipscode=fipscode+35000;
    32                 *agegrppov;
    33                 if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
    34                 if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
    35                 if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
    36                 if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
    37                 run;
    38 
    39 /*
    40         proc summary data=popn nway;
     27        *cntypopn dataset is created in the 3ACS_RegionTopics.sas program;
     28        *Use cnty pop ibis dataset for both county and region;
     29       
     30        /*
     31        proc summary data=cntypopn nway;
    4132                var popcount;                     *All persons;
    4233                class fipscode;
     
    4435                proc print data=cnty;
    4536                run;
    46         proc summary data=popn nway;
     37        proc summary data=cntypopn nway;
    4738                var popcount;                     *All persons;
    4839                class region;
     
    5243*/
    5344
    54         proc summary data=popn nway;
     45        proc summary data=cntypopn nway;
    5546                var popcount;                     *All persons;
    5647                class fipscode year;
     
    5950                data pop; set pop; drop _TYPE_ _FREQ_; run;
    6051
    61         proc summary data=popn nway;
    62                 where (agregrppov = 1);  *_under age 5_ estimated popn by county, years 2009, 2010, 2011;
     52        proc summary data=cntypopn nway;
     53                where (agregrppov = 1);  *_under age 5_ estimated popn by region;
    6354                var popcount;
    6455                class fipscode year;
     
    6758                data pop5; set pop5; drop _TYPE_ _FREQ_; run;
    6859
    69         proc summary data=popn nway;
    70                 where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county, years 2009, 2010, 2011;
     60        proc summary data=cntypopn nway;
     61                where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county;
    7162                var popcount;
    7263                class fipscode year;
     
    7566                data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run;
    7667
    77         proc summary data=popn nway;
    78                 where (agregrppov in (1 2));  *_under age 18_ estimated popn by county, years 2009, 2010, 2011;
     68        proc summary data=cntypopn nway;
     69                where (agregrppov in (1 2));  *_under age 18_ estimated popn by county;
    7970                var popcount;
    8071                class fipscode year;
     
    8374                data pop18; set pop18; drop _TYPE_ _FREQ_; run;
    8475
    85         proc summary data=popn nway;
    86                 where (agregrppov=3);  *_age 65+_ estimated popn by county, years 2009, 2010, 2011;
     76        proc summary data=cntypopn nway;
     77                where (agregrppov=3);  *_age 65+_ estimated popn by county;
    8778                var popcount;
    8879                class fipscode year;
     
    173164               
    174165        DATA final;
     166                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    175167                set tmp2;
    176168                fipscode=.;
     169                *region=.;
     170                schdist=.;
     171                senfips=.;
     172                housefips=.;
    177173                sarea134=.;
    178174                fipstrct10=.;
     175                nmtribe=.;
     176                tribtrct10=.;
    179177               
    180178                        PovEstErr    =(sqrt(PovEstx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region4Employment.sas

    r13269 r19658  
    134134
    135135        DATA final;
     136                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    136137                set tmp2;
    137138                fipscode=.;
     139                *region=.;
     140                schdist=.;
     141                senfips=.;
     142                housefips=.;
    138143                sarea134=.;
    139144                fipstrct10=.;
     145                nmtribe=.;
     146                tribtrct10=.;
    140147               
    141148                *******************************************************;
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region5Commute.sas

    r13269 r19658  
    109109
    110110        DATA final;
     111                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    111112                set tmp2;
    112113                fipscode=.;
     114                *region=.;
     115                schdist=.;
     116                senfips=.;
     117                housefips=.;
    113118                sarea134=.;
    114119                fipstrct10=.;
     120                nmtribe=.;
     121                tribtrct10=.;
    115122               
    116123                        Wrkr16UpErr = (sqrt(Wrkr16Upx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region6OccIndus.sas

    r13269 r19658  
    203203               
    204204        DATA final;
     205                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    205206                set tmp2;
    206207                fipscode=.;
     208                *region=.;
     209                schdist=.;
     210                senfips=.;
     211                housefips=.;
    207212                sarea134=.;
    208213                fipstrct10=.;
     214                nmtribe=.;
     215                tribtrct10=.;
    209216               
    210217                        CivEmp16Err = (sqrt(CivEmp16x));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region7HlthIns.sas

    r13269 r19658  
    100100
    101101        DATA final;
     102                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    102103                set tmp2;
    103104                fipscode=.;
     105                *region=.;
     106                schdist=.;
     107                senfips=.;
     108                housefips=.;
    104109                sarea134=.;
    105110                fipstrct10=.;
     111                nmtribe=.;
     112                tribtrct10=.;
    106113
    107114                         CivNIPopErr  = (sqrt( CivNIPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region8Veteran.sas

    r13269 r19658  
    7373               
    7474        DATA final;
     75                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    7576                set tmp2;
    7677                fipscode=.;
     78                *region=.;
     79                schdist=.;
     80                senfips=.;
     81                housefips=.;
    7782                sarea134=.;
    7883                fipstrct10=.;
     84                nmtribe=.;
     85                tribtrct10=.;
    7986
    8087                        Civ18PopErr = (sqrt(Civ18Popx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region9Mobility.sas

    r13269 r19658  
    9999               
    100100        DATA final;
     101                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    101102                set tmp2;
    102103                fipscode=.;
     104                *region=.;
     105                schdist=.;
     106                senfips=.;
     107                housefips=.;
    103108                sarea134=.;
    104109                fipstrct10=.;
     110                nmtribe=.;
     111                tribtrct10=.;
    105112
    106113                        Pop1PlusErr = (sqrt(Pop1Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea10Foreign.sas

    r13269 r19658  
    9999               
    100100        DATA final;
     101                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    101102                set tmp2;
    102103                fipscode=.;
    103104                region=.;
     105                schdist=.;
     106                senfips=.;
     107                housefips=.;
     108                *sarea134=.;
    104109                fipstrct10=.;
     110                nmtribe=.;
     111                tribtrct10=.;
    105112
    106113                        TotalPopErr = (sqrt(TotalPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea11Language.sas

    r13269 r19658  
    129129               
    130130        DATA final;
     131                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    131132                set tmp2;
    132133                fipscode=.;
    133134                region=.;
     135                schdist=.;
     136                senfips=.;
     137                housefips=.;
     138                *sarea134=.;
    134139                fipstrct10=.;
     140                nmtribe=.;
     141                tribtrct10=.;
    135142
    136143                        Pop5PlusErr = (sqrt(Pop5Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea12HHType.sas

    r13269 r19658  
    121121               
    122122        DATA final;
     123                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    123124                set tmp2;
    124125                fipscode=.;
    125126                region=.;
     127                schdist=.;
     128                senfips=.;
     129                housefips=.;
     130                *sarea134=.;
    126131                fipstrct10=.;
     132                nmtribe=.;
     133                tribtrct10=.;
    127134               
    128135                        TotHHErr = (sqrt(TotHHx));
     
    149156                        HHwKidsPct = (HHwKidsEst/TotHHEst)*100;
    150157                        HHw65upPct = (HHw65upEst/TotHHEst)*100;
    151                         GPRespGrKidsPct = (GPRespGrKidsEst/TotHHEst)*100;
     158                        GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100;
    152159                        AvgHHSize = (PopinHHEst/TotHHEst);
    153160
     
    162169                        HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100;
    163170                        HHw65upPctErr = (HHw65upErr/TotHHEst)*100;
    164                         GPRespGrKidsPctErr = (GPRespGrKidsErr/TotHHEst)*100;
     171                        GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100;
    165172                        AvgHHSizeErr = (PopinHHErr/TotHHEst);
    166173
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea13Housing.sas

    r13269 r19658  
    5151
    5252    DATA tmp;
    53         set acs_all;
     53        set prelim.acs_all;
    5454                if 35001000107<=fipstrct10<=35061971400;
    5555                keep fipstrct10 sarea134 year
     
    220220               
    221221        DATA final;
     222                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    222223                set tmp2;
    223224                fipscode=.;
    224225                region=.;
     226                schdist=.;
     227                senfips=.;
     228                housefips=.;
     229                *sarea134=.;
    225230                fipstrct10=.;
     231                nmtribe=.;
     232                tribtrct10=.;
    226233               
    227234                        TotHUnitErr = (sqrt(TotHUnitx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea1Educ.sas

    r13269 r19658  
    5353                Pop25Est   = (Soc_HC01_VC84);
    5454                EduLT9Est  = (Soc_HC01_VC85);   
    55                 EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);     
    56                 EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);     
     55                EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);
     56                EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);
    5757                EduProfEst = (Soc_HC01_VC91);
    5858
     
    9191               
    9292        DATA final;
     93                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    9394                set tmp2;
    9495                fipscode=.;
    9596                region=.;
     97                schdist=.;
     98                senfips=.;
     99                housefips=.;
     100                *sarea134=.;
    96101                fipstrct10=.;
     102                nmtribe=.;
     103                tribtrct10=.;
    97104
    98105                        Pop25Err   = (sqrt(Pop25x  ));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea3Poverty.sas

    r13269 r19658  
    2525* used %s to calc nums by tract, combined nums by trct, calc SA %s;
    2626******************************************************************;
    27         DATA popn;
    28                 set final.popibistrct90_15_11oct2016;
    29                 if year in (2009 2010 2011 2012 2013); *MID-POINT YEARS IN 5-YR ACS DATASETS;
    30                 *agegrppov;
    31                 if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
    32                 if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
    33                 if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
    34                 if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
    35                 run;
    36 
    37         proc summary data=popn nway;
     27        *trctpopn dataset is created in the 4ACS_SareaTopics.sas program;
     28        *Use trct pop ibis dataset for both sarea and tract;
     29       
     30        proc summary data=trctpopn nway;
    3831                var popcount;                     *All persons;
    3932                class fipstrct10 year;
     
    4235                data pop; set pop; drop _TYPE_ _FREQ_; run;
    4336
    44         proc summary data=popn nway;
    45                 where (agregrppov = 1);  *_under age 5_ estimated popn by county, years 2009, 2010, 2011;
     37        proc summary data=trctpopn nway;
     38                where (agregrppov = 1);  *_under age 5_ estimated popn by census tract;
    4639                var popcount;
    4740                class fipstrct10 year;
     
    5043                data pop5; set pop5; drop _TYPE_ _FREQ_; run;
    5144
    52         proc summary data=popn nway;
    53                 where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county, years 2009, 2010, 2011;
     45        proc summary data=trctpopn nway;
     46                where (agregrppov = 2);  *_age 5 to 17_ estimated popn by census tract;
    5447                var popcount;
    5548                class fipstrct10 year;
     
    5851                data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run;
    5952
    60         proc summary data=popn nway;
    61                 where (agregrppov in (1 2));  *_under age 18_ estimated popn by county, years 2009, 2010, 2011;
     53        proc summary data=trctpopn nway;
     54                where (agregrppov in (1 2));  *_under age 18_ estimated popn by census tract;
    6255                var popcount;
    6356                class fipstrct10 year;
     
    6659                data pop18; set pop18; drop _TYPE_ _FREQ_; run;
    6760
    68         proc summary data=popn nway;
    69                 where (agregrppov=3);  *_age 65+_ estimated popn by county, years 2009, 2010, 2011;
     61        proc summary data=trctpopn nway;
     62                where (agregrppov=3);  *_age 65+_ estimated popn by census tract;
    7063                var popcount;
    7164                class fipstrct10 year;
     
    156149               
    157150        DATA final;
     151                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    158152                set tmp2;
    159153                fipscode=.;
    160154                region=.;
     155                schdist=.;
     156                senfips=.;
     157                housefips=.;
     158                *sarea134=.;
    161159                fipstrct10=.;
     160                nmtribe=.;
     161                tribtrct10=.;
    162162               
    163163                        PovEstErr    =(sqrt(PovEstx));
     
    228228                title '';
    229229                run;
     230
     231        proc print data=topics.Sarea3Poverty;
     232                where sarea134 in (1 2 3 4 5);
     233                var year sarea134 Pov5_17Pct Pov5_17PctErr;
     234                run;
     235
    230236*/
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea4Employment.sas

    r13269 r19658  
    134134
    135135        DATA final;
     136                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    136137                set tmp2;
    137138                fipscode=.;
    138139                region=.;
     140                schdist=.;
     141                senfips=.;
     142                housefips=.;
     143                *sarea134=.;
    139144                fipstrct10=.;
     145                nmtribe=.;
     146                tribtrct10=.;
    140147               
    141148                *******************************************************;
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea5Commute.sas

    r13269 r19658  
    109109
    110110        DATA final;
     111                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    111112                set tmp2;
    112113                fipscode=.;
    113114                region=.;
     115                schdist=.;
     116                senfips=.;
     117                housefips=.;
     118                *sarea134=.;
    114119                fipstrct10=.;
     120                nmtribe=.;
     121                tribtrct10=.;
    115122               
    116123                        Wrkr16UpErr = (sqrt(Wrkr16Upx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea6OccIndus.sas

    r13269 r19658  
    203203               
    204204        DATA final;
     205                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    205206                set tmp2;
    206207                fipscode=.;
    207208                region=.;
     209                schdist=.;
     210                senfips=.;
     211                housefips=.;
     212                *sarea134=.;
    208213                fipstrct10=.;
     214                nmtribe=.;
     215                tribtrct10=.;
    209216               
    210217                        CivEmp16Err = (sqrt(CivEmp16x));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea7HlthIns.sas

    r13269 r19658  
    9999
    100100        DATA final;
     101                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    101102                set tmp2;
    102103                fipscode=.;
    103104                region=.;
     105                schdist=.;
     106                senfips=.;
     107                housefips=.;
     108                *sarea134=.;
    104109                fipstrct10=.;
     110                nmtribe=.;
     111                tribtrct10=.;
    105112
    106113                         CivNIPopErr  = (sqrt( CivNIPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea8Veteran.sas

    r13269 r19658  
    7373               
    7474        DATA final;
     75                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    7576                set tmp2;
    7677                fipscode=.;
    7778                region=.;
     79                schdist=.;
     80                senfips=.;
     81                housefips=.;
     82                *sarea134=.;
    7883                fipstrct10=.;
     84                nmtribe=.;
     85                tribtrct10=.;
    7986
    8087                        Civ18PopErr = (sqrt(Civ18Popx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea9Mobility.sas

    r13269 r19658  
    9999               
    100100        DATA final;
     101                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    101102                set tmp2;
    102103                fipscode=.;
    103104                region=.;
     105                schdist=.;
     106                senfips=.;
     107                housefips=.;
     108                *sarea134=.;
    104109                fipstrct10=.;
     110                nmtribe=.;
     111                tribtrct10=.;
    105112
    106113                        Pop1PlusErr = (sqrt(Pop1Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct10Foreign.sas

    r13269 r19658  
    101101               
    102102        DATA final;
     103                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    103104                set tmp;
     105                fipscode=.;
     106                region=.;
     107                schdist=.;
     108                senfips=.;
     109                housefips=.;
    104110                sarea134=.;
    105                 region=.;
    106                 fipscode=.;
     111                *fipstrct10=.;
     112                nmtribe=.;
     113                tribtrct10=.;
    107114
    108115                        TotalPopErr = (sqrt(TotalPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct11Language.sas

    r13269 r19658  
    131131               
    132132        DATA final;
     133                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    133134                set tmp;
     135                fipscode=.;
     136                region=.;
     137                schdist=.;
     138                senfips=.;
     139                housefips=.;
    134140                sarea134=.;
    135                 region=.;
    136                 fipscode=.;
     141                *fipstrct10=.;
     142                nmtribe=.;
     143                tribtrct10=.;
    137144
    138145                        Pop5PlusErr = (sqrt(Pop5Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct12HHType.sas

    r13269 r19658  
    123123               
    124124        DATA final;
     125                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    125126                set tmp;
     127                fipscode=.;
     128                region=.;
     129                schdist=.;
     130                senfips=.;
     131                housefips=.;
    126132                sarea134=.;
    127                 region=.;
    128                 fipscode=.;
     133                *fipstrct10=.;
     134                nmtribe=.;
     135                tribtrct10=.;
    129136               
    130137                        TotHHErr = (sqrt(TotHHx));
     
    151158                        HHwKidsPct = (HHwKidsEst/TotHHEst)*100;
    152159                        HHw65upPct = (HHw65upEst/TotHHEst)*100;
    153                         GPRespGrKidsPct = (GPRespGrKidsEst/TotHHEst)*100;
     160                        GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100;
    154161                        AvgHHSize = (PopinHHEst/TotHHEst);
    155162
     
    164171                        HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100;
    165172                        HHw65upPctErr = (HHw65upErr/TotHHEst)*100;
    166                         GPRespGrKidsPctErr = (GPRespGrKidsErr/TotHHEst)*100;
     173                        GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100;
    167174                        AvgHHSizeErr = (PopinHHErr/TotHHEst);
    168175
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct13Housing.sas

    r13269 r19658  
    5353
    5454    DATA tmp;
    55         set acs_all;
     55        set prelim.acs_all;
    5656                if 35001000107<=fipstrct10<=35061971400;
    5757                keep fipstrct10 year
     
    224224               
    225225        DATA final;
     226                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    226227                set tmp;
     228                fipscode=.;
     229                region=.;
     230                schdist=.;
     231                senfips=.;
     232                housefips=.;
    227233                sarea134=.;
    228                 region=.;
    229                 fipscode=.;
     234                *fipstrct10=.;
     235                nmtribe=.;
     236                tribtrct10=.;
    230237               
    231238                        TotHUnitErr = (sqrt(TotHUnitx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct1Educ.sas

    r13269 r19658  
    5353                Pop25Est   = (Soc_HC01_VC84);
    5454                EduLT9Est  = (Soc_HC01_VC85);   
    55                 EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);     
    56                 EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);     
     55                EduNoHSEst = (Soc_HC01_VC85+Soc_HC01_VC86);
     56                EduBachEst = (Soc_HC01_VC90+Soc_HC01_VC91);
    5757                EduProfEst = (Soc_HC01_VC91);
    5858
     
    9090               
    9191                /*
    92                 proc print data=tmp2; run;
     92                proc print data=tmp; run;
    9393                */
    9494               
    9595        DATA final;
     96                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    9697                set tmp;
     98                fipscode=.;
     99                region=.;
     100                schdist=.;
     101                senfips=.;
     102                housefips=.;
    97103                sarea134=.;
    98                 region=.;
    99                 fipscode=.;
     104                *fipstrct10=.;
     105                nmtribe=.;
     106                tribtrct10=.;
    100107
    101108                        Pop25Err   = (sqrt(Pop25x  ));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct3Poverty.sas

    r13269 r19658  
    2424* of poverty count estimaes, ACS only provides percentages.       ;
    2525******************************************************************;
    26         DATA popn;
    27                 set final.popibistrct90_15_11oct2016;
    28                 if year in (2009 2010 2011 2012 2013); *MID-POINT YEARS IN 5-YR ACS DATASETS;
    29                 *agegrppov;
    30                 if  1 <=agegrp35<=  5 then agregrppov = 1; * 0 - 4 years;
    31                 if  6 <=agegrp35<= 18 then agregrppov = 2; * 5 - 17 years;
    32                 if 19 <=agegrp35<= 30 then agregrppov = 3; * 18 - 64 years;
    33                 if 31 <=agegrp35<= 35 then agregrppov = 4; * 65+ years;
    34                 run;
    35 
    36         proc summary data=popn nway;
     26        *trctpopn dataset is created in the 4ACS_SareaTopics.sas program;
     27        *Use trct pop ibis dataset for both sarea and tract;
     28       
     29        proc summary data=trctpopn nway;
    3730                var popcount;                     *All persons;
    3831                class fipstrct10 year;
     
    4134                data pop; set pop; drop _TYPE_ _FREQ_; run;
    4235
    43         proc summary data=popn nway;
    44                 where (agregrppov = 1);  *_under age 5_ estimated popn by county, years 2009, 2010, 2011;
     36        proc summary data=trctpopn nway;
     37                where (agregrppov = 1);  *_under age 5_ estimated popn by census tract;
    4538                var popcount;
    4639                class fipstrct10 year;
     
    4942                data pop5; set pop5; drop _TYPE_ _FREQ_; run;
    5043
    51         proc summary data=popn nway;
    52                 where (agregrppov = 2);  *_age 5 to 17_ estimated popn by county, years 2009, 2010, 2011;
     44        proc summary data=trctpopn nway;
     45                where (agregrppov = 2);  *_age 5 to 17_ estimated popn by census tract;
    5346                var popcount;
    5447                class fipstrct10 year;
     
    5750                data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run;
    5851
    59         proc summary data=popn nway;
    60                 where (agregrppov in (1 2));  *_under age 18_ estimated popn by county, years 2009, 2010, 2011;
     52        proc summary data=trctpopn nway;
     53                where (agregrppov in (1 2));  *_under age 18_ estimated popn by census tract;
    6154                var popcount;
    6255                class fipstrct10 year;
     
    6558                data pop18; set pop18; drop _TYPE_ _FREQ_; run;
    6659
    67         proc summary data=popn nway;
    68                 where (agregrppov=3);  *_age 65+_ estimated popn by county, years 2009, 2010, 2011;
     60        proc summary data=trctpopn nway;
     61                where (agregrppov=3);  *_age 65+_ estimated popn by census tract;
    6962                var popcount;
    7063                class fipstrct10 year;
    7164                output out=pop65 sum(popcount)= popcount65;
    7265                run;
    73                 data pop65; set pop65; drop _TYPE_ _FREQ_; run; /*
     66                data pop65; set pop65; drop _TYPE_ _FREQ_; run;
     67        /*
    7468        ods html ;
    7569        proc print data=tmp noobs; run;
     
    156150               
    157151        DATA final;
     152                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    158153                set tmp;
     154                fipscode=.;
     155                region=.;
     156                schdist=.;
     157                senfips=.;
     158                housefips=.;
    159159                sarea134=.;
    160                 region=.;
    161                 fipscode=.;
     160                *fipstrct10=.;
     161                nmtribe=.;
     162                tribtrct10=.;
    162163               
    163164                        PovEstErr    =(sqrt(PovEstx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct4Employment.sas

    r13269 r19658  
    129129
    130130        DATA final;
     131                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    131132                set tmp;
     133                fipscode=.;
     134                region=.;
     135                schdist=.;
     136                senfips=.;
     137                housefips=.;
    132138                sarea134=.;
    133                 region=.;
    134                 fipscode=.;
     139                *fipstrct10=.;
     140                nmtribe=.;
     141                tribtrct10=.;
    135142               
    136143                        Pop16PlusErr    = (sqrt(Pop16Plusx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct5Commute.sas

    r13269 r19658  
    111111
    112112        DATA final;
     113                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    113114                set tmp;
     115                fipscode=.;
     116                region=.;
     117                schdist=.;
     118                senfips=.;
     119                housefips=.;
    114120                sarea134=.;
    115                 region=.;
    116                 fipscode=.;
     121                *fipstrct10=.;
     122                nmtribe=.;
     123                tribtrct10=.;
    117124               
    118125                        Wrkr16UpErr = (sqrt(Wrkr16Upx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct6OccIndus.sas

    r13269 r19658  
    205205               
    206206        DATA final;
     207                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    207208                set tmp;
     209                fipscode=.;
     210                region=.;
     211                schdist=.;
     212                senfips=.;
     213                housefips=.;
    208214                sarea134=.;
    209                 region=.;
    210                 fipscode=.;
     215                *fipstrct10=.;
     216                nmtribe=.;
     217                tribtrct10=.;
    211218               
    212219                        CivEmp16Err = (sqrt(CivEmp16x));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct7HlthIns.sas

    r13269 r19658  
    101101
    102102        DATA final;
     103                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    103104                set tmp;
     105                fipscode=.;
     106                region=.;
     107                schdist=.;
     108                senfips=.;
     109                housefips=.;
    104110                sarea134=.;
    105                 region=.;
    106                 fipscode=.;
     111                *fipstrct10=.;
     112                nmtribe=.;
     113                tribtrct10=.;
    107114
    108115                         CivNIPopErr  = (sqrt( CivNIPopx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct8Veteran.sas

    r13269 r19658  
    7575               
    7676        DATA final;
     77                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    7778                set tmp;
     79                fipscode=.;
     80                region=.;
     81                schdist=.;
     82                senfips=.;
     83                housefips=.;
    7884                sarea134=.;
    79                 region=.;
    80                 fipscode=.;
     85                *fipstrct10=.;
     86                nmtribe=.;
     87                tribtrct10=.;
    8188
    8289                        Civ18PopErr = (sqrt(Civ18Popx));
  • adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct9Mobility.sas

    r13269 r19658  
    101101               
    102102        DATA final;
     103                format year 4.0 fipscode region 5.0  schdist 7.0  senfips housefips sarea134 5.0  fipstrct10 11.0;
    103104                set tmp;
     105                fipscode=.;
     106                region=.;
     107                schdist=.;
     108                senfips=.;
     109                housefips=.;
    104110                sarea134=.;
    105                 region=.;
    106                 fipscode=.;
     111                *fipstrct10=.;
     112                nmtribe=.;
     113                tribtrct10=.;
    107114
    108115                        Pop1PlusErr = (sqrt(Pop1Plusx));
Note: See TracChangeset for help on using the changeset viewer.