Changeset 19658 in main
- Timestamp:
- 12/29/19 15:48:11 (3 years ago)
- 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 12 12 * to change occasionally. I have used the 2012 var names so that all vars have the same name ; 13 13 * in every year. Use P:\ACS\programs\INCLUDE\InputDatasetMetaData_LMH.xlsx to verify variable ; 14 * sequence and content. ; ;15 * ; ;14 * sequence and content. ; 15 * ; 16 16 * Created by: Lois Haggard 12/30/13 ; 17 17 * Last Modified: ; … … 20 20 * - 12/09/2015, Lois H., to include 2010-2014 5-yr estimates. ; 21 21 * - 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 ; 22 25 * - ; 23 26 **********************************************************************************************; … … 42 45 ****************************************************************; 43 46 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 50 96 DATA Social_DP02_12; 51 97 infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP02_with_ann.csv' 52 98 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' ; 54 100 year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET; 55 101 run; … … 57 103 infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP02_with_ann.csv' 58 104 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' ; 60 106 year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET; /*In 2013, 3 vars about computer and internet usage were added at the end */ 61 107 run; … … 63 109 infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP02_with_ann.csv' 64 110 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' ; 66 112 year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET; 67 113 run; … … 69 115 infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP02_with_ann.csv' 70 116 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' ; 72 118 year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET; 73 119 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; 74 132 DATA sections.Social_DP02; 75 set Social_DP02_1 1 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; 77 135 run; 78 136 79 137 /* 80 138 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'; 86 142 run; 87 143 */ 88 144 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;95 145 DATA Econ_DP03_12; 96 146 infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP03_with_ann.csv' 97 147 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' ; 99 149 year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET; 100 150 run; … … 102 152 infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP03_with_ann.csv' 103 153 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.*/ 105 155 year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET; 106 156 run; … … 108 158 infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP03_with_ann.csv' 109 159 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' ; 111 161 year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET; 112 162 run; … … 114 164 infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP03_with_ann.csv' 115 165 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' ; 117 167 year=2013; *MID-POINT YEAR IN 5-YR ACS DATASET; 118 168 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; 119 181 DATA sections.Econ_DP03; 120 set Econ_DP03_1 1 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; 122 184 run; 123 185 124 186 /* 125 187 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'; 131 191 run; 132 192 */ 133 193 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;140 194 DATA Housing_DP04_12; 141 195 infile 'P:\ACS\data\ORIG\ACS_12_5YR_DP04_with_ann.csv' 142 196 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' ; 144 198 year=2010; *MID-POINT YEAR IN 5-YR ACS DATASET; 145 199 run; … … 147 201 infile 'P:\ACS\data\ORIG\ACS_13_5YR_DP04_with_ann.csv' 148 202 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' ; 150 204 year=2011; *MID-POINT YEAR IN 5-YR ACS DATASET; 151 205 run; … … 153 207 infile 'P:\ACS\data\ORIG\ACS_14_5YR_DP04_with_ann.csv' 154 208 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' ; 156 210 year=2012; *MID-POINT YEAR IN 5-YR ACS DATASET; 157 211 run; … … 159 213 infile 'P:\ACS\data\ORIG\ACS_15_5YR_DP04_with_ann.csv' 160 214 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*/ 162 216 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. */ 163 217 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; 164 230 DATA sections.Housing_DP04; 165 set Housing_DP04_1 1 Housing_DP04_12 Housing_DP04_13 Housing_DP04_14 Housing_DP04_15;166 *The seare variables that changed in meaning over time;167 Drop trash1 trash2231 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 168 234 Hous_HC01_VC26 Hous_HC02_VC26 Hous_HC03_VC26 Hous_HC04_VC26 169 235 Hous_HC01_VC27 Hous_HC02_VC27 Hous_HC03_VC27 Hous_HC04_VC27 … … 214 280 Hous_HC01_VC183 Hous_HC02_VC183 Hous_HC03_VC183 Hous_HC04_VC183 215 281 Hous_HC01_VC184 Hous_HC02_VC184 Hous_HC03_VC184 Hous_HC04_VC184 ; 216 217 218 282 run; 219 283 220 284 /* 221 285 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'; 227 289 run; 228 290 */ 229 291 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; 233 296 234 297 ****************************************************************; … … 241 304 DATA acs_geoid; 242 305 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 246 310 ; 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; 248 322 run; 249 323 250 324 /* 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; 251 338 proc freq data=acs_geoid; 252 tables geo id*year / missprint nopercent norow nocol;339 tables geolong*year / missprint nopercent norow nocol; 253 340 run; 254 341 */ 255 342 256 343 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 ; 258 345 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 259 352 fipscode=.; 260 if ( 35001<=geoid<=35061) then do;353 if (geolong<=:"0500000US") then do; 261 354 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 263 372 fipstrct10=.; 264 if (35001000107<=geoid<=35061971400)then do;373 if geolong=:"1400000US" then do; 265 374 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; 269 384 270 385 sarea134=.; … … 272 387 273 388 region=.; 274 if fipscode in (35006 35031 35045) then region=1; *Northwest;389 if fipscode in (35006 35031 35045) then region=1; *Northwest; 275 390 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' 283 431 ; 284 432 run; 433 285 434 /* 286 435 ods html close ; … … 288 437 289 438 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 290 444 proc print data=prelim.acs_all (obs=20); 291 445 where fipscode ne .; 292 446 run; 293 447 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); 294 463 where fipstrct10 ne .; 295 464 run; 296 proc print data=prelim.acs_all (obs= 20);297 where sarea134ne .;465 proc print data=prelim.acs_all (obs=100) ; 466 where nmtribe ne .; 298 467 run; 299 468 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; 301 478 run; 302 479 */ -
adopters/nm/trunk/src/main/sas/acs/programs/2ACS_CountyTopics.sas
r13269 r19658 1 1 ******************************************************************; 2 * Program to combine County datasets. 2 * Program to combine County datasets. ; 3 3 * ; 4 4 * C:\SAS\programs\2ACS_CountyTopics.sas ; … … 8 8 * 12/11/2015 by Lois - added RacEth data ; 9 9 * 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 ; 10 13 * ; 11 14 ******************************************************************; … … 24 27 25 28 ****** Closes/clears Results Viewer Window and sets it to reopen for new output. ******; 26 ods html close ;29 *ods html close ; 27 30 *ods html ; 28 31 29 32 /* 30 33 proc contents data=prelim.acs_all varnum; run; 34 proc compare base=topics.cnty13housing20180703 35 compare=topics.cnty13housing; run; 31 36 */ 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; 32 49 33 50 data acs_all; … … 35 52 run; 36 53 37 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty0 RacEth.sas';54 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty0ACSPop.sas'; 38 55 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty1Educ.sas'; 39 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty2 MedIncome.sas';56 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty2Income.sas'; 40 57 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty3Poverty.sas'; 41 58 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty4Employment.sas'; … … 50 67 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Cnty\Cnty13Housing.sas'; 51 68 52 data prelim.cntyACSdemos1 1_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; 54 71 merge 55 topics.Cnty0 RacEth72 topics.Cnty0ACSPop 56 73 topics.Cnty1Educ 57 topics.Cnty2 MedIncome74 topics.Cnty2Income 58 75 topics.Cnty3Poverty 59 76 topics.Cnty4Employment … … 71 88 72 89 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.; 74 91 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; 76 93 region=35000; 94 schdist=35000; 95 senfips=35000; 96 housefips=35000; 77 97 sarea134=35000; 78 98 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; 79 111 end; 80 112 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'; 83 114 84 115 run; 85 116 86 117 /* 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' "; 88 127 89 128 ods html close ; 90 129 ods html ; 91 proc contents data=prelim. CntyACSdemos11_15varnum; run;92 proc print data=prelim. CntyACSdemos11_15noobs;130 proc contents data=prelim.cntyACSdemos12_17 varnum; run; 131 proc print data=prelim.cntyACSdemos12_17 noobs; 93 132 title ''; 94 133 run; -
adopters/nm/trunk/src/main/sas/acs/programs/3ACS_RegionTopics.sas
r13269 r19658 4 4 * Created by: Lois Haggard, 02/24/2017 ; 5 5 * Modified: ; 6 * 02/24/2017, Lois H., to include NM overall estimates ; 7 * 03/02/2017, Lois H., to include SNAP and cash assistance ; 6 8 * ; 7 9 * ; … … 21 23 22 24 ****** 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 ; 25 27 26 28 /* … … 28 30 */ 29 31 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; 31 45 set prelim.acs_all; 32 46 run; 33 47 34 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region0 RacEth.sas';48 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region0ACSPop.sas'; 35 49 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region1Educ.sas'; 36 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region2 MedIncome.sas';50 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region2Income.sas'; 37 51 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region3Poverty.sas'; 38 52 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region4Employment.sas'; … … 47 61 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Region\Region13Housing.sas'; 48 62 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; 50 65 merge 51 topics.Region0 RacEth66 topics.Region0ACSPop 52 67 topics.Region1Educ 53 topics.Region2 MedIncome68 topics.Region2Income 54 69 topics.Region3Poverty 55 70 topics.Region4Employment … … 66 81 by region year; 67 82 83 label region= 'region: NM health regions, 1-61, NM=35000, U.S.=1000'; 84 68 85 run; 69 86 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; 72 91 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; 79 100 */ -
adopters/nm/trunk/src/main/sas/acs/programs/4ACS_SareaTopics.sas
r13269 r19658 7 7 * 12/11/2015 by Lois - added RacEth data ; 8 8 * 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 ; 9 11 * ; 10 12 ******************************************************************; … … 24 26 25 27 ****** 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 ; 28 30 29 31 /* 30 32 proc contents data=prelim.acs_all varnum; run; 31 33 */ 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; 32 45 33 46 data acs_all; … … 35 48 run; 36 49 37 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea0 RacEth.sas';50 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea0ACSPop.sas'; 38 51 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea1Educ.sas'; 39 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea2 MedIncome.sas';52 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea2Income.sas'; 40 53 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea3Poverty.sas'; 41 54 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea4Employment.sas'; … … 50 63 %INCLUDE 'P:\ACS\programs\INCLUDE\Topics\Sarea\Sarea13Housing.sas'; 51 64 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; 53 67 merge 54 topics.Sarea0 RacEth68 topics.Sarea0ACSPop 55 69 topics.Sarea1Educ 56 topics.Sarea2 MedIncome70 topics.Sarea2Income 57 71 topics.Sarea3Poverty 58 72 topics.Sarea4Employment … … 69 83 by Sarea134 year; 70 84 85 label sarea134= 'sarea134: 108 NM sareas, NM=35000, U.S.=1000'; 86 71 87 run; 72 88 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; 75 93 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; 82 102 */ -
adopters/nm/trunk/src/main/sas/acs/programs/ACSMisc.sas
r13269 r19658 22 22 DATA acsalltrct; set prelim.acs_all; if 35001000107<=fipstrct10=35001000116; run; 23 23 DATA acsall; set acsallcnty acsallsarea acsalltrct; run; 24 DATA acsdemos; set prelim.acsdemos12_17; run; 25 proc 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; 30 proc 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; 48 proc 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 55 proc 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; 92 proc print data=Table label noobs; 93 var _VAR_ _MIN_ _MEAN_ _MAX_ ; 94 label _VAR_='acsdemos'; 95 run; 24 96 25 97 -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty10Foreign.sas
r13269 r19658 31 31 DATA tmp; 32 32 set prelim.acs_all; 33 if 35000<=fipscode<=35061;33 if (35000<=fipscode<=35061) or (fipscode=1000); 34 34 keep fipscode year 35 35 … … 102 102 103 103 DATA final; 104 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 104 105 set tmp; 106 *fipscode=.; 107 region=.; 108 schdist=.; 109 senfips=.; 110 housefips=.; 105 111 sarea134=.; 106 region=.;107 112 fipstrct10=.; 113 nmtribe=.; 114 tribtrct10=.; 108 115 109 116 TotalPopErr = (sqrt(TotalPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty11Language.sas
r13269 r19658 36 36 DATA tmp; 37 37 set prelim.acs_all; 38 if 35000<=fipscode<=35061;38 if (35000<=fipscode<=35061) or (fipscode=1000); 39 39 keep fipscode year 40 40 … … 132 132 133 133 DATA final; 134 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 134 135 set tmp; 136 *fipscode=.; 137 region=.; 138 schdist=.; 139 senfips=.; 140 housefips=.; 135 141 sarea134=.; 136 region=.;137 142 fipstrct10=.; 143 nmtribe=.; 144 tribtrct10=.; 138 145 139 146 Pop5PlusErr = (sqrt(Pop5Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty12HHType.sas
r13269 r19658 37 37 DATA tmp; 38 38 set prelim.acs_all; 39 if 35000<=fipscode<=35061;39 if (35000<=fipscode<=35061) or (fipscode=1000); 40 40 keep fipscode year 41 41 … … 65 65 set tmp; 66 66 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; 78 78 79 79 *******************************************************; … … 124 124 125 125 DATA final; 126 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 126 127 set tmp; 128 *fipscode=.; 129 region=.; 130 schdist=.; 131 senfips=.; 132 housefips=.; 127 133 sarea134=.; 128 region=.;129 134 fipstrct10=.; 135 nmtribe=.; 136 tribtrct10=.; 130 137 131 138 TotHHErr = (sqrt(TotHHx)); … … 152 159 HHwKidsPct = (HHwKidsEst/TotHHEst)*100; 153 160 HHw65upPct = (HHw65upEst/TotHHEst)*100; 154 GPRespGrKidsPct = (GPRespGrKidsEst/ TotHHEst)*100;161 GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100; 155 162 AvgHHSize = (PopinHHEst/TotHHEst); 156 163 … … 165 172 HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100; 166 173 HHw65upPctErr = (HHw65upErr/TotHHEst)*100; 167 GPRespGrKidsPctErr = (GPRespGrKidsErr/ TotHHEst)*100;174 GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100; 168 175 AvgHHSizeErr = (PopinHHErr/TotHHEst); 169 176 if fipscode=35000 then AvgHHSizeErr=.001; … … 194 201 FamHHSFemEst = 'Family HH single female head of HH' 195 202 FamHHSFemKidsEst = 'Family HH single female w/own kids' 196 HHwKidsEst = 'HH w/ peopleunder age 18'203 HHwKidsEst = 'HH w/children under age 18' 197 204 HHw65upEst = 'HH w/people age 65 and over' 198 205 GPRespGrKidsEst = 'Grandparents resp for GrandKids' -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty13Housing.sas
r13269 r19658 56 56 DATA tmp; 57 57 set prelim.acs_all; 58 if 35000<=fipscode<=35061;58 if (35000<=fipscode<=35061) or (fipscode=1000); 59 59 keep fipscode year 60 60 … … 227 227 228 228 DATA final; 229 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 229 230 set tmp; 231 *fipscode=.; 232 region=.; 233 schdist=.; 234 senfips=.; 235 housefips=.; 230 236 sarea134=.; 231 region=.;232 237 fipstrct10=.; 238 nmtribe=.; 239 tribtrct10=.; 233 240 234 241 TotHUnitErr = (sqrt(TotHUnitx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty1Educ.sas
r13269 r19658 32 32 DATA tmp; 33 33 set prelim.acs_all; 34 if 35000<=fipscode<=35061;34 if (35000<=fipscode<=35061) or (fipscode=1000); 35 35 keep fipscode year 36 36 … … 95 95 96 96 DATA final; 97 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 97 98 set tmp; 99 *fipscode=.; 100 region=.; 101 schdist=.; 102 senfips=.; 103 housefips=.; 98 104 sarea134=.; 99 region=.;100 105 fipstrct10=.; 106 nmtribe=.; 107 tribtrct10=.; 101 108 102 109 Pop25Err = (sqrt(Pop25x )); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty3Poverty.sas
r13269 r19658 25 25 * of poverty count estimaes, ACS only provides percentages. ; 26 26 ******************************************************************; 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 ; 39 31 var popcount; *All persons; 40 32 class fipscode year; … … 43 35 data pop; set pop; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run; 44 36 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; 47 39 var popcount; 48 40 class fipscode year; … … 51 43 data pop5; set pop5; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run; 52 44 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; 55 47 var popcount; 56 48 class fipscode year; … … 59 51 data pop5_17; set pop5_17; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run; 60 52 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; 63 55 var popcount; 64 56 class fipscode year; … … 67 59 data pop18; set pop18; if year ne .; if fipscode=. then fipscode=35000; drop _TYPE_ _FREQ_; run; 68 60 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; 71 63 var popcount; 72 64 class fipscode year; … … 92 84 DATA tmp; 93 85 set prelim.acs_all; 94 if 35000<=fipscode<=35061;86 if (35000<=fipscode<=35061) or (fipscode=1000); 95 87 keep fipscode year 96 88 … … 125 117 DATA tmp; 126 118 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; 145 139 run; 146 140 … … 162 156 163 157 DATA final; 158 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 164 159 set tmp; 160 *fipscode=.; 161 region=.; 162 schdist=.; 163 senfips=.; 164 housefips=.; 165 165 sarea134=.; 166 region=.;167 166 fipstrct10=.; 167 nmtribe=.; 168 tribtrct10=.; 168 169 169 170 PovEstErr =(sqrt(PovEstx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty4Employment.sas
r13269 r19658 43 43 DATA tmp; 44 44 set prelim.acs_all; 45 if 35000<=fipscode<=35061;45 if (35000<=fipscode<=35061) or (fipscode=1000); 46 46 keep fipscode year 47 47 … … 135 135 136 136 DATA final; 137 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 137 138 set tmp; 139 *fipscode=.; 140 region=.; 141 schdist=.; 142 senfips=.; 143 housefips=.; 138 144 sarea134=.; 139 region=.;140 145 fipstrct10=.; 146 nmtribe=.; 147 tribtrct10=.; 141 148 142 149 Pop16PlusErr = (sqrt(Pop16Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty5Commute.sas
r13269 r19658 33 33 DATA tmp; 34 34 set prelim.acs_all; 35 if 35000<=fipscode<=35061;35 if (35000<=fipscode<=35061) or (fipscode=1000); 36 36 keep fipscode year 37 37 … … 112 112 113 113 DATA final; 114 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 114 115 set tmp; 116 *fipscode=.; 117 region=.; 118 schdist=.; 119 senfips=.; 120 housefips=.; 115 121 sarea134=.; 116 region=.;117 122 fipstrct10=.; 123 nmtribe=.; 124 tribtrct10=.; 118 125 119 126 Wrkr16UpErr = (sqrt(Wrkr16Upx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty6OccIndus.sas
r13269 r19658 48 48 DATA tmp; 49 49 set prelim.acs_all; 50 if 35000<=fipscode<=35061;50 if (35000<=fipscode<=35061) or (fipscode=1000); 51 51 keep fipscode year 52 52 … … 87 87 set tmp; 88 88 CivEmp16Est = Econ_HC01_VC40; 89 MgtScArtEst = Econ_HC01_VC41; 89 MgtScArtEst = Econ_HC01_VC41; 90 90 ServiceEst = Econ_HC01_VC42; 91 91 SalesOfcEst = Econ_HC01_VC43; 92 ResConstEst = Econ_HC01_VC44; 92 ResConstEst = Econ_HC01_VC44; 93 93 ProdTranEst = Econ_HC01_VC45; 94 94 IndAgricEst = Econ_HC01_VC50; … … 206 206 207 207 DATA final; 208 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 208 209 set tmp; 210 *fipscode=.; 211 region=.; 212 schdist=.; 213 senfips=.; 214 housefips=.; 209 215 sarea134=.; 210 region=.;211 216 fipstrct10=.; 217 nmtribe=.; 218 tribtrct10=.; 212 219 213 220 CivEmp16Err = (sqrt(CivEmp16x)); … … 232 239 ClassPriErr = (sqrt(ClassPrix)); 233 240 ClassGovErr = (sqrt(ClassGovx)); 234 241 ClassSelErr = (sqrt(ClassSelx)); 235 242 ClassFamErr = (sqrt(ClassFamx)); 236 243 237 244 CivEmp16Pct = (CivEmp16Est/CivEmp16Est)*100; 238 245 MgtScArtPct = (MgtScArtEst/CivEmp16Est)*100; 239 246 ServicePct = ( ServiceEst/CivEmp16Est)*100; 240 247 SalesOfcPct = (SalesOfcEst/CivEmp16Est)*100; 241 248 ResConstPct = (ResConstEst/CivEmp16Est)*100; 242 249 ProdTranPct = (ProdTranEst/CivEmp16Est)*100; 243 250 IndAgricPct = (IndAgricEst/CivEmp16Est)*100; 244 251 IndConstPct = (IndConstEst/CivEmp16Est)*100; 245 252 IndManufPct = (IndManufEst/CivEmp16Est)*100; 246 253 IndTradePct = (IndTradeEst/CivEmp16Est)*100; 247 254 IndRetaiPct = (IndRetaiEst/CivEmp16Est)*100; 248 255 IndTransPct = (IndTransEst/CivEmp16Est)*100; 249 256 IndInforPct = (IndInforEst/CivEmp16Est)*100; 250 257 IndFinanPct = (IndFinanEst/CivEmp16Est)*100; 251 258 IndProfePct = (IndProfeEst/CivEmp16Est)*100; 252 259 IndEducaPct = (IndEducaEst/CivEmp16Est)*100; 253 260 IndArtsePct = (IndArtseEst/CivEmp16Est)*100; 254 261 IndOthSvPct = (IndOthSvEst/CivEmp16Est)*100; 255 262 IndPubAdPct = (IndPubAdEst/CivEmp16Est)*100; 256 263 ClassPriPct = (ClassPriEst/CivEmp16Est)*100; 257 264 ClassGovPct = (ClassGovEst/CivEmp16Est)*100; 258 265 ClassSelPct = (ClassSelEst/CivEmp16Est)*100; 259 260 261 266 ClassFamPct = (ClassFamEst/CivEmp16Est)*100; 267 268 CivEmp16PctErr = (CivEmp16Err/CivEmp16Est)*100; 262 269 MgtScArtPctErr = (MgtScArtErr/CivEmp16Est)*100; 263 270 ServicePctErr = ( ServiceErr/CivEmp16Est)*100; 264 271 SalesOfcPctErr = (SalesOfcErr/CivEmp16Est)*100; 265 272 ResConstPctErr = (ResConstErr/CivEmp16Est)*100; 266 273 ProdTranPctErr = (ProdTranErr/CivEmp16Est)*100; 267 274 IndAgricPctErr = (IndAgricErr/CivEmp16Est)*100; 268 275 IndConstPctErr = (IndConstErr/CivEmp16Est)*100; 269 276 IndManufPctErr = (IndManufErr/CivEmp16Est)*100; 270 277 IndTradePctErr = (IndTradeErr/CivEmp16Est)*100; 271 278 IndRetaiPctErr = (IndRetaiErr/CivEmp16Est)*100; 272 279 IndTransPctErr = (IndTransErr/CivEmp16Est)*100; 273 280 IndInforPctErr = (IndInforErr/CivEmp16Est)*100; 274 281 IndFinanPctErr = (IndFinanErr/CivEmp16Est)*100; 275 282 IndProfePctErr = (IndProfeErr/CivEmp16Est)*100; 276 283 IndEducaPctErr = (IndEducaErr/CivEmp16Est)*100; 277 284 IndArtsePctErr = (IndArtseErr/CivEmp16Est)*100; 278 285 IndOthSvPctErr = (IndOthSvErr/CivEmp16Est)*100; 279 286 IndPubAdPctErr = (IndPubAdErr/CivEmp16Est)*100; 280 287 ClassPriPctErr = (ClassPriErr/CivEmp16Est)*100; 281 288 ClassGovPctErr = (ClassGovErr/CivEmp16Est)*100; 282 289 ClassSelPctErr = (ClassSelErr/CivEmp16Est)*100; 283 290 ClassFamPctErr = (ClassFamErr/CivEmp16Est)*100; 284 291 285 292 keep year sarea134 fipscode fipstrct10 286 293 CivEmp16Est CivEmp16Err CivEmp16Pct CivEmp16PctErr 287 294 MgtScArtEst MgtScArtErr MgtScArtPct MgtScArtPctErr 288 295 ServiceEst ServiceErr ServicePct ServicePctErr 289 296 SalesOfcEst SalesOfcErr SalesOfcPct SalesOfcPctErr 290 297 ResConstEst ResConstErr ResConstPct ResConstPctErr 291 298 ProdTranEst ProdTranErr ProdTranPct ProdTranPctErr 292 299 IndAgricEst IndAgricErr IndAgricPct IndAgricPctErr 293 300 IndConstEst IndConstErr IndConstPct IndConstPctErr 294 301 IndManufEst IndManufErr IndManufPct IndManufPctErr 295 302 IndTradeEst IndTradeErr IndTradePct IndTradePctErr 296 303 IndRetaiEst IndRetaiErr IndRetaiPct IndRetaiPctErr 297 304 IndTransEst IndTransErr IndTransPct IndTransPctErr 298 305 IndInforEst IndInforErr IndInforPct IndInforPctErr 299 306 IndFinanEst IndFinanErr IndFinanPct IndFinanPctErr 300 307 IndProfeEst IndProfeErr IndProfePct IndProfePctErr 301 308 IndEducaEst IndEducaErr IndEducaPct IndEducaPctErr 302 309 IndArtseEst IndArtseErr IndArtsePct IndArtsePctErr 303 310 IndOthSvEst IndOthSvErr IndOthSvPct IndOthSvPctErr 304 311 IndPubAdEst IndPubAdErr IndPubAdPct IndPubAdPctErr 305 312 ClassPriEst ClassPriErr ClassPriPct ClassPriPctErr 306 313 ClassGovEst ClassGovErr ClassGovPct ClassGovPctErr 307 314 ClassSelEst ClassSelErr ClassSelPct ClassSelPctErr 308 315 ClassFamEst ClassFamErr ClassFamPct ClassFamPctErr 309 316 ; 310 317 … … 360 367 ClassFamErr = 'ClassFamEst std err (mult by Z for CI)' 361 368 362 369 CivEmp16Pct = 'CivEmp16Est as a Pct of CivEmp16Est' 363 370 MgtScArtPct = 'MgtScArtEst as a Pct of CivEmp16Est' 364 371 ServicePct = ' ServiceEst as a Pct of CivEmp16Est' 365 372 SalesOfcPct = 'SalesOfcEst as a Pct of CivEmp16Est' 366 373 ResConstPct = 'ResConstEst as a Pct of CivEmp16Est' 367 374 ProdTranPct = 'ProdTranEst as a Pct of CivEmp16Est' 368 375 IndAgricPct = 'IndAgricEst as a Pct of CivEmp16Est' 369 376 IndConstPct = 'IndConstEst as a Pct of CivEmp16Est' 370 377 IndManufPct = 'IndManufEst as a Pct of CivEmp16Est' 371 378 IndTradePct = 'IndTradeEst as a Pct of CivEmp16Est' 372 379 IndRetaiPct = 'IndRetaiEst as a Pct of CivEmp16Est' 373 380 IndTransPct = 'IndTransEst as a Pct of CivEmp16Est' 374 381 IndInforPct = 'IndInforEst as a Pct of CivEmp16Est' 375 382 IndFinanPct = 'IndFinanEst as a Pct of CivEmp16Est' 376 383 IndProfePct = 'IndProfeEst as a Pct of CivEmp16Est' 377 384 IndEducaPct = 'IndEducaEst as a Pct of CivEmp16Est' 378 385 IndArtsePct = 'IndArtseEst as a Pct of CivEmp16Est' 379 386 IndOthSvPct = 'IndOthSvEst as a Pct of CivEmp16Est' 380 387 IndPubAdPct = 'IndPubAdEst as a Pct of CivEmp16Est' 381 388 ClassPriPct = 'ClassPriEst as a Pct of CivEmp16Est' 382 389 ClassGovPct = 'ClassGovEst as a Pct of CivEmp16Est' 383 390 ClassSelPct = 'ClassSelEst as a Pct of CivEmp16Est' 384 391 ClassFamPct = 'ClassFamEst as a Pct of CivEmp16Est' 385 392 386 393 CivEmp16PctErr = 'CivEmp16Pct std err (mult by Z for CI)' -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty7HlthIns.sas
r13269 r19658 33 33 DATA tmp; 34 34 set prelim.acs_all; 35 if 35000<=fipscode<=35061;35 if (35000<=fipscode<=35061) or (fipscode=1000); 36 36 keep fipscode year 37 37 38 38 /*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 47 47 ; 48 48 run; … … 58 58 CivNIPopEst = Econ_HC01_VC127; 59 59 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; 64 64 65 65 *******************************************************; … … 84 84 CivNIPopEst CivNIPopx 85 85 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 90 90 ; 91 91 class fipscode year; … … 93 93 CivNIPopEst CivNIPopx 94 94 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 99 99 )=; 100 100 run; … … 102 102 103 103 DATA final; 104 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 104 105 set tmp; 106 *fipscode=.; 107 region=.; 108 schdist=.; 109 senfips=.; 110 housefips=.; 105 111 sarea134=.; 106 region=.;107 112 fipstrct10=.; 113 nmtribe=.; 114 tribtrct10=.; 108 115 109 116 CivNIPopErr = (sqrt( CivNIPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty8Veteran.sas
r13269 r19658 27 27 DATA tmp; 28 28 set prelim.acs_all; 29 if 35000<=fipscode<=35061;29 if (35000<=fipscode<=35061) or (fipscode=1000); 30 30 keep fipscode year 31 31 … … 43 43 set tmp; 44 44 Civ18PopEst = Soc_HC01_VC98; 45 Civ18VetEst = Soc_HC01_VC99; 45 Civ18VetEst = Soc_HC01_VC99; 46 46 47 47 *******************************************************; … … 76 76 77 77 DATA final; 78 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 78 79 set tmp; 80 *fipscode=.; 81 region=.; 82 schdist=.; 83 senfips=.; 84 housefips=.; 79 85 sarea134=.; 80 region=.;81 86 fipstrct10=.; 87 nmtribe=.; 88 tribtrct10=.; 82 89 83 90 Civ18PopErr = (sqrt(Civ18Popx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Cnty/Cnty9Mobility.sas
r13269 r19658 31 31 DATA tmp; 32 32 set prelim.acs_all; 33 if 35000<=fipscode<=35061;33 if (35000<=fipscode<=35061) or (fipscode=1000); 34 34 keep fipscode year 35 35 … … 102 102 103 103 DATA final; 104 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 104 105 set tmp; 106 *fipscode=.; 107 region=.; 108 schdist=.; 109 senfips=.; 110 housefips=.; 105 111 sarea134=.; 106 region=.;107 112 fipstrct10=.; 113 nmtribe=.; 114 tribtrct10=.; 108 115 109 116 Pop1PlusErr = (sqrt(Pop1Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region10Foreign.sas
r13269 r19658 99 99 100 100 DATA final; 101 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 101 102 set tmp2; 102 103 fipscode=.; 104 *region=.; 105 schdist=.; 106 senfips=.; 107 housefips=.; 103 108 sarea134=.; 104 109 fipstrct10=.; 110 nmtribe=.; 111 tribtrct10=.; 105 112 106 113 TotalPopErr = (sqrt(TotalPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region11Language.sas
r13269 r19658 129 129 130 130 DATA final; 131 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 131 132 set tmp2; 132 133 fipscode=.; 134 *region=.; 135 schdist=.; 136 senfips=.; 137 housefips=.; 133 138 sarea134=.; 134 139 fipstrct10=.; 140 nmtribe=.; 141 tribtrct10=.; 135 142 136 143 Pop5PlusErr = (sqrt(Pop5Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region12HHType.sas
r13269 r19658 64 64 set tmp; 65 65 TotHHEst = Soc_HC01_VC03; 66 FamHHEst = Soc_HC01_VC04; 66 FamHHEst = Soc_HC01_VC04; 67 67 NonFamHHEst = Soc_HC01_VC13; 68 68 FamHHkidsEst = Soc_HC01_VC06; 69 69 FamHHMarEst = Soc_HC01_VC07; 70 FamHHMarKidsEst = Soc_HC01_VC08; 70 FamHHMarKidsEst = Soc_HC01_VC08; 71 71 FamHHSFemEst = Soc_HC01_VC11; 72 72 FamHHSFemKidsEst = Soc_HC01_VC12; … … 121 121 122 122 DATA final; 123 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 123 124 set tmp2; 124 125 fipscode=.; 126 *region=.; 127 schdist=.; 128 senfips=.; 129 housefips=.; 125 130 sarea134=.; 126 131 fipstrct10=.; 132 nmtribe=.; 133 tribtrct10=.; 127 134 128 135 TotHHErr = (sqrt(TotHHx)); … … 149 156 HHwKidsPct = (HHwKidsEst/TotHHEst)*100; 150 157 HHw65upPct = (HHw65upEst/TotHHEst)*100; 151 GPRespGrKidsPct = (GPRespGrKidsEst/ TotHHEst)*100;158 GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100; 152 159 AvgHHSize = (PopinHHEst/TotHHEst); 153 160 … … 162 169 HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100; 163 170 HHw65upPctErr = (HHw65upErr/TotHHEst)*100; 164 GPRespGrKidsPctErr = (GPRespGrKidsErr/ TotHHEst)*100;171 GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100; 165 172 AvgHHSizeErr = (PopinHHErr/TotHHEst); 166 173 -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region13Housing.sas
r13269 r19658 51 51 52 52 DATA tmp; 53 set acs_all;53 set prelim.acs_all; 54 54 if 35001<=fipscode<=35061; 55 55 keep fipscode region year … … 220 220 221 221 DATA final; 222 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 222 223 set tmp2; 223 224 fipscode=.; 225 *region=.; 226 schdist=.; 227 senfips=.; 228 housefips=.; 224 229 sarea134=.; 225 230 fipstrct10=.; 231 nmtribe=.; 232 tribtrct10=.; 226 233 227 234 TotHUnitErr = (sqrt(TotHUnitx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region1Educ.sas
r13269 r19658 53 53 Pop25Est = (Soc_HC01_VC84); 54 54 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); 57 57 EduProfEst = (Soc_HC01_VC91); 58 58 … … 91 91 92 92 DATA final; 93 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 93 94 set tmp2; 94 95 fipscode=.; 96 *region=.; 97 schdist=.; 98 senfips=.; 99 housefips=.; 95 100 sarea134=.; 96 101 fipstrct10=.; 102 nmtribe=.; 103 tribtrct10=.; 97 104 98 105 Pop25Err = (sqrt(Pop25x )); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region3Poverty.sas
r13269 r19658 25 25 * used %s to calc nums by tract, combined nums by trct, calc SA %s; 26 26 ******************************************************************; 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; 41 32 var popcount; *All persons; 42 33 class fipscode; … … 44 35 proc print data=cnty; 45 36 run; 46 proc summary data= popn nway;37 proc summary data=cntypopn nway; 47 38 var popcount; *All persons; 48 39 class region; … … 52 43 */ 53 44 54 proc summary data= popn nway;45 proc summary data=cntypopn nway; 55 46 var popcount; *All persons; 56 47 class fipscode year; … … 59 50 data pop; set pop; drop _TYPE_ _FREQ_; run; 60 51 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; 63 54 var popcount; 64 55 class fipscode year; … … 67 58 data pop5; set pop5; drop _TYPE_ _FREQ_; run; 68 59 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; 71 62 var popcount; 72 63 class fipscode year; … … 75 66 data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run; 76 67 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; 79 70 var popcount; 80 71 class fipscode year; … … 83 74 data pop18; set pop18; drop _TYPE_ _FREQ_; run; 84 75 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; 87 78 var popcount; 88 79 class fipscode year; … … 173 164 174 165 DATA final; 166 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 175 167 set tmp2; 176 168 fipscode=.; 169 *region=.; 170 schdist=.; 171 senfips=.; 172 housefips=.; 177 173 sarea134=.; 178 174 fipstrct10=.; 175 nmtribe=.; 176 tribtrct10=.; 179 177 180 178 PovEstErr =(sqrt(PovEstx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region4Employment.sas
r13269 r19658 134 134 135 135 DATA final; 136 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 136 137 set tmp2; 137 138 fipscode=.; 139 *region=.; 140 schdist=.; 141 senfips=.; 142 housefips=.; 138 143 sarea134=.; 139 144 fipstrct10=.; 145 nmtribe=.; 146 tribtrct10=.; 140 147 141 148 *******************************************************; -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region5Commute.sas
r13269 r19658 109 109 110 110 DATA final; 111 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 111 112 set tmp2; 112 113 fipscode=.; 114 *region=.; 115 schdist=.; 116 senfips=.; 117 housefips=.; 113 118 sarea134=.; 114 119 fipstrct10=.; 120 nmtribe=.; 121 tribtrct10=.; 115 122 116 123 Wrkr16UpErr = (sqrt(Wrkr16Upx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region6OccIndus.sas
r13269 r19658 203 203 204 204 DATA final; 205 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 205 206 set tmp2; 206 207 fipscode=.; 208 *region=.; 209 schdist=.; 210 senfips=.; 211 housefips=.; 207 212 sarea134=.; 208 213 fipstrct10=.; 214 nmtribe=.; 215 tribtrct10=.; 209 216 210 217 CivEmp16Err = (sqrt(CivEmp16x)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region7HlthIns.sas
r13269 r19658 100 100 101 101 DATA final; 102 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 102 103 set tmp2; 103 104 fipscode=.; 105 *region=.; 106 schdist=.; 107 senfips=.; 108 housefips=.; 104 109 sarea134=.; 105 110 fipstrct10=.; 111 nmtribe=.; 112 tribtrct10=.; 106 113 107 114 CivNIPopErr = (sqrt( CivNIPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region8Veteran.sas
r13269 r19658 73 73 74 74 DATA final; 75 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 75 76 set tmp2; 76 77 fipscode=.; 78 *region=.; 79 schdist=.; 80 senfips=.; 81 housefips=.; 77 82 sarea134=.; 78 83 fipstrct10=.; 84 nmtribe=.; 85 tribtrct10=.; 79 86 80 87 Civ18PopErr = (sqrt(Civ18Popx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Region/Region9Mobility.sas
r13269 r19658 99 99 100 100 DATA final; 101 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 101 102 set tmp2; 102 103 fipscode=.; 104 *region=.; 105 schdist=.; 106 senfips=.; 107 housefips=.; 103 108 sarea134=.; 104 109 fipstrct10=.; 110 nmtribe=.; 111 tribtrct10=.; 105 112 106 113 Pop1PlusErr = (sqrt(Pop1Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea10Foreign.sas
r13269 r19658 99 99 100 100 DATA final; 101 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 101 102 set tmp2; 102 103 fipscode=.; 103 104 region=.; 105 schdist=.; 106 senfips=.; 107 housefips=.; 108 *sarea134=.; 104 109 fipstrct10=.; 110 nmtribe=.; 111 tribtrct10=.; 105 112 106 113 TotalPopErr = (sqrt(TotalPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea11Language.sas
r13269 r19658 129 129 130 130 DATA final; 131 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 131 132 set tmp2; 132 133 fipscode=.; 133 134 region=.; 135 schdist=.; 136 senfips=.; 137 housefips=.; 138 *sarea134=.; 134 139 fipstrct10=.; 140 nmtribe=.; 141 tribtrct10=.; 135 142 136 143 Pop5PlusErr = (sqrt(Pop5Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea12HHType.sas
r13269 r19658 121 121 122 122 DATA final; 123 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 123 124 set tmp2; 124 125 fipscode=.; 125 126 region=.; 127 schdist=.; 128 senfips=.; 129 housefips=.; 130 *sarea134=.; 126 131 fipstrct10=.; 132 nmtribe=.; 133 tribtrct10=.; 127 134 128 135 TotHHErr = (sqrt(TotHHx)); … … 149 156 HHwKidsPct = (HHwKidsEst/TotHHEst)*100; 150 157 HHw65upPct = (HHw65upEst/TotHHEst)*100; 151 GPRespGrKidsPct = (GPRespGrKidsEst/ TotHHEst)*100;158 GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100; 152 159 AvgHHSize = (PopinHHEst/TotHHEst); 153 160 … … 162 169 HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100; 163 170 HHw65upPctErr = (HHw65upErr/TotHHEst)*100; 164 GPRespGrKidsPctErr = (GPRespGrKidsErr/ TotHHEst)*100;171 GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100; 165 172 AvgHHSizeErr = (PopinHHErr/TotHHEst); 166 173 -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea13Housing.sas
r13269 r19658 51 51 52 52 DATA tmp; 53 set acs_all;53 set prelim.acs_all; 54 54 if 35001000107<=fipstrct10<=35061971400; 55 55 keep fipstrct10 sarea134 year … … 220 220 221 221 DATA final; 222 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 222 223 set tmp2; 223 224 fipscode=.; 224 225 region=.; 226 schdist=.; 227 senfips=.; 228 housefips=.; 229 *sarea134=.; 225 230 fipstrct10=.; 231 nmtribe=.; 232 tribtrct10=.; 226 233 227 234 TotHUnitErr = (sqrt(TotHUnitx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea1Educ.sas
r13269 r19658 53 53 Pop25Est = (Soc_HC01_VC84); 54 54 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); 57 57 EduProfEst = (Soc_HC01_VC91); 58 58 … … 91 91 92 92 DATA final; 93 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 93 94 set tmp2; 94 95 fipscode=.; 95 96 region=.; 97 schdist=.; 98 senfips=.; 99 housefips=.; 100 *sarea134=.; 96 101 fipstrct10=.; 102 nmtribe=.; 103 tribtrct10=.; 97 104 98 105 Pop25Err = (sqrt(Pop25x )); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea3Poverty.sas
r13269 r19658 25 25 * used %s to calc nums by tract, combined nums by trct, calc SA %s; 26 26 ******************************************************************; 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; 38 31 var popcount; *All persons; 39 32 class fipstrct10 year; … … 42 35 data pop; set pop; drop _TYPE_ _FREQ_; run; 43 36 44 proc summary data= popn nway;45 where (agregrppov = 1); *_under age 5_ estimated popn by c ounty, years 2009, 2010, 2011;37 proc summary data=trctpopn nway; 38 where (agregrppov = 1); *_under age 5_ estimated popn by census tract; 46 39 var popcount; 47 40 class fipstrct10 year; … … 50 43 data pop5; set pop5; drop _TYPE_ _FREQ_; run; 51 44 52 proc summary data= popn nway;53 where (agregrppov = 2); *_age 5 to 17_ estimated popn by c ounty, years 2009, 2010, 2011;45 proc summary data=trctpopn nway; 46 where (agregrppov = 2); *_age 5 to 17_ estimated popn by census tract; 54 47 var popcount; 55 48 class fipstrct10 year; … … 58 51 data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run; 59 52 60 proc summary data= popn nway;61 where (agregrppov in (1 2)); *_under age 18_ estimated popn by c ounty, years 2009, 2010, 2011;53 proc summary data=trctpopn nway; 54 where (agregrppov in (1 2)); *_under age 18_ estimated popn by census tract; 62 55 var popcount; 63 56 class fipstrct10 year; … … 66 59 data pop18; set pop18; drop _TYPE_ _FREQ_; run; 67 60 68 proc summary data= popn nway;69 where (agregrppov=3); *_age 65+_ estimated popn by c ounty, years 2009, 2010, 2011;61 proc summary data=trctpopn nway; 62 where (agregrppov=3); *_age 65+_ estimated popn by census tract; 70 63 var popcount; 71 64 class fipstrct10 year; … … 156 149 157 150 DATA final; 151 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 158 152 set tmp2; 159 153 fipscode=.; 160 154 region=.; 155 schdist=.; 156 senfips=.; 157 housefips=.; 158 *sarea134=.; 161 159 fipstrct10=.; 160 nmtribe=.; 161 tribtrct10=.; 162 162 163 163 PovEstErr =(sqrt(PovEstx)); … … 228 228 title ''; 229 229 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 230 236 */ -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea4Employment.sas
r13269 r19658 134 134 135 135 DATA final; 136 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 136 137 set tmp2; 137 138 fipscode=.; 138 139 region=.; 140 schdist=.; 141 senfips=.; 142 housefips=.; 143 *sarea134=.; 139 144 fipstrct10=.; 145 nmtribe=.; 146 tribtrct10=.; 140 147 141 148 *******************************************************; -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea5Commute.sas
r13269 r19658 109 109 110 110 DATA final; 111 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 111 112 set tmp2; 112 113 fipscode=.; 113 114 region=.; 115 schdist=.; 116 senfips=.; 117 housefips=.; 118 *sarea134=.; 114 119 fipstrct10=.; 120 nmtribe=.; 121 tribtrct10=.; 115 122 116 123 Wrkr16UpErr = (sqrt(Wrkr16Upx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea6OccIndus.sas
r13269 r19658 203 203 204 204 DATA final; 205 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 205 206 set tmp2; 206 207 fipscode=.; 207 208 region=.; 209 schdist=.; 210 senfips=.; 211 housefips=.; 212 *sarea134=.; 208 213 fipstrct10=.; 214 nmtribe=.; 215 tribtrct10=.; 209 216 210 217 CivEmp16Err = (sqrt(CivEmp16x)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea7HlthIns.sas
r13269 r19658 99 99 100 100 DATA final; 101 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 101 102 set tmp2; 102 103 fipscode=.; 103 104 region=.; 105 schdist=.; 106 senfips=.; 107 housefips=.; 108 *sarea134=.; 104 109 fipstrct10=.; 110 nmtribe=.; 111 tribtrct10=.; 105 112 106 113 CivNIPopErr = (sqrt( CivNIPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea8Veteran.sas
r13269 r19658 73 73 74 74 DATA final; 75 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 75 76 set tmp2; 76 77 fipscode=.; 77 78 region=.; 79 schdist=.; 80 senfips=.; 81 housefips=.; 82 *sarea134=.; 78 83 fipstrct10=.; 84 nmtribe=.; 85 tribtrct10=.; 79 86 80 87 Civ18PopErr = (sqrt(Civ18Popx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Sarea/Sarea9Mobility.sas
r13269 r19658 99 99 100 100 DATA final; 101 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 101 102 set tmp2; 102 103 fipscode=.; 103 104 region=.; 105 schdist=.; 106 senfips=.; 107 housefips=.; 108 *sarea134=.; 104 109 fipstrct10=.; 110 nmtribe=.; 111 tribtrct10=.; 105 112 106 113 Pop1PlusErr = (sqrt(Pop1Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct10Foreign.sas
r13269 r19658 101 101 102 102 DATA final; 103 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 103 104 set tmp; 105 fipscode=.; 106 region=.; 107 schdist=.; 108 senfips=.; 109 housefips=.; 104 110 sarea134=.; 105 region=.; 106 fipscode=.; 111 *fipstrct10=.; 112 nmtribe=.; 113 tribtrct10=.; 107 114 108 115 TotalPopErr = (sqrt(TotalPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct11Language.sas
r13269 r19658 131 131 132 132 DATA final; 133 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 133 134 set tmp; 135 fipscode=.; 136 region=.; 137 schdist=.; 138 senfips=.; 139 housefips=.; 134 140 sarea134=.; 135 region=.; 136 fipscode=.; 141 *fipstrct10=.; 142 nmtribe=.; 143 tribtrct10=.; 137 144 138 145 Pop5PlusErr = (sqrt(Pop5Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct12HHType.sas
r13269 r19658 123 123 124 124 DATA final; 125 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 125 126 set tmp; 127 fipscode=.; 128 region=.; 129 schdist=.; 130 senfips=.; 131 housefips=.; 126 132 sarea134=.; 127 region=.; 128 fipscode=.; 133 *fipstrct10=.; 134 nmtribe=.; 135 tribtrct10=.; 129 136 130 137 TotHHErr = (sqrt(TotHHx)); … … 151 158 HHwKidsPct = (HHwKidsEst/TotHHEst)*100; 152 159 HHw65upPct = (HHw65upEst/TotHHEst)*100; 153 GPRespGrKidsPct = (GPRespGrKidsEst/ TotHHEst)*100;160 GPRespGrKidsPct = (GPRespGrKidsEst/HHwKidsEst)*100; 154 161 AvgHHSize = (PopinHHEst/TotHHEst); 155 162 … … 164 171 HHwKidsPctErr = (HHwKidsErr/TotHHEst)*100; 165 172 HHw65upPctErr = (HHw65upErr/TotHHEst)*100; 166 GPRespGrKidsPctErr = (GPRespGrKidsErr/ TotHHEst)*100;173 GPRespGrKidsPctErr = (GPRespGrKidsErr/HHwKidsEst)*100; 167 174 AvgHHSizeErr = (PopinHHErr/TotHHEst); 168 175 -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct13Housing.sas
r13269 r19658 53 53 54 54 DATA tmp; 55 set acs_all;55 set prelim.acs_all; 56 56 if 35001000107<=fipstrct10<=35061971400; 57 57 keep fipstrct10 year … … 224 224 225 225 DATA final; 226 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 226 227 set tmp; 228 fipscode=.; 229 region=.; 230 schdist=.; 231 senfips=.; 232 housefips=.; 227 233 sarea134=.; 228 region=.; 229 fipscode=.; 234 *fipstrct10=.; 235 nmtribe=.; 236 tribtrct10=.; 230 237 231 238 TotHUnitErr = (sqrt(TotHUnitx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct1Educ.sas
r13269 r19658 53 53 Pop25Est = (Soc_HC01_VC84); 54 54 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); 57 57 EduProfEst = (Soc_HC01_VC91); 58 58 … … 90 90 91 91 /* 92 proc print data=tmp 2; run;92 proc print data=tmp; run; 93 93 */ 94 94 95 95 DATA final; 96 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 96 97 set tmp; 98 fipscode=.; 99 region=.; 100 schdist=.; 101 senfips=.; 102 housefips=.; 97 103 sarea134=.; 98 region=.; 99 fipscode=.; 104 *fipstrct10=.; 105 nmtribe=.; 106 tribtrct10=.; 100 107 101 108 Pop25Err = (sqrt(Pop25x )); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct3Poverty.sas
r13269 r19658 24 24 * of poverty count estimaes, ACS only provides percentages. ; 25 25 ******************************************************************; 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; 37 30 var popcount; *All persons; 38 31 class fipstrct10 year; … … 41 34 data pop; set pop; drop _TYPE_ _FREQ_; run; 42 35 43 proc summary data= popn nway;44 where (agregrppov = 1); *_under age 5_ estimated popn by c ounty, years 2009, 2010, 2011;36 proc summary data=trctpopn nway; 37 where (agregrppov = 1); *_under age 5_ estimated popn by census tract; 45 38 var popcount; 46 39 class fipstrct10 year; … … 49 42 data pop5; set pop5; drop _TYPE_ _FREQ_; run; 50 43 51 proc summary data= popn nway;52 where (agregrppov = 2); *_age 5 to 17_ estimated popn by c ounty, years 2009, 2010, 2011;44 proc summary data=trctpopn nway; 45 where (agregrppov = 2); *_age 5 to 17_ estimated popn by census tract; 53 46 var popcount; 54 47 class fipstrct10 year; … … 57 50 data pop5_17; set pop5_17; drop _TYPE_ _FREQ_; run; 58 51 59 proc summary data= popn nway;60 where (agregrppov in (1 2)); *_under age 18_ estimated popn by c ounty, years 2009, 2010, 2011;52 proc summary data=trctpopn nway; 53 where (agregrppov in (1 2)); *_under age 18_ estimated popn by census tract; 61 54 var popcount; 62 55 class fipstrct10 year; … … 65 58 data pop18; set pop18; drop _TYPE_ _FREQ_; run; 66 59 67 proc summary data= popn nway;68 where (agregrppov=3); *_age 65+_ estimated popn by c ounty, years 2009, 2010, 2011;60 proc summary data=trctpopn nway; 61 where (agregrppov=3); *_age 65+_ estimated popn by census tract; 69 62 var popcount; 70 63 class fipstrct10 year; 71 64 output out=pop65 sum(popcount)= popcount65; 72 65 run; 73 data pop65; set pop65; drop _TYPE_ _FREQ_; run; /* 66 data pop65; set pop65; drop _TYPE_ _FREQ_; run; 67 /* 74 68 ods html ; 75 69 proc print data=tmp noobs; run; … … 156 150 157 151 DATA final; 152 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 158 153 set tmp; 154 fipscode=.; 155 region=.; 156 schdist=.; 157 senfips=.; 158 housefips=.; 159 159 sarea134=.; 160 region=.; 161 fipscode=.; 160 *fipstrct10=.; 161 nmtribe=.; 162 tribtrct10=.; 162 163 163 164 PovEstErr =(sqrt(PovEstx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct4Employment.sas
r13269 r19658 129 129 130 130 DATA final; 131 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 131 132 set tmp; 133 fipscode=.; 134 region=.; 135 schdist=.; 136 senfips=.; 137 housefips=.; 132 138 sarea134=.; 133 region=.; 134 fipscode=.; 139 *fipstrct10=.; 140 nmtribe=.; 141 tribtrct10=.; 135 142 136 143 Pop16PlusErr = (sqrt(Pop16Plusx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct5Commute.sas
r13269 r19658 111 111 112 112 DATA final; 113 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 113 114 set tmp; 115 fipscode=.; 116 region=.; 117 schdist=.; 118 senfips=.; 119 housefips=.; 114 120 sarea134=.; 115 region=.; 116 fipscode=.; 121 *fipstrct10=.; 122 nmtribe=.; 123 tribtrct10=.; 117 124 118 125 Wrkr16UpErr = (sqrt(Wrkr16Upx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct6OccIndus.sas
r13269 r19658 205 205 206 206 DATA final; 207 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 207 208 set tmp; 209 fipscode=.; 210 region=.; 211 schdist=.; 212 senfips=.; 213 housefips=.; 208 214 sarea134=.; 209 region=.; 210 fipscode=.; 215 *fipstrct10=.; 216 nmtribe=.; 217 tribtrct10=.; 211 218 212 219 CivEmp16Err = (sqrt(CivEmp16x)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct7HlthIns.sas
r13269 r19658 101 101 102 102 DATA final; 103 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 103 104 set tmp; 105 fipscode=.; 106 region=.; 107 schdist=.; 108 senfips=.; 109 housefips=.; 104 110 sarea134=.; 105 region=.; 106 fipscode=.; 111 *fipstrct10=.; 112 nmtribe=.; 113 tribtrct10=.; 107 114 108 115 CivNIPopErr = (sqrt( CivNIPopx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct8Veteran.sas
r13269 r19658 75 75 76 76 DATA final; 77 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 77 78 set tmp; 79 fipscode=.; 80 region=.; 81 schdist=.; 82 senfips=.; 83 housefips=.; 78 84 sarea134=.; 79 region=.; 80 fipscode=.; 85 *fipstrct10=.; 86 nmtribe=.; 87 tribtrct10=.; 81 88 82 89 Civ18PopErr = (sqrt(Civ18Popx)); -
adopters/nm/trunk/src/main/sas/acs/programs/INCLUDE/Topics/Trct/Trct9Mobility.sas
r13269 r19658 101 101 102 102 DATA final; 103 format year 4.0 fipscode region 5.0 schdist 7.0 senfips housefips sarea134 5.0 fipstrct10 11.0; 103 104 set tmp; 105 fipscode=.; 106 region=.; 107 schdist=.; 108 senfips=.; 109 housefips=.; 104 110 sarea134=.; 105 region=.; 106 fipscode=.; 111 *fipstrct10=.; 112 nmtribe=.; 113 tribtrct10=.; 107 114 108 115 Pop1PlusErr = (sqrt(Pop1Plusx));
Note: See TracChangeset
for help on using the changeset viewer.