COR863: /* COR 863 This is the SAS code used to create the 1990 Major Industry, 1990 Major Occupation, Nakao Treas Prestige Score, Occupational Income, and Occupational Education Scores that are based on 1990 detailed occupation and industry codes. This code is the same for all such variables in the 2003-2005 Wave but the example below is based on the second employment spell variables for the graduates -- detind is the detailed industry code and detocc is the detailed occupation code. */ /* before linking to this, set these variables: rawcow = class of worker from survey rawind = 1990 census code from UWSC rawocc = 1990 occupation code from UWSC incrp = response to incorported from survey pay = response to pay for family business from survey */ /* these variables will be coded by cor863: cow class of worker DETIND 1990 census detailed industry DETOCC 1990 census detailed occupation MAJIND major industry code MAJOCC major occupation code PRESTG89 1989 Siegel prestige score OCCED occupational education score OCCINC occupational income score */ if rawcow = 1 then cow = 2; if rawcow = 2 then cow = 1; if rawcow = 3 then do; if incrp = 1 then cow = 3; if incrp ne 1 then cow = 4; **treating don't knows as unincorporated self employed; end; if rawcow = 4 then do; if incrp=1 and pay = 1 then cow = 1; **treating paid family workers for incorp. as private wage and salary worker; else if incrp=1 and pay ne 1 then cow = 5; **treating unpaid family workers for incorp. family business as unpaid family worker; else if incrp ne 1 and pay =1 then cow = 1; **treating paid family workers for unincorp as other unspecified family workers; else if incrp ne 1 and pay =2 then cow = 5; **treating unpaid family workers for unincorp. family business as unpaid family worker; else if incrp ne 1 and pay <0 then cow = 6; end; if rawcow = 5 then cow = 555; **this is other specify there shouldn't be any as these get corrected in the back end; if rawcow = -1 or rawcow = -3 or rawcow eq -4 then cow = rawcow; if rawcow = -2 then cow = -3; if rawcow = . then cow = -2; ** DETIND 1990 DETAILED 3-DIGIT INDUSTRY CODE; if 995> rawind > 0 or rawind = -1 or rawind = -3 or rawind eq -4 then DETIND = rawind; else if rawind=. then DETIND=-2; else if rawind = 995 then DETIND = -1; **Don't know's; else if rawind = 997 then DETIND = -17; **special missing code for allocation cases; else if rawind =998 then DETIND = -4; ** not in labor force; else if rawind =999 then DETIND = -3; ** refused, missing, not reported,; ** DETOCC 1990 DETAILED 3-DIGIT OCCUPATION CODE; if 995>rawocc > 0 or rawocc = -1 or rawocc = -3 or rawocc eq -4 then DETOCC = rawocc; else if rawocc=. then DETOCC=-2; else if rawocc = 995 then DETOCC = -1; **Don't know's; else if rawocc = 997 then DETOCC = -17; **special missing code for allocation cases; else if rawocc = 998 then DETOCC = -4; ** not in labor force; else if rawocc = 999 then DETOCC = -3; ** refused, missing not reported; ** majind 1990 MAJOR INDUSTRY CODE; if detind>=10 and detind<=32 then majind=1; else if detind>=40 and detind<=50 then majind=2; else if detind=60 then majind=3; else if detind>=100 and detind<=392 then majind=4; else if detind>=400 and detind<=472 then majind=5; else if detind>=500 and detind<=691 then majind=6; else if detind>=700 and detind<=712 then majind=7; else if detind>=721 and detind<=760 then majind=8; else if detind>=761 and detind<=791 then majind=9; else if detind>=800 and detind<=810 then majind=10; else if detind>=900 and detind<=932 then majind=11; else if detind>=812 and detind<=893 then majind=12; else if detind>=940 and detind<=960 then majind=13; else if detind<0 then majind=detind; /*missing values*/ ** majocc 1990 MAJOR OCCUPATION CODE; if detocc>=43 and detocc<=235 and (cow>=3 and cow<=6) then majocc=1; else if detocc>=43 and detocc<=235 then majocc=2; else if detocc>=3 and detocc<=37 and (cow>=3 and cow<=6) then majocc=4; else if detocc>=3 and detocc<=37 then majocc=3; else if detocc>=243 and detocc<=285 and (detind>=580 and detind<=691) then majocc=6; else if detocc>=243 and detocc<=285 then majocc=5; else if detocc>=303 and detocc<=389 then majocc=7; else if detocc>=503 and detocc<=699 and (detind>=100 and detind<=392) then majocc=8; else if detocc>=503 and detocc<=699 and (detind=60) then majocc=9; else if detocc>=503 and detocc<=699 then majocc=10; else if detocc>=703 and detocc<=859 and (detind>=100 and detind<=392) then majocc=11; else if detocc>=703 and detocc<=859 then majocc=12; else if detocc>=403 and detocc<=469 then majocc=13; else if detocc>=864 and detocc<=889 and (detind>=100 and detind<=392) then majocc=14; else if detocc>=864 and detocc<=889 then majocc=15; else if detocc>=473 and detocc<=476 then majocc=16; else if detocc>=477 and detocc<=499 then majocc=17; else if detocc>=903 and detocc<=905 then majocc=18; else if detocc<0 then majocc=detocc; /*missing values*/ ** prestg89 1989 NAKAO-TREAS PRESTIGE SCORE; if detocc = 3 then prestg89 = 802; else if detocc = 4 then prestg89 = 884; else if detocc = 5 then prestg89 = 808; else if detocc = 6 then prestg89 = 672; else if detocc = 7 then prestg89 = 776; else if detocc = 8 then prestg89 = 721; else if detocc = 9 then prestg89 = 841; else if detocc = 13 then prestg89 = 790; else if detocc = 14 then prestg89 = 833; else if detocc = 15 then prestg89 = 879; else if detocc = 16 then prestg89 = 707; else if detocc = 17 then prestg89 = 469; else if detocc = 18 then prestg89 = 457; else if detocc = 19 then prestg89 = 655; else if detocc = 21 then prestg89 = 465; else if detocc = 22 then prestg89 = 717; else if detocc = 23 then prestg89 = 844; else if detocc = 24 then prestg89 = 596; else if detocc = 25 then prestg89 = 596; else if detocc = 26 then prestg89 = 852; else if detocc = 27 then prestg89 = 543; else if detocc = 28 then prestg89 = 473; else if detocc = 29 then prestg89 = 690; else if detocc = 33 then prestg89 = 523; else if detocc = 34 then prestg89 = 649; else if detocc = 35 then prestg89 = 477; else if detocc = 36 then prestg89 = 636; else if detocc = 37 then prestg89 = 574; else if detocc = 43 then prestg89 = 930; else if detocc = 44 then prestg89 = 868; else if detocc = 45 then prestg89 = 779; else if detocc = 46 then prestg89 = 727; else if detocc = 47 then prestg89 = 821; else if detocc = 48 then prestg89 = 918; else if detocc = 49 then prestg89 = 807; else if detocc = 53 then prestg89 = 841; else if detocc = 54 then prestg89 = 746; else if detocc = 55 then prestg89 = 854; else if detocc = 56 then prestg89 = 762; else if detocc = 57 then prestg89 = 833; else if detocc = 58 then prestg89 = 766; else if detocc = 59 then prestg89 = 899; else if detocc = 63 then prestg89 = 658; else if detocc = 64 then prestg89 = 913; else if detocc = 65 then prestg89 = 701; else if detocc = 66 then prestg89 = 526; else if detocc = 67 then prestg89 = 733; else if detocc = 68 then prestg89 = 778; else if detocc = 69 then prestg89 = 888; else if detocc = 73 then prestg89 = 915; else if detocc = 74 then prestg89 = 839; else if detocc = 75 then prestg89 = 893; else if detocc = 76 then prestg89 = 898; else if detocc = 77 then prestg89 = 757; else if detocc = 78 then prestg89 = 904; else if detocc = 79 then prestg89 = 716; else if detocc = 83 then prestg89 = 804; else if detocc = 84 then prestg89 = 946; else if detocc = 85 then prestg89 = 917; else if detocc = 86 then prestg89 = 797; else if detocc = 87 then prestg89 = 827; else if detocc = 88 then prestg89 = 820; else if detocc = 89 then prestg89 = 616; else if detocc = 95 then prestg89 = 832; else if detocc = 96 then prestg89 = 845; else if detocc = 97 then prestg89 = 748; else if detocc = 98 then prestg89 = 825; else if detocc = 99 then prestg89 = 789; else if detocc = 103 then prestg89 = 832; else if detocc = 104 then prestg89 = 750; else if detocc = 105 then prestg89 = 846; else if detocc = 106 then prestg89 = 777; else if detocc = 113 then prestg89 = 913; else if detocc = 114 then prestg89 = 913; else if detocc = 115 then prestg89 = 913; else if detocc = 116 then prestg89 = 913; else if detocc = 117 then prestg89 = 913; else if detocc = 118 then prestg89 = 913; else if detocc = 119 then prestg89 = 913; else if detocc = 123 then prestg89 = 913; else if detocc = 124 then prestg89 = 913; else if detocc = 125 then prestg89 = 913; else if detocc = 126 then prestg89 = 913; else if detocc = 127 then prestg89 = 913; else if detocc = 128 then prestg89 = 913; else if detocc = 129 then prestg89 = 913; else if detocc = 133 then prestg89 = 913; else if detocc = 134 then prestg89 = 913; else if detocc = 135 then prestg89 = 913; else if detocc = 136 then prestg89 = 913; else if detocc = 137 then prestg89 = 913; else if detocc = 138 then prestg89 = 913; else if detocc = 139 then prestg89 = 913; else if detocc = 143 then prestg89 = 913; else if detocc = 144 then prestg89 = 913; else if detocc = 145 then prestg89 = 913; else if detocc = 146 then prestg89 = 913; else if detocc = 147 then prestg89 = 913; else if detocc = 148 then prestg89 = 913; else if detocc = 149 then prestg89 = 913; else if detocc = 153 then prestg89 = 913; else if detocc = 154 then prestg89 = 913; else if detocc = 155 then prestg89 = 711; else if detocc = 156 then prestg89 = 836; else if detocc = 157 then prestg89 = 814; else if detocc = 158 then prestg89 = 863; else if detocc = 159 then prestg89 = 516; else if detocc = 163 then prestg89 = 712; else if detocc = 164 then prestg89 = 699; else if detocc = 165 then prestg89 = 654; else if detocc = 166 then prestg89 = 800; else if detocc = 167 then prestg89 = 864; else if detocc = 168 then prestg89 = 804; else if detocc = 169 then prestg89 = 808; else if detocc = 173 then prestg89 = 646; else if detocc = 174 then prestg89 = 685; else if detocc = 175 then prestg89 = 405; else if detocc = 176 then prestg89 = 830; else if detocc = 177 then prestg89 = 539; else if detocc = 178 then prestg89 = 900; else if detocc = 179 then prestg89 = 868; else if detocc = 183 then prestg89 = 813; else if detocc = 184 then prestg89 = 736; else if detocc = 185 then prestg89 = 567; else if detocc = 186 then prestg89 = 700; else if detocc = 187 then prestg89 = 722; else if detocc = 188 then prestg89 = 695; else if detocc = 189 then prestg89 = 583; else if detocc = 193 then prestg89 = 673; else if detocc = 194 then prestg89 = 439; else if detocc = 195 then prestg89 = 846; else if detocc = 197 then prestg89 = 595; else if detocc = 198 then prestg89 = 683; else if detocc = 199 then prestg89 = 785; else if detocc = 203 then prestg89 = 878; else if detocc = 204 then prestg89 = 643; else if detocc = 205 then prestg89 = 704; else if detocc = 206 then prestg89 = 741; else if detocc = 207 then prestg89 = 780; else if detocc = 208 then prestg89 = 701; else if detocc = 213 then prestg89 = 781; else if detocc = 214 then prestg89 = 458; else if detocc = 215 then prestg89 = 761; else if detocc = 216 then prestg89 = 608; else if detocc = 217 then prestg89 = 651; else if detocc = 218 then prestg89 = 402; else if detocc = 223 then prestg89 = 320; else if detocc = 224 then prestg89 = 405; else if detocc = 225 then prestg89 = 541; else if detocc = 226 then prestg89 = 758; else if detocc = 227 then prestg89 = 845; else if detocc = 228 then prestg89 = 504; else if detocc = 229 then prestg89 = 818; else if detocc = 233 then prestg89 = 620; else if detocc = 234 then prestg89 = 735; else if detocc = 235 then prestg89 = 477; else if detocc = 243 then prestg89 = 567; else if detocc = 253 then prestg89 = 562; else if detocc = 254 then prestg89 = 605; else if detocc = 255 then prestg89 = 682; else if detocc = 256 then prestg89 = 438; else if detocc = 257 then prestg89 = 259; else if detocc = 258 then prestg89 = 747; else if detocc = 259 then prestg89 = 645; else if detocc = 263 then prestg89 = 363; else if detocc = 264 then prestg89 = 268; else if detocc = 265 then prestg89 = 214; else if detocc = 266 then prestg89 = 239; else if detocc = 267 then prestg89 = 269; else if detocc = 268 then prestg89 = 295; else if detocc = 269 then prestg89 = 263; else if detocc = 274 then prestg89 = 394; else if detocc = 275 then prestg89 = 294; else if detocc = 276 then prestg89 = 274; else if detocc = 277 then prestg89 = 180; else if detocc = 278 then prestg89 = 156; else if detocc = 283 then prestg89 = 309; else if detocc = 284 then prestg89 = 414; else if detocc = 285 then prestg89 = 370; else if detocc = 303 then prestg89 = 619; else if detocc = 304 then prestg89 = 724; else if detocc = 305 then prestg89 = 647; else if detocc = 306 then prestg89 = 589; else if detocc = 307 then prestg89 = 449; else if detocc = 308 then prestg89 = 607; else if detocc = 309 then prestg89 = 351; else if detocc = 313 then prestg89 = 556; else if detocc = 314 then prestg89 = 618; else if detocc = 315 then prestg89 = 428; else if detocc = 316 then prestg89 = 597; else if detocc = 317 then prestg89 = 252; else if detocc = 318 then prestg89 = 340; else if detocc = 319 then prestg89 = 400; else if detocc = 323 then prestg89 = 338; else if detocc = 325 then prestg89 = 219; else if detocc = 326 then prestg89 = 358; else if detocc = 327 then prestg89 = 313; else if detocc = 328 then prestg89 = 387; else if detocc = 329 then prestg89 = 261; else if detocc = 335 then prestg89 = 389; else if detocc = 336 then prestg89 = 269; else if detocc = 337 then prestg89 = 565; else if detocc = 338 then prestg89 = 458; else if detocc = 339 then prestg89 = 322; else if detocc = 343 then prestg89 = 241; else if detocc = 344 then prestg89 = 320; else if detocc = 345 then prestg89 = 337; else if detocc = 346 then prestg89 = 336; else if detocc = 347 then prestg89 = 360; else if detocc = 348 then prestg89 = 397; else if detocc = 353 then prestg89 = 403; else if detocc = 354 then prestg89 = 463; else if detocc = 355 then prestg89 = 605; else if detocc = 356 then prestg89 = 254; else if detocc = 357 then prestg89 = 180; else if detocc = 359 then prestg89 = 286; else if detocc = 363 then prestg89 = 462; else if detocc = 364 then prestg89 = 263; else if detocc = 365 then prestg89 = 223; else if detocc = 366 then prestg89 = 280; else if detocc = 368 then prestg89 = 238; else if detocc = 373 then prestg89 = 474; else if detocc = 374 then prestg89 = 207; else if detocc = 375 then prestg89 = 597; else if detocc = 376 then prestg89 = 431; else if detocc = 377 then prestg89 = 514; else if detocc = 378 then prestg89 = 202; else if detocc = 379 then prestg89 = 307; else if detocc = 383 then prestg89 = 470; else if detocc = 384 then prestg89 = 513; else if detocc = 385 then prestg89 = 510; else if detocc = 386 then prestg89 = 387; else if detocc = 387 then prestg89 = 489; else if detocc = 389 then prestg89 = 350; else if detocc = 403 then prestg89 = 158; else if detocc = 404 then prestg89 = 222; else if detocc = 405 then prestg89 = 330; else if detocc = 406 then prestg89 = 255; else if detocc = 407 then prestg89 = 179; else if detocc = 413 then prestg89 = 807; else if detocc = 414 then prestg89 = 832; else if detocc = 415 then prestg89 = 455; else if detocc = 416 then prestg89 = 732; else if detocc = 417 then prestg89 = 615; else if detocc = 418 then prestg89 = 771; else if detocc = 423 then prestg89 = 583; else if detocc = 424 then prestg89 = 435; else if detocc = 425 then prestg89 = 336; else if detocc = 426 then prestg89 = 492; else if detocc = 427 then prestg89 = 360; else if detocc = 433 then prestg89 = 357; else if detocc = 434 then prestg89 = 205; else if detocc = 435 then prestg89 = 196; else if detocc = 436 then prestg89 = 264; else if detocc = 438 then prestg89 = 179; else if detocc = 439 then prestg89 = 193; else if detocc = 443 then prestg89 = 190; else if detocc = 444 then prestg89 = 126; else if detocc = 445 then prestg89 = 482; else if detocc = 446 then prestg89 = 651; else if detocc = 447 then prestg89 = 460; else if detocc = 448 then prestg89 = 327; else if detocc = 449 then prestg89 = 126; else if detocc = 453 then prestg89 = 172; else if detocc = 454 then prestg89 = 179; else if detocc = 455 then prestg89 = 266; else if detocc = 456 then prestg89 = 414; else if detocc = 457 then prestg89 = 347; else if detocc = 458 then prestg89 = 371; else if detocc = 459 then prestg89 = 205; else if detocc = 461 then prestg89 = 231; else if detocc = 462 then prestg89 = 171; else if detocc = 463 then prestg89 = 489; else if detocc = 464 then prestg89 = 197; else if detocc = 465 then prestg89 = 523; else if detocc = 466 then prestg89 = 304; else if detocc = 467 then prestg89 = 304; else if detocc = 468 then prestg89 = 304; else if detocc = 469 then prestg89 = 234; else if detocc = 473 then prestg89 = 560; else if detocc = 474 then prestg89 = 427; else if detocc = 475 then prestg89 = 605; else if detocc = 476 then prestg89 = 605; else if detocc = 477 then prestg89 = 533; else if detocc = 479 then prestg89 = 189; else if detocc = 483 then prestg89 = 261; else if detocc = 484 then prestg89 = 210; else if detocc = 485 then prestg89 = 355; else if detocc = 486 then prestg89 = 229; else if detocc = 487 then prestg89 = 216; else if detocc = 488 then prestg89 = 259; else if detocc = 489 then prestg89 = 655; else if detocc = 494 then prestg89 = 518; else if detocc = 495 then prestg89 = 380; else if detocc = 496 then prestg89 = 266; else if detocc = 497 then prestg89 = 520; else if detocc = 498 then prestg89 = 378; else if detocc = 499 then prestg89 = 159; else if detocc = 503 then prestg89 = 628; else if detocc = 505 then prestg89 = 387; else if detocc = 506 then prestg89 = 295; else if detocc = 507 then prestg89 = 545; else if detocc = 508 then prestg89 = 639; else if detocc = 509 then prestg89 = 239; else if detocc = 514 then prestg89 = 280; else if detocc = 515 then prestg89 = 639; else if detocc = 516 then prestg89 = 532; else if detocc = 517 then prestg89 = 365; else if detocc = 518 then prestg89 = 279; else if detocc = 519 then prestg89 = 167; else if detocc = 523 then prestg89 = 385; else if detocc = 525 then prestg89 = 684; else if detocc = 526 then prestg89 = 316; else if detocc = 527 then prestg89 = 468; else if detocc = 529 then prestg89 = 405; else if detocc = 533 then prestg89 = 376; else if detocc = 534 then prestg89 = 447; else if detocc = 535 then prestg89 = 379; else if detocc = 536 then prestg89 = 438; else if detocc = 538 then prestg89 = 318; else if detocc = 539 then prestg89 = 312; else if detocc = 543 then prestg89 = 435; else if detocc = 544 then prestg89 = 444; else if detocc = 547 then prestg89 = 298; else if detocc = 549 then prestg89 = 500; else if detocc = 553 then prestg89 = 652; else if detocc = 554 then prestg89 = 652; else if detocc = 555 then prestg89 = 652; else if detocc = 556 then prestg89 = 652; else if detocc = 557 then prestg89 = 652; else if detocc = 558 then prestg89 = 734; else if detocc = 563 then prestg89 = 364; else if detocc = 564 then prestg89 = 174; else if detocc = 565 then prestg89 = 277; else if detocc = 566 then prestg89 = 250; else if detocc = 567 then prestg89 = 422; else if detocc = 569 then prestg89 = 229; else if detocc = 573 then prestg89 = 321; else if detocc = 575 then prestg89 = 661; else if detocc = 576 then prestg89 = 448; else if detocc = 577 then prestg89 = 518; else if detocc = 579 then prestg89 = 313; else if detocc = 583 then prestg89 = 236; else if detocc = 584 then prestg89 = 336; else if detocc = 585 then prestg89 = 536; else if detocc = 587 then prestg89 = 345; else if detocc = 588 then prestg89 = 330; else if detocc = 589 then prestg89 = 262; else if detocc = 593 then prestg89 = 291; else if detocc = 594 then prestg89 = 350; else if detocc = 595 then prestg89 = 355; else if detocc = 596 then prestg89 = 345; else if detocc = 597 then prestg89 = 529; else if detocc = 598 then prestg89 = 451; else if detocc = 599 then prestg89 = 332; else if detocc = 613 then prestg89 = 516; else if detocc = 614 then prestg89 = 398; else if detocc = 615 then prestg89 = 423; else if detocc = 616 then prestg89 = 319; else if detocc = 617 then prestg89 = 248; else if detocc = 628 then prestg89 = 628; else if detocc = 634 then prestg89 = 495; else if detocc = 635 then prestg89 = 292; else if detocc = 636 then prestg89 = 263; else if detocc = 637 then prestg89 = 538; else if detocc = 639 then prestg89 = 298; else if detocc = 643 then prestg89 = 400; else if detocc = 644 then prestg89 = 183; else if detocc = 645 then prestg89 = 391; else if detocc = 646 then prestg89 = 229; else if detocc = 647 then prestg89 = 564; else if detocc = 649 then prestg89 = 402; else if detocc = 653 then prestg89 = 620; else if detocc = 654 then prestg89 = 364; else if detocc = 655 then prestg89 = 410; else if detocc = 656 then prestg89 = 380; else if detocc = 657 then prestg89 = 504; else if detocc = 658 then prestg89 = 407; else if detocc = 659 then prestg89 = 388; else if detocc = 666 then prestg89 = 368; else if detocc = 667 then prestg89 = 441; else if detocc = 668 then prestg89 = 294; else if detocc = 669 then prestg89 = 324; else if detocc = 674 then prestg89 = 326; else if detocc = 675 then prestg89 = 303; else if detocc = 676 then prestg89 = 220; else if detocc = 677 then prestg89 = 389; else if detocc = 678 then prestg89 = 707; else if detocc = 679 then prestg89 = 277; else if detocc = 683 then prestg89 = 218; else if detocc = 684 then prestg89 = 246; else if detocc = 686 then prestg89 = 353; else if detocc = 687 then prestg89 = 326; else if detocc = 688 then prestg89 = 209; else if detocc = 689 then prestg89 = 438; else if detocc = 693 then prestg89 = 410; else if detocc = 694 then prestg89 = 386; else if detocc = 695 then prestg89 = 415; else if detocc = 696 then prestg89 = 417; else if detocc = 699 then prestg89 = 440; else if detocc = 703 then prestg89 = 382; else if detocc = 704 then prestg89 = 375; else if detocc = 705 then prestg89 = 208; else if detocc = 706 then prestg89 = 360; else if detocc = 707 then prestg89 = 388; else if detocc = 708 then prestg89 = 389; else if detocc = 709 then prestg89 = 165; else if detocc = 713 then prestg89 = 340; else if detocc = 714 then prestg89 = 345; else if detocc = 715 then prestg89 = 213; else if detocc = 717 then prestg89 = 348; else if detocc = 719 then prestg89 = 327; else if detocc = 723 then prestg89 = 330; else if detocc = 724 then prestg89 = 463; else if detocc = 725 then prestg89 = 325; else if detocc = 726 then prestg89 = 394; else if detocc = 727 then prestg89 = 337; else if detocc = 728 then prestg89 = 218; else if detocc = 729 then prestg89 = 267; else if detocc = 733 then prestg89 = 153; else if detocc = 734 then prestg89 = 386; else if detocc = 735 then prestg89 = 435; else if detocc = 736 then prestg89 = 425; else if detocc = 737 then prestg89 = 387; else if detocc = 738 then prestg89 = 270; else if detocc = 739 then prestg89 = 289; else if detocc = 743 then prestg89 = 222; else if detocc = 744 then prestg89 = 209; else if detocc = 745 then prestg89 = 248; else if detocc = 747 then prestg89 = 221; else if detocc = 748 then prestg89 = 330; else if detocc = 749 then prestg89 = 326; else if detocc = 753 then prestg89 = 295; else if detocc = 754 then prestg89 = 191; else if detocc = 755 then prestg89 = 288; else if detocc = 756 then prestg89 = 185; else if detocc = 757 then prestg89 = 248; else if detocc = 758 then prestg89 = 295; else if detocc = 759 then prestg89 = 261; else if detocc = 763 then prestg89 = 164; else if detocc = 764 then prestg89 = 191; else if detocc = 765 then prestg89 = 218; else if detocc = 766 then prestg89 = 337; else if detocc = 768 then prestg89 = 260; else if detocc = 769 then prestg89 = 264; else if detocc = 773 then prestg89 = 386; else if detocc = 774 then prestg89 = 333; else if detocc = 777 then prestg89 = 260; else if detocc = 779 then prestg89 = 273; else if detocc = 783 then prestg89 = 448; else if detocc = 784 then prestg89 = 294; else if detocc = 785 then prestg89 = 320; else if detocc = 786 then prestg89 = 212; else if detocc = 787 then prestg89 = 288; else if detocc = 789 then prestg89 = 270; else if detocc = 793 then prestg89 = 470; else if detocc = 795 then prestg89 = 310; else if detocc = 796 then prestg89 = 335; else if detocc = 797 then prestg89 = 389; else if detocc = 798 then prestg89 = 476; else if detocc = 799 then prestg89 = 256; else if detocc = 803 then prestg89 = 397; else if detocc = 804 then prestg89 = 233; else if detocc = 806 then prestg89 = 172; else if detocc = 808 then prestg89 = 269; else if detocc = 809 then prestg89 = 252; else if detocc = 813 then prestg89 = 165; else if detocc = 814 then prestg89 = 161; else if detocc = 823 then prestg89 = 500; else if detocc = 824 then prestg89 = 549; else if detocc = 825 then prestg89 = 432; else if detocc = 826 then prestg89 = 540; else if detocc = 828 then prestg89 = 645; else if detocc = 829 then prestg89 = 384; else if detocc = 833 then prestg89 = 473; else if detocc = 834 then prestg89 = 186; else if detocc = 843 then prestg89 = 509; else if detocc = 844 then prestg89 = 593; else if detocc = 845 then prestg89 = 310; else if detocc = 848 then prestg89 = 408; else if detocc = 849 then prestg89 = 469; else if detocc = 853 then prestg89 = 367; else if detocc = 855 then prestg89 = 330; else if detocc = 856 then prestg89 = 299; else if detocc = 859 then prestg89 = 243; else if detocc = 864 then prestg89 = 245; else if detocc = 865 then prestg89 = 330; else if detocc = 866 then prestg89 = 263; else if detocc = 867 then prestg89 = 429; else if detocc = 868 then prestg89 = 323; else if detocc = 869 then prestg89 = 333; else if detocc = 874 then prestg89 = 241; else if detocc = 875 then prestg89 = 287; else if detocc = 876 then prestg89 = 327; else if detocc = 877 then prestg89 = 165; else if detocc = 878 then prestg89 = 355; else if detocc = 883 then prestg89 = 199; else if detocc = 885 then prestg89 = 151; else if detocc = 887 then prestg89 = 129; else if detocc = 888 then prestg89 = 138; else if detocc = 889 then prestg89 = 197; else if 903<=detocc <= 905 then prestg89 = -2; /* military detoccs */ else if detocc<0 then prestg89=detocc; /* missing values */ ** occed Occupational education score; if detocc= 3 then occed= 0.852; else if detocc= 4 then occed= 0.646; else if detocc= 5 then occed= 0.805; else if detocc= 6 then occed= 0.734; else if detocc= 7 then occed= 0.846; else if detocc= 8 then occed= 0.751; else if detocc= 9 then occed= 0.836; else if detocc= 13 then occed= 0.861; else if detocc= 14 then occed= 0.880; else if detocc= 15 then occed= 0.793; else if detocc= 16 then occed= 0.608; else if detocc= 17 and cow>= 4 and cow<= 5 then occed= 0.541; else if detocc= 17 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occed= 0.678; else if detocc= 17 and cow>= 1 and cow<= 3 then occed= 0.538; else if detocc= 17 then occed= 0.558; else if detocc= 18 then occed= 0.679; else if detocc= 19 then occed= 0.811; else if detocc= 21 then occed= 0.780; else if detocc= 22 and detind>= 10 and detind<=32 and cow>= 1 and cow<= 3 then occed= 0.691; else if detocc= 22 and detind>= 40 and detind<=50 and cow>= 1 and cow<= 3 then occed= 0.747; else if detocc= 22 and detind>= 60 and detind<=60 and cow>= 1 and cow<= 3 then occed= 0.679; else if detocc= 22 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occed= 0.778; else if detocc= 22 and detind>=400 and detind<=472 and cow>= 1 and cow<= 3 then occed= 0.726; else if detocc= 22 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occed= 0.710; else if detocc= 22 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.631; else if detocc= 22 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occed= 0.810; else if detocc= 22 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occed= 0.727; else if detocc= 22 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occed= 0.605; else if detocc= 22 and detind>=800 and detind<=810 and cow>= 1 and cow<= 3 then occed= 0.739; else if detocc= 22 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occed= 0.827; else if detocc= 22 and detind>=900 and detind<=932 and cow>= 1 and cow<= 3 then occed= 0.829; else if detocc= 22 and cow>= 1 and cow<= 3 then occed= 0.751; else if detocc= 22 and detind>= 10 and detind<=32 and cow>= 4 and cow<= 5 then occed= 0.665; else if detocc= 22 and detind>= 40 and detind<=50 and cow>= 4 and cow<= 5 then occed= 0.665; else if detocc= 22 and detind>= 60 and detind<=60 and cow>= 4 and cow<= 5 then occed= 0.571; else if detocc= 22 and detind>=100 and detind<=392 and cow>= 4 and cow<= 5 then occed= 0.671; else if detocc= 22 and detind>=400 and detind<=472 and cow>= 4 and cow<= 5 then occed= 0.615; else if detocc= 22 and detind>=500 and detind<=571 and cow>= 4 and cow<= 5 then occed= 0.747; else if detocc= 22 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occed= 0.691; else if detocc= 22 and detind>=700 and detind<=712 and cow>= 4 and cow<= 5 then occed= 0.849; else if detocc= 22 and detind>=721 and detind<=760 and cow>= 4 and cow<= 5 then occed= 0.642; else if detocc= 22 and detind>=761 and detind<=791 and cow>= 4 and cow<= 5 then occed= 0.609; else if detocc= 22 and detind>=800 and detind<=810 and cow>= 4 and cow<= 5 then occed= 0.702; else if detocc= 22 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occed= 0.873; else if detocc= 22 and cow>= 4 and cow<= 5 then occed= 0.658; else if detocc= 22 and detind>= 10 and detind<=32 then occed= 0.682; else if detocc= 22 and detind>= 40 and detind<=50 then occed= 0.732; else if detocc= 22 and detind>= 60 and detind<=60 then occed= 0.636; else if detocc= 22 and detind>=100 and detind<=392 then occed= 0.763; else if detocc= 22 and detind>=400 and detind<=472 then occed= 0.715; else if detocc= 22 and detind>=500 and detind<=571 then occed= 0.716; else if detocc= 22 and detind>=580 and detind<=691 then occed= 0.640; else if detocc= 22 and detind>=700 and detind<=712 then occed= 0.814; else if detocc= 22 and detind>=721 and detind<=760 then occed= 0.703; else if detocc= 22 and detind>=761 and detind<=791 then occed= 0.607; else if detocc= 22 and detind>=800 and detind<=810 then occed= 0.733; else if detocc= 22 and detind>=812 and detind<=893 then occed= 0.831; else if detocc= 22 and detind>=900 and detind<=932 then occed= 0.829; else if detocc= 22 then occed= 0.735; else if detocc= 23 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occed= 0.928; else if detocc= 23 and cow>= 1 and cow<= 3 then occed= 0.883; else if detocc= 23 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occed= 0.968; else if detocc= 23 and cow>= 4 and cow<= 5 then occed= 0.869; else if detocc= 23 and detind>=812 and detind<=893 then occed= 0.938; else if detocc= 23 then occed= 0.902; else if detocc= 24 then occed= 0.745; else if detocc= 25 then occed= 0.817; else if detocc= 26 then occed= 0.909; else if detocc= 27 then occed= 0.776; else if detocc= 28 then occed= 0.460; else if detocc= 29 then occed= 0.641; else if detocc= 33 then occed= 0.709; else if detocc= 34 then occed= 0.759; else if detocc= 35 then occed= 0.636; else if detocc= 36 then occed= 0.741; else if detocc= 37 then occed= 0.720; else if detocc= 43 then occed= 0.952; else if detocc= 44 then occed= 0.963; else if detocc= 45 then occed= 0.900; else if detocc= 46 then occed= 0.886; else if detocc= 47 then occed= 0.928; else if detocc= 48 then occed= 0.957; else if detocc= 49 then occed= 0.959; else if detocc= 53 then occed= 0.935; else if detocc= 54 then occed= 0.878; else if detocc= 55 then occed= 0.939; else if detocc= 56 then occed= 0.877; else if detocc= 57 then occed= 0.910; else if detocc= 58 then occed= 0.814; else if detocc= 59 then occed= 0.942; else if detocc= 63 then occed= 0.899; else if detocc= 64 then occed= 0.941; else if detocc= 65 then occed= 0.878; else if detocc= 66 then occed= 0.975; else if detocc= 67 then occed= 0.899; else if detocc= 68 then occed= 0.963; else if detocc= 69 then occed= 0.974; else if detocc= 73 then occed= 0.951; else if detocc= 74 then occed= 0.937; else if detocc= 75 then occed= 0.983; else if detocc= 76 then occed= 0.956; else if detocc= 77 then occed= 0.845; else if detocc= 78 then occed= 0.972; else if detocc= 79 then occed= 0.851; else if detocc= 83 then occed= 0.998; else if detocc= 84 then occed= 0.996; else if detocc= 85 then occed= 0.994; else if detocc= 86 then occed= 0.994; else if detocc= 87 then occed= 0.989; else if detocc= 88 then occed= 0.990; else if detocc= 89 then occed= 0.900; else if detocc= 95 and cow>= 1 and cow<= 3 then occed= 0.951; else if detocc= 95 and cow>= 4 and cow<= 5 then occed= 0.859; else if detocc= 95 then occed= 0.949; else if detocc= 96 then occed= 0.953; else if detocc= 97 then occed= 0.702; else if detocc= 98 then occed= 0.925; else if detocc= 99 then occed= 0.954; else if detocc=103 then occed= 0.909; else if detocc=104 then occed= 0.983; else if detocc=105 then occed= 0.891; else if detocc=106 then occed= 0.807; else if detocc=113 then occed= 0.987; else if detocc=114 then occed= 0.999; else if detocc=115 then occed= 0.989; else if detocc=116 then occed= 0.981; else if detocc=117 then occed= 0.909; else if detocc=118 then occed= 0.983; else if detocc=119 then occed= 0.976; else if detocc=123 then occed= 0.993; else if detocc=124 then occed= 0.984; else if detocc=125 then occed= 0.926; else if detocc=126 then occed= 0.996; else if detocc=127 then occed= 0.938; else if detocc=128 then occed= 0.979; else if detocc=129 then occed= 0.963; else if detocc=133 then occed= 0.987; else if detocc=134 then occed= 0.964; else if detocc=135 then occed= 0.977; else if detocc=136 then occed= 0.993; else if detocc=137 then occed= 0.972; else if detocc=138 then occed= 0.950; else if detocc=139 then occed= 0.952; else if detocc=143 then occed= 0.969; else if detocc=144 then occed= 0.970; else if detocc=145 then occed= 0.986; else if detocc=146 then occed= 0.000; else if detocc=147 then occed= 0.976; else if detocc=148 then occed= 0.885; else if detocc=149 then occed= 0.932; else if detocc=153 then occed= 0.973; else if detocc=154 then occed= 0.977; else if detocc=155 then occed= 0.749; else if detocc=156 then occed= 0.950; else if detocc=157 then occed= 0.967; else if detocc=158 then occed= 0.864; else if detocc=159 then occed= 0.829; else if detocc=163 then occed= 0.940; else if detocc=164 then occed= 0.880; else if detocc=165 then occed= 0.862; else if detocc=166 then occed= 0.995; else if detocc=167 then occed= 0.997; else if detocc=168 then occed= 0.000; else if detocc=169 then occed= 0.987; else if detocc=173 then occed= 0.950; else if detocc=174 then occed= 0.865; else if detocc=175 then occed= 0.677; else if detocc=176 then occed= 0.903; else if detocc=177 then occed= 0.827; else if detocc=178 then occed= 0.997; else if detocc=179 then occed= 0.897; else if detocc=183 then occed= 0.941; else if detocc=184 then occed= 0.914; else if detocc=185 then occed= 0.751; else if detocc=186 then occed= 0.768; else if detocc=187 then occed= 0.903; else if detocc=188 then occed= 0.798; else if detocc=189 then occed= 0.745; else if detocc=193 then occed= 0.516; else if detocc=194 then occed= 0.735; else if detocc=195 then occed= 0.923; else if detocc=197 then occed= 0.876; else if detocc=198 then occed= 0.723; else if detocc=199 then occed= 0.763; else if detocc=203 then occed= 0.828; else if detocc=204 then occed= 0.978; else if detocc=205 then occed= 0.610; else if detocc=206 then occed= 0.868; else if detocc=207 then occed= 0.726; else if detocc=208 then occed= 0.692; else if detocc=213 then occed= 0.761; else if detocc=214 then occed= 0.753; else if detocc=215 then occed= 0.769; else if detocc=216 then occed= 0.734; else if detocc=217 then occed= 0.790; else if detocc=218 then occed= 0.645; else if detocc=223 then occed= 0.621; else if detocc=224 then occed= 0.648; else if detocc=225 then occed= 0.738; else if detocc=226 then occed= 0.896; else if detocc=227 then occed= 0.743; else if detocc=228 then occed= 0.682; else if detocc=229 then occed= 0.923; else if detocc=233 then occed= 0.716; else if detocc=234 then occed= 0.781; else if detocc=235 then occed= 0.726; else if detocc=243 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occed= 0.651; else if detocc=243 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.561; else if detocc=243 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occed= 0.796; else if detocc=243 and cow>= 1 and cow<= 3 then occed= 0.643; else if detocc=243 and detind>=500 and detind<=571 and cow>= 4 and cow<= 5 then occed= 0.633; else if detocc=243 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occed= 0.575; else if detocc=243 and detind>=700 and detind<=712 and cow>= 4 and cow<= 5 then occed= 0.827; else if detocc=243 and cow>= 4 and cow<= 5 then occed= 0.610; else if detocc=243 and detind>=500 and detind<=571 then occed= 0.647; else if detocc=243 and detind>=580 and detind<=691 then occed= 0.564; else if detocc=243 and detind>=700 and detind<=712 then occed= 0.800; else if detocc=243 then occed= 0.602; else if detocc=253 then occed= 0.766; else if detocc=254 then occed= 0.786; else if detocc=255 then occed= 0.888; else if detocc=256 then occed= 0.796; else if detocc=257 then occed= 0.742; else if detocc=258 then occed= 0.921; else if detocc=259 and cow>= 1 and cow<= 3 then occed= 0.708; else if detocc=259 and cow>= 4 and cow<= 5 then occed= 0.678; else if detocc=259 then occed= 0.704; else if detocc=263 then occed= 0.526; else if detocc=264 then occed= 0.461; else if detocc=265 then occed= 0.419; else if detocc=266 then occed= 0.538; else if detocc=267 then occed= 0.691; else if detocc=268 then occed= 0.500; else if detocc=269 then occed= 0.356; else if detocc=274 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.468; else if detocc=274 and cow>= 1 and cow<= 3 then occed= 0.624; else if detocc=274 and cow>= 4 and cow<= 5 then occed= 0.565; else if detocc=274 then occed= 0.489; else if detocc=275 then occed= 0.377; else if detocc=276 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.309; else if detocc=276 and cow>= 1 and cow<= 3 then occed= 0.410; else if detocc=276 and cow>= 4 and cow<= 5 then occed= 0.405; else if detocc=276 then occed= 0.326; else if detocc=277 then occed= 0.569; else if detocc=278 then occed= 0.331; else if detocc=283 then occed= 0.460; else if detocc=284 then occed= 0.446; else if detocc=285 then occed= 0.683; else if detocc=303 then occed= 0.624; else if detocc=304 then occed= 0.774; else if detocc=305 then occed= 0.729; else if detocc=306 then occed= 0.594; else if detocc=307 then occed= 0.593; else if detocc=308 then occed= 0.629; else if detocc=309 then occed= 0.473; else if detocc=313 and detind>= 10 and detind<=32 and cow>= 1 and cow<= 3 then occed= 0.494; else if detocc=313 and detind>= 40 and detind<=50 and cow>= 1 and cow<= 3 then occed= 0.602; else if detocc=313 and detind>= 60 and detind<=60 and cow>= 1 and cow<= 3 then occed= 0.507; else if detocc=313 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occed= 0.529; else if detocc=313 and detind>=400 and detind<=472 and cow>= 1 and cow<= 3 then occed= 0.537; else if detocc=313 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occed= 0.499; else if detocc=313 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.475; else if detocc=313 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occed= 0.533; else if detocc=313 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occed= 0.553; else if detocc=313 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occed= 0.531; else if detocc=313 and detind>=800 and detind<=810 and cow>= 1 and cow<= 3 then occed= 0.601; else if detocc=313 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occed= 0.594; else if detocc=313 and detind>=900 and detind<=932 and cow>= 1 and cow<= 3 then occed= 0.552; else if detocc=313 and cow>= 1 and cow<= 3 then occed= 0.557; else if detocc=313 and cow>= 4 and cow<= 5 then occed= 0.494; else if detocc=313 then occed= 0.555; else if detocc=314 then occed= 0.717; else if detocc=315 then occed= 0.543; else if detocc=316 then occed= 0.614; else if detocc=317 then occed= 0.541; else if detocc=318 then occed= 0.696; else if detocc=319 then occed= 0.492; else if detocc=323 then occed= 0.518; else if detocc=325 then occed= 0.527; else if detocc=326 then occed= 0.605; else if detocc=327 then occed= 0.521; else if detocc=328 then occed= 0.561; else if detocc=329 then occed= 0.656; else if detocc=335 then occed= 0.461; else if detocc=336 then occed= 0.582; else if detocc=337 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.482; else if detocc=337 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occed= 0.614; else if detocc=337 and cow>= 1 and cow<= 3 then occed= 0.556; else if detocc=337 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occed= 0.491; else if detocc=337 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occed= 0.689; else if detocc=337 and cow>= 4 and cow<= 5 then occed= 0.508; else if detocc=337 and detind>=580 and detind<=691 then occed= 0.483; else if detocc=337 and detind>=812 and detind<=893 then occed= 0.624; else if detocc=337 then occed= 0.554; else if detocc=338 then occed= 0.528; else if detocc=339 then occed= 0.498; else if detocc=343 then occed= 0.502; else if detocc=344 then occed= 0.507; else if detocc=345 then occed= 0.500; else if detocc=346 then occed= 0.323; else if detocc=347 then occed= 0.389; else if detocc=348 then occed= 0.408; else if detocc=353 then occed= 0.488; else if detocc=354 then occed= 0.559; else if detocc=355 then occed= 0.552; else if detocc=356 then occed= 0.402; else if detocc=357 then occed= 0.477; else if detocc=359 then occed= 0.470; else if detocc=363 then occed= 0.609; else if detocc=364 then occed= 0.343; else if detocc=365 then occed= 0.392; else if detocc=366 then occed= 0.430; else if detocc=368 then occed= 0.327; else if detocc=373 then occed= 0.479; else if detocc=374 then occed= 0.455; else if detocc=375 then occed= 0.678; else if detocc=376 then occed= 0.635; else if detocc=377 then occed= 0.654; else if detocc=378 then occed= 0.575; else if detocc=379 and detind>= 10 and detind<=32 then occed= 0.547; else if detocc=379 and detind>= 40 and detind<=50 then occed= 0.564; else if detocc=379 and detind>= 60 and detind<=60 then occed= 0.483; else if detocc=379 and detind>=100 and detind<=392 then occed= 0.457; else if detocc=379 and detind>=400 and detind<=472 then occed= 0.489; else if detocc=379 and detind>=500 and detind<=571 then occed= 0.439; else if detocc=379 and detind>=580 and detind<=691 then occed= 0.403; else if detocc=379 and detind>=700 and detind<=712 then occed= 0.488; else if detocc=379 and detind>=721 and detind<=760 then occed= 0.519; else if detocc=379 and detind>=761 and detind<=791 then occed= 0.439; else if detocc=379 and detind>=800 and detind<=810 then occed= 0.501; else if detocc=379 and detind>=812 and detind<=893 then occed= 0.605; else if detocc=379 and detind>=900 and detind<=932 then occed= 0.535; else if detocc=379 then occed= 0.513; else if detocc=383 then occed= 0.505; else if detocc=384 then occed= 0.676; else if detocc=385 then occed= 0.546; else if detocc=386 then occed= 0.643; else if detocc=387 then occed= 0.537; else if detocc=389 then occed= 0.638; else if detocc=403 then occed= 0.185; else if detocc=404 then occed= 0.247; else if detocc=405 then occed= 0.160; else if detocc=406 then occed= 0.357; else if detocc=407 then occed= 0.169; else if detocc=413 then occed= 0.758; else if detocc=414 then occed= 0.788; else if detocc=415 then occed= 0.604; else if detocc=416 then occed= 0.625; else if detocc=417 then occed= 0.655; else if detocc=418 then occed= 0.769; else if detocc=423 then occed= 0.667; else if detocc=424 then occed= 0.537; else if detocc=425 then occed= 0.192; else if detocc=426 then occed= 0.475; else if detocc=427 then occed= 0.513; else if detocc=433 then occed= 0.435; else if detocc=434 then occed= 0.468; else if detocc=435 then occed= 0.412; else if detocc=436 then occed= 0.218; else if detocc=438 then occed= 0.240; else if detocc=439 then occed= 0.261; else if detocc=443 then occed= 0.258; else if detocc=444 then occed= 0.200; else if detocc=445 then occed= 0.573; else if detocc=446 then occed= 0.412; else if detocc=447 then occed= 0.378; else if detocc=448 then occed= 0.355; else if detocc=449 then occed= 0.147; else if detocc=453 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occed= 0.187; else if detocc=453 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.182; else if detocc=453 and cow>= 1 and cow<= 3 then occed= 0.213; else if detocc=453 and cow>= 4 and cow<= 5 then occed= 0.305; else if detocc=453 then occed= 0.214; else if detocc=454 then occed= 0.226; else if detocc=455 then occed= 0.372; else if detocc=456 then occed= 0.550; else if detocc=457 then occed= 0.326; else if detocc=458 then occed= 0.403; else if detocc=459 then occed= 0.453; else if detocc=461 then occed= 0.597; else if detocc=462 then occed= 0.417; else if detocc=463 then occed= 0.751; else if detocc=464 then occed= 0.466; else if detocc=465 then occed= 0.480; else if detocc=466 then occed= 0.399; else if detocc=467 then occed= 0.458; else if detocc=468 then occed= 0.361; else if detocc=469 then occed= 0.421; else if detocc=473 then occed= 0.340; else if detocc=474 then occed= 0.466; else if detocc=475 then occed= 0.378; else if detocc=476 then occed= 0.552; else if detocc=477 then occed= 0.309; else if detocc=479 then occed= 0.171; else if detocc=483 then occed= 0.272; else if detocc=484 then occed= 0.254; else if detocc=485 then occed= 0.472; else if detocc=486 then occed= 0.259; else if detocc=487 then occed= 0.428; else if detocc=488 then occed= 0.106; else if detocc=489 then occed= 0.375; else if detocc=494 then occed= 0.312; else if detocc=495 then occed= 0.435; else if detocc=496 then occed= 0.165; else if detocc=497 then occed= 0.348; else if detocc=498 then occed= 0.263; else if detocc=499 then occed= 0.475; else if detocc=503 then occed= 0.488; else if detocc=505 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occed= 0.306; else if detocc=505 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occed= 0.259; else if detocc=505 and cow>= 1 and cow<= 3 then occed= 0.310; else if detocc=505 and cow>= 4 and cow<= 5 then occed= 0.271; else if detocc=505 then occed= 0.285; else if detocc=506 then occed= 0.408; else if detocc=507 then occed= 0.271; else if detocc=508 then occed= 0.585; else if detocc=509 then occed= 0.298; else if detocc=514 then occed= 0.210; else if detocc=515 then occed= 0.518; else if detocc=516 then occed= 0.286; else if detocc=517 then occed= 0.304; else if detocc=518 then occed= 0.304; else if detocc=519 then occed= 0.226; else if detocc=523 then occed= 0.571; else if detocc=525 then occed= 0.779; else if detocc=526 then occed= 0.411; else if detocc=527 then occed= 0.454; else if detocc=529 then occed= 0.492; else if detocc=533 then occed= 0.485; else if detocc=534 then occed= 0.394; else if detocc=535 then occed= 0.559; else if detocc=536 then occed= 0.402; else if detocc=538 then occed= 0.614; else if detocc=539 then occed= 0.363; else if detocc=543 then occed= 0.402; else if detocc=544 then occed= 0.319; else if detocc=547 then occed= 0.398; else if detocc=549 then occed= 0.342; else if detocc=553 then occed= 0.275; else if detocc=554 then occed= 0.358; else if detocc=555 then occed= 0.518; else if detocc=556 then occed= 0.314; else if detocc=557 then occed= 0.345; else if detocc=558 then occed= 0.414; else if detocc=563 then occed= 0.187; else if detocc=564 then occed= 0.273; else if detocc=565 then occed= 0.254; else if detocc=566 then occed= 0.217; else if detocc=567 and cow>= 1 and cow<= 3 then occed= 0.282; else if detocc=567 and cow>= 4 and cow<= 5 then occed= 0.366; else if detocc=567 then occed= 0.306; else if detocc=569 then occed= 0.288; else if detocc=573 then occed= 0.185; else if detocc=575 then occed= 0.455; else if detocc=576 then occed= 0.464; else if detocc=577 then occed= 0.375; else if detocc=579 then occed= 0.279; else if detocc=583 then occed= 0.413; else if detocc=584 then occed= 0.180; else if detocc=585 then occed= 0.306; else if detocc=587 then occed= 0.359; else if detocc=588 then occed= 0.171; else if detocc=589 then occed= 0.275; else if detocc=593 then occed= 0.264; else if detocc=594 then occed= 0.163; else if detocc=595 then occed= 0.170; else if detocc=596 then occed= 0.282; else if detocc=597 then occed= 0.277; else if detocc=598 then occed= 0.217; else if detocc=599 then occed= 0.228; else if detocc=613 then occed= 0.414; else if detocc=614 then occed= 0.229; else if detocc=615 then occed= 0.218; else if detocc=616 then occed= 0.210; else if detocc=617 then occed= 0.206; else if detocc=628 and cow>= 1 and cow<= 3 then occed= 0.428; else if detocc=628 and cow>= 4 and cow<= 5 then occed= 0.485; else if detocc=628 then occed= 0.430; else if detocc=634 then occed= 0.419; else if detocc=635 then occed= 0.508; else if detocc=636 then occed= 0.287; else if detocc=637 then occed= 0.331; else if detocc=639 then occed= 0.499; else if detocc=643 then occed= 0.311; else if detocc=644 then occed= 0.275; else if detocc=645 then occed= 0.470; else if detocc=646 then occed= 0.337; else if detocc=647 then occed= 0.409; else if detocc=649 then occed= 0.392; else if detocc=653 then occed= 0.315; else if detocc=654 then occed= 0.374; else if detocc=655 then occed= 0.152; else if detocc=656 then occed= 0.520; else if detocc=657 then occed= 0.318; else if detocc=658 then occed= 0.297; else if detocc=659 then occed= 0.321; else if detocc=666 then occed= 0.277; else if detocc=667 then occed= 0.213; else if detocc=668 then occed= 0.215; else if detocc=669 then occed= 0.214; else if detocc=674 then occed= 0.328; else if detocc=675 then occed= 0.303; else if detocc=676 then occed= 0.482; else if detocc=677 then occed= 0.522; else if detocc=678 then occed= 0.600; else if detocc=679 then occed= 0.267; else if detocc=683 then occed= 0.226; else if detocc=684 then occed= 0.251; else if detocc=686 then occed= 0.202; else if detocc=687 then occed= 0.275; else if detocc=688 then occed= 0.237; else if detocc=689 then occed= 0.458; else if detocc=693 then occed= 0.470; else if detocc=694 then occed= 0.472; else if detocc=695 then occed= 0.521; else if detocc=696 then occed= 0.536; else if detocc=699 then occed= 0.418; else if detocc=703 then occed= 0.227; else if detocc=704 then occed= 0.270; else if detocc=705 then occed= 0.293; else if detocc=706 then occed= 0.166; else if detocc=707 then occed= 0.181; else if detocc=708 then occed= 0.207; else if detocc=709 then occed= 0.184; else if detocc=713 then occed= 0.184; else if detocc=714 then occed= 0.373; else if detocc=715 then occed= 0.238; else if detocc=717 then occed= 0.161; else if detocc=719 then occed= 0.220; else if detocc=723 then occed= 0.222; else if detocc=724 then occed= 0.238; else if detocc=725 then occed= 0.186; else if detocc=726 then occed= 0.220; else if detocc=727 then occed= 0.151; else if detocc=728 then occed= 0.126; else if detocc=729 then occed= 0.131; else if detocc=733 then occed= 0.283; else if detocc=734 then occed= 0.329; else if detocc=735 then occed= 0.427; else if detocc=736 then occed= 0.549; else if detocc=737 then occed= 0.349; else if detocc=738 then occed= 0.106; else if detocc=739 then occed= 0.145; else if detocc=743 then occed= 0.175; else if detocc=744 then occed= 0.111; else if detocc=745 then occed= 0.083; else if detocc=747 then occed= 0.130; else if detocc=748 then occed= 0.188; else if detocc=749 then occed= 0.171; else if detocc=753 then occed= 0.161; else if detocc=754 then occed= 0.166; else if detocc=755 then occed= 0.212; else if detocc=756 then occed= 0.238; else if detocc=757 then occed= 0.359; else if detocc=758 then occed= 0.203; else if detocc=759 then occed= 0.202; else if detocc=763 then occed= 0.241; else if detocc=764 then occed= 0.170; else if detocc=765 then occed= 0.160; else if detocc=766 then occed= 0.252; else if detocc=768 then occed= 0.160; else if detocc=769 then occed= 0.170; else if detocc=773 then occed= 0.575; else if detocc=774 then occed= 0.511; else if detocc=777 then occed= 0.223; else if detocc=779 then occed= 0.225; else if detocc=783 then occed= 0.228; else if detocc=784 then occed= 0.159; else if detocc=785 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occed= 0.208; else if detocc=785 and cow>= 1 and cow<= 3 then occed= 0.243; else if detocc=785 and cow>= 4 and cow<= 5 then occed= 0.438; else if detocc=785 then occed= 0.219; else if detocc=786 then occed= 0.169; else if detocc=787 then occed= 0.339; else if detocc=789 then occed= 0.349; else if detocc=793 then occed= 0.321; else if detocc=795 then occed= 0.216; else if detocc=796 then occed= 0.313; else if detocc=797 then occed= 0.468; else if detocc=798 then occed= 0.213; else if detocc=799 then occed= 0.194; else if detocc=803 then occed= 0.523; else if detocc=804 and detind>= 10 and detind<=32 then occed= 0.195; else if detocc=804 and detind>= 40 and detind<=50 then occed= 0.160; else if detocc=804 and detind>= 60 and detind<=60 then occed= 0.162; else if detocc=804 and detind>=100 and detind<=392 then occed= 0.200; else if detocc=804 and detind>=400 and detind<=472 then occed= 0.249; else if detocc=804 and detind>=500 and detind<=571 then occed= 0.251; else if detocc=804 and detind>=580 and detind<=691 then occed= 0.299; else if detocc=804 and detind>=700 and detind<=712 then occed= 0.302; else if detocc=804 and detind>=721 and detind<=760 then occed= 0.272; else if detocc=804 and detind>=761 and detind<=791 then occed= 0.286; else if detocc=804 and detind>=800 and detind<=810 then occed= 0.334; else if detocc=804 and detind>=812 and detind<=893 then occed= 0.353; else if detocc=804 and detind>=900 and detind<=932 then occed= 0.246; else if detocc=804 then occed= 0.247; else if detocc=806 then occed= 0.372; else if detocc=808 then occed= 0.298; else if detocc=809 then occed= 0.385; else if detocc=813 then occed= 0.342; else if detocc=814 then occed= 0.250; else if detocc=823 then occed= 0.391; else if detocc=824 then occed= 0.398; else if detocc=825 then occed= 0.361; else if detocc=826 then occed= 0.364; else if detocc=828 then occed= 0.416; else if detocc=829 then occed= 0.292; else if detocc=833 then occed= 0.481; else if detocc=834 then occed= 0.294; else if detocc=843 then occed= 0.406; else if detocc=844 then occed= 0.208; else if detocc=845 then occed= 0.271; else if detocc=848 then occed= 0.191; else if detocc=849 then occed= 0.197; else if detocc=853 then occed= 0.169; else if detocc=855 then occed= 0.138; else if detocc=856 then occed= 0.185; else if detocc=859 then occed= 0.247; else if detocc=864 then occed= 0.426; else if detocc=865 then occed= 0.211; else if detocc=866 then occed= 0.201; else if detocc=867 then occed= 0.453; else if detocc=868 then occed= 0.304; else if detocc=869 then occed= 0.236; else if detocc=874 then occed= 0.201; else if detocc=875 then occed= 0.160; else if detocc=876 then occed= 0.269; else if detocc=877 and detind>=580 and detind<=691then occed= 0.266; else if detocc=877 then occed= 0.257; else if detocc=877 then occed= 0.264; else if detocc=878 then occed= 0.186; else if detocc=883 then occed= 0.295; else if detocc=885 then occed= 0.230; else if detocc=887 then occed= 0.198; else if detocc=888 then occed= 0.176; else if detocc=889 and detind>= 10 and detind<=32 then occed= 0.187; else if detocc=889 and detind>= 40 and detind<=50 then occed= 0.190; else if detocc=889 and detind>=100 and detind<=392 then occed= 0.181; else if detocc=889 and detind>=400 and detind<=472 then occed= 0.267; else if detocc=889 and detind>=500 and detind<=571 then occed= 0.243; else if detocc=889 and detind>=580 and detind<=691 then occed= 0.265; else if detocc=889 and detind>=700 and detind<=712 then occed= 0.253; else if detocc=889 and detind>=721 and detind<=760 then occed= 0.253; else if detocc=889 and detind>=761 and detind<=791 then occed= 0.212; else if detocc=889 and detind>=800 and detind<=810 then occed= 0.292; else if detocc=889 and detind>=812 and detind<=893 then occed= 0.342; else if detocc=889 and detind>=900 and detind<=932 then occed= 0.313; else if detocc=889 then occed= 0.226; if 903<=detocc<=905 then occed=-2; /*military codes*/ else if detocc<0 then occed=detocc; /*missing values*/ if occed>=0 then occed = occed*1000; ** occinc 1990 OCCUPATIONAL INCOME SCORE; if detocc= 3 then occinc= 0.429; else if detocc= 4 then occinc= 0.474; else if detocc= 5 then occinc= 0.533; else if detocc= 6 then occinc= 0.478; else if detocc= 7 then occinc= 0.574; else if detocc= 8 then occinc= 0.488; else if detocc= 9 then occinc= 0.591; else if detocc= 13 then occinc= 0.623; else if detocc= 14 then occinc= 0.509; else if detocc= 15 then occinc= 0.427; else if detocc= 16 then occinc= 0.774; else if detocc= 17 and cow>= 4 and cow<= 5 then occinc= 0.288; else if detocc= 17 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occinc= 0.225; else if detocc= 17 and cow>= 1 and cow<= 3 then occinc= 0.129; else if detocc= 17 then occinc= 0.175; else if detocc= 18 then occinc= 0.373; else if detocc= 19 then occinc= 0.380; else if detocc= 21 then occinc= 0.352; else if detocc= 22 and detind>= 10 and detind<= 32 and cow>= 1 and cow<= 3 then occinc= 0.307; else if detocc= 22 and detind>= 40 and detind<= 50 and cow>= 1 and cow<= 3 then occinc= 0.706; else if detocc= 22 and detind>= 60 and detind<= 60 and cow>= 1 and cow<= 3 then occinc= 0.557; else if detocc= 22 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occinc= 0.673; else if detocc= 22 and detind>=400 and detind<=472 and cow>= 1 and cow<= 3 then occinc= 0.617; else if detocc= 22 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occinc= 0.511; else if detocc= 22 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.303; else if detocc= 22 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occinc= 0.583; else if detocc= 22 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occinc= 0.457; else if detocc= 22 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occinc= 0.236; else if detocc= 22 and detind>=800 and detind<=810 and cow>= 1 and cow<= 3 then occinc= 0.319; else if detocc= 22 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occinc= 0.472; else if detocc= 22 and detind>=900 and detind<=932 and cow>= 1 and cow<= 3 then occinc= 0.621; else if detocc= 22 and cow>= 1 and cow<= 3 then occinc= 0.548; else if detocc= 22 and detind>= 10 and detind<= 32 and cow>= 4 and cow<= 5 then occinc= 0.343; else if detocc= 22 and detind>= 40 and detind<= 50 and cow>= 4 and cow<= 5 then occinc= 0.544; else if detocc= 22 and detind>= 60 and detind<= 60 and cow>= 4 and cow<= 5 then occinc= 0.491; else if detocc= 22 and detind>=100 and detind<=392 and cow>= 4 and cow<= 5 then occinc= 0.519; else if detocc= 22 and detind>=400 and detind<=472 and cow>= 4 and cow<= 5 then occinc= 0.480; else if detocc= 22 and detind>=500 and detind<=571 and cow>= 4 and cow<= 5 then occinc= 0.633; else if detocc= 22 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occinc= 0.469; else if detocc= 22 and detind>=700 and detind<=712 and cow>= 4 and cow<= 5 then occinc= 0.639; else if detocc= 22 and detind>=721 and detind<=760 and cow>= 4 and cow<= 5 then occinc= 0.428; else if detocc= 22 and detind>=761 and detind<=791 and cow>= 4 and cow<= 5 then occinc= 0.308; else if detocc= 22 and detind>=800 and detind<=810 and cow>= 4 and cow<= 5 then occinc= 0.368; else if detocc= 22 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occinc= 0.506; else if detocc= 22 and cow>= 4 and cow<= 5 then occinc= 0.489; else if detocc= 22 and detind>= 10 and detind<= 32 then occinc= 0.320; else if detocc= 22 and detind>= 40 and detind<= 50 then occinc= 0.676; else if detocc= 22 and detind>= 60 and detind<= 60 then occinc= 0.531; else if detocc= 22 and detind>=100 and detind<=392 then occinc= 0.652; else if detocc= 22 and detind>=400 and detind<=472 then occinc= 0.603; else if detocc= 22 and detind>=500 and detind<=571 then occinc= 0.530; else if detocc= 22 and detind>=580 and detind<=691 then occinc= 0.329; else if detocc= 22 and detind>=700 and detind<=712 then occinc= 0.588; else if detocc= 22 and detind>=721 and detind<=760 then occinc= 0.449; else if detocc= 22 and detind>=761 and detind<=791 then occinc= 0.261; else if detocc= 22 and detind>=800 and detind<=810 then occinc= 0.326; else if detocc= 22 and detind>=812 and detind<=893 then occinc= 0.475; else if detocc= 22 and detind>=900 and detind<=932 then occinc= 0.621; else if detocc= 22 then occinc= 0.538; else if detocc= 23 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occinc= 0.380; else if detocc= 23 and cow>= 1 and cow<= 3 then occinc= 0.400; else if detocc= 23 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occinc= 0.618; else if detocc= 23 and cow>= 4 and cow<= 5 then occinc= 0.376; else if detocc= 23 and detind>=812 and detind<=893 then occinc= 0.442; else if detocc= 23 then occinc= 0.414; else if detocc= 24 then occinc= 0.392; else if detocc= 25 then occinc= 0.420; else if detocc= 26 then occinc= 0.602; else if detocc= 27 then occinc= 0.391; else if detocc= 28 then occinc= 0.314; else if detocc= 29 then occinc= 0.261; else if detocc= 33 then occinc= 0.362; else if detocc= 34 then occinc= 0.338; else if detocc= 35 then occinc= 0.439; else if detocc= 36 then occinc= 0.448; else if detocc= 37 then occinc= 0.236; else if detocc= 43 then occinc= 0.589; else if detocc= 44 then occinc= 0.876; else if detocc= 45 then occinc= 0.736; else if detocc= 46 then occinc= 0.710; else if detocc= 47 then occinc= 0.776; else if detocc= 48 then occinc= 0.838; else if detocc= 49 then occinc= 0.864; else if detocc= 53 then occinc= 0.746; else if detocc= 54 then occinc= 0.698; else if detocc= 55 then occinc= 0.816; else if detocc= 56 then occinc= 0.670; else if detocc= 57 then occinc= 0.776; else if detocc= 58 then occinc= 0.735; else if detocc= 59 then occinc= 0.748; else if detocc= 63 then occinc= 0.507; else if detocc= 64 then occinc= 0.717; else if detocc= 65 then occinc= 0.623; else if detocc= 66 then occinc= 0.769; else if detocc= 67 then occinc= 0.493; else if detocc= 68 then occinc= 0.793; else if detocc= 69 then occinc= 0.738; else if detocc= 73 then occinc= 0.593; else if detocc= 74 then occinc= 0.663; else if detocc= 75 then occinc= 0.640; else if detocc= 76 then occinc= 0.545; else if detocc= 77 then occinc= 0.379; else if detocc= 78 then occinc= 0.440; else if detocc= 79 then occinc= 0.414; else if detocc= 83 then occinc= 0.504; else if detocc= 84 then occinc= 0.780; else if detocc= 85 then occinc= 0.840; else if detocc= 86 then occinc= 0.588; else if detocc= 87 then occinc= 0.794; else if detocc= 88 then occinc= 0.769; else if detocc= 89 then occinc= 0.572; else if detocc= 95 and cow>= 1 and cow<= 3 then occinc= 0.533; else if detocc= 95 and cow>= 4 and cow<= 5 then occinc= 0.432; else if detocc= 95 then occinc= 0.531; else if detocc= 96 then occinc= 0.723; else if detocc= 97 then occinc= 0.223; else if detocc= 98 then occinc= 0.341; else if detocc= 99 then occinc= 0.476; else if detocc=103 then occinc= 0.547; else if detocc=104 then occinc= 0.552; else if detocc=105 then occinc= 0.252; else if detocc=106 then occinc= 0.299; else if detocc=113 then occinc= 0.520; else if detocc=114 then occinc= 0.622; else if detocc=115 then occinc= 0.580; else if detocc=116 then occinc= 0.635; else if detocc=117 then occinc= 0.077; else if detocc=118 then occinc= 0.582; else if detocc=119 then occinc= 0.674; else if detocc=123 then occinc= 0.591; else if detocc=124 then occinc= 0.592; else if detocc=125 then occinc= 0.683; else if detocc=126 then occinc= 0.622; else if detocc=127 then occinc= 0.605; else if detocc=128 then occinc= 0.529; else if detocc=129 then occinc= 0.322; else if detocc=133 then occinc= 0.829; else if detocc=134 then occinc= 0.582; else if detocc=135 then occinc= 0.626; else if detocc=136 then occinc= 0.577; else if detocc=137 then occinc= 0.458; else if detocc=138 then occinc= 0.300; else if detocc=139 then occinc= 0.587; else if detocc=143 then occinc= 0.451; else if detocc=144 then occinc= 0.331; else if detocc=145 then occinc= 0.851; else if detocc=146 then occinc= 0.682; else if detocc=147 then occinc= 0.448; else if detocc=148 then occinc= 0.501; else if detocc=149 then occinc= 0.546; else if detocc=153 then occinc= 0.531; else if detocc=154 then occinc= 0.539; else if detocc=155 then occinc= 0.083; else if detocc=156 then occinc= 0.476; else if detocc=157 then occinc= 0.519; else if detocc=158 then occinc= 0.360; else if detocc=159 then occinc= 0.304; else if detocc=163 then occinc= 0.446; else if detocc=164 then occinc= 0.309; else if detocc=165 then occinc= 0.286; else if detocc=166 then occinc= 0.573; else if detocc=167 then occinc= 0.555; else if detocc=168 then occinc= 0.435; else if detocc=169 then occinc= 0.399; else if detocc=173 then occinc= 0.600; else if detocc=174 then occinc= 0.257; else if detocc=175 then occinc= 0.104; else if detocc=176 then occinc= 0.164; else if detocc=177 then occinc= 0.151; else if detocc=178 then occinc= 0.775; else if detocc=179 then occinc= 0.738; else if detocc=183 then occinc= 0.403; else if detocc=184 then occinc= 0.512; else if detocc=185 then occinc= 0.336; else if detocc=186 then occinc= 0.339; else if detocc=187 then occinc= 0.450; else if detocc=188 then occinc= 0.254; else if detocc=189 then occinc= 0.279; else if detocc=193 then occinc= 0.224; else if detocc=194 then occinc= 0.313; else if detocc=195 then occinc= 0.382; else if detocc=197 then occinc= 0.408; else if detocc=198 then occinc= 0.236; else if detocc=199 then occinc= 0.245; else if detocc=203 then occinc= 0.273; else if detocc=204 then occinc= 0.487; else if detocc=205 then occinc= 0.080; else if detocc=206 then occinc= 0.308; else if detocc=207 then occinc= 0.148; else if detocc=208 then occinc= 0.136; else if detocc=213 then occinc= 0.438; else if detocc=214 then occinc= 0.544; else if detocc=215 then occinc= 0.639; else if detocc=216 then occinc= 0.348; else if detocc=217 then occinc= 0.362; else if detocc=218 then occinc= 0.319; else if detocc=223 then occinc= 0.258; else if detocc=224 then occinc= 0.450; else if detocc=225 then occinc= 0.323; else if detocc=226 then occinc= 0.710; else if detocc=227 then occinc= 0.520; else if detocc=228 then occinc= 0.300; else if detocc=229 then occinc= 0.571; else if detocc=233 then occinc= 0.566; else if detocc=234 then occinc= 0.244; else if detocc=235 then occinc= 0.363; else if detocc=243 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occinc= 0.476; else if detocc=243 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.200; else if detocc=243 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occinc= 0.628; else if detocc=243 and cow>= 1 and cow<= 3 then occinc= 0.355; else if detocc=243 and detind>=500 and detind<=571 and cow>= 4 and cow<= 5 then occinc= 0.462; else if detocc=243 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occinc= 0.279; else if detocc=243 and detind>=700 and detind<=712 and cow>= 4 and cow<= 5 then occinc= 0.612; else if detocc=243 and cow>= 4 and cow<= 5 then occinc= 0.363; else if detocc=243 and detind>=500 and detind<=571 then occinc= 0.473; else if detocc=243 and detind>=580 and detind<=691 then occinc= 0.218; else if detocc=243 and detind>=700 and detind<=712 then occinc= 0.625; else if detocc=243 then occinc= 0.305; else if detocc=253 then occinc= 0.452; else if detocc=254 then occinc= 0.402; else if detocc=255 then occinc= 0.563; else if detocc=256 then occinc= 0.353; else if detocc=257 then occinc= 0.411; else if detocc=258 then occinc= 0.734; else if detocc=259 and cow>= 1 and cow<= 3 then occinc= 0.443; else if detocc=259 and cow>= 4 and cow<= 5 then occinc= 0.457; else if detocc=259 then occinc= 0.445; else if detocc=263 then occinc= 0.232; else if detocc=264 then occinc= 0.080; else if detocc=265 then occinc= 0.072; else if detocc=266 then occinc= 0.190; else if detocc=267 then occinc= 0.247; else if detocc=268 then occinc= 0.147; else if detocc=269 then occinc= 0.114; else if detocc=274 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.103; else if detocc=274 and cow>= 1 and cow<= 3 then occinc= 0.203; else if detocc=274 and cow>= 4 and cow<= 5 then occinc= 0.245; else if detocc=274 then occinc= 0.127; else if detocc=275 then occinc= 0.091; else if detocc=276 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.055; else if detocc=276 and cow>= 1 and cow<= 3 then occinc= 0.078; else if detocc=276 and cow>= 4 and cow<= 5 then occinc= 0.170; else if detocc=276 then occinc= 0.061; else if detocc=277 then occinc= 0.195; else if detocc=278 then occinc= 0.140; else if detocc=283 then occinc= 0.204; else if detocc=284 then occinc= 0.347; else if detocc=285 then occinc= 0.279; else if detocc=303 then occinc= 0.316; else if detocc=304 then occinc= 0.537; else if detocc=305 then occinc= 0.384; else if detocc=306 then occinc= 0.398; else if detocc=307 then occinc= 0.416; else if detocc=308 then occinc= 0.197; else if detocc=309 then occinc= 0.137; else if detocc=313 and detind>= 10 and detind<= 32 and cow>= 1 and cow<= 3 then occinc= 0.061; else if detocc=313 and detind>= 40 and detind<= 50 and cow>= 1 and cow<= 3 then occinc= 0.130; else if detocc=313 and detind>= 60 and detind<= 60 and cow>= 1 and cow<= 3 then occinc= 0.076; else if detocc=313 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occinc= 0.112; else if detocc=313 and detind>=400 and detind<=472 and cow>= 1 and cow<= 3 then occinc= 0.147; else if detocc=313 and detind>=500 and detind<=571 and cow>= 1 and cow<= 3 then occinc= 0.091; else if detocc=313 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.060; else if detocc=313 and detind>=700 and detind<=712 and cow>= 1 and cow<= 3 then occinc= 0.099; else if detocc=313 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occinc= 0.089; else if detocc=313 and detind>=761 and detind<=791 and cow>= 1 and cow<= 3 then occinc= 0.064; else if detocc=313 and detind>=800 and detind<=810 and cow>= 1 and cow<= 3 then occinc= 0.106; else if detocc=313 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occinc= 0.091; else if detocc=313 and detind>=900 and detind<=932 and cow>= 1 and cow<= 3 then occinc= 0.079; else if detocc=313 and cow>= 1 and cow<= 3 then occinc= 0.094; else if detocc=313 and cow>= 4 and cow<= 5 then occinc= 0.161; else if detocc=313 then occinc= 0.096; else if detocc=314 then occinc= 0.311; else if detocc=315 then occinc= 0.087; else if detocc=316 then occinc= 0.105; else if detocc=317 then occinc= 0.047; else if detocc=318 then occinc= 0.215; else if detocc=319 then occinc= 0.054; else if detocc=323 then occinc= 0.121; else if detocc=325 then occinc= 0.131; else if detocc=326 then occinc= 0.107; else if detocc=327 then occinc= 0.186; else if detocc=328 then occinc= 0.119; else if detocc=329 then occinc= 0.056; else if detocc=335 then occinc= 0.070; else if detocc=336 then occinc= 0.141; else if detocc=337 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.073; else if detocc=337 and detind>=812 and detind<=893 and cow>= 1 and cow<= 3 then occinc= 0.098; else if detocc=337 and cow>= 1 and cow<= 3 then occinc= 0.111; else if detocc=337 and detind>=580 and detind<=691 and cow>= 4 and cow<= 5 then occinc= 0.181; else if detocc=337 and detind>=812 and detind<=893 and cow>= 4 and cow<= 5 then occinc= 0.204; else if detocc=337 and cow>= 4 and cow<= 5 then occinc= 0.213; else if detocc=337 and detind>=580 and detind<=691 then occinc= 0.085; else if detocc=337 and detind>=812 and detind<=893 then occinc= 0.112; else if detocc=337 then occinc= 0.111; else if detocc=338 then occinc= 0.119; else if detocc=339 then occinc= 0.076; else if detocc=343 then occinc= 0.169; else if detocc=344 then occinc= 0.088; else if detocc=345 then occinc= 0.091; else if detocc=346 then occinc= 0.117; else if detocc=347 then occinc= 0.087; else if detocc=348 then occinc= 0.106; else if detocc=353 then occinc= 0.268; else if detocc=354 then occinc= 0.543; else if detocc=355 then occinc= 0.477; else if detocc=356 then occinc= 0.104; else if detocc=357 then occinc= 0.168; else if detocc=359 then occinc= 0.186; else if detocc=363 then occinc= 0.326; else if detocc=364 then occinc= 0.127; else if detocc=365 then occinc= 0.132; else if detocc=366 then occinc= 0.235; else if detocc=368 then occinc= 0.167; else if detocc=373 then occinc= 0.118; else if detocc=374 then occinc= 0.188; else if detocc=375 then occinc= 0.222; else if detocc=376 then occinc= 0.158; else if detocc=377 then occinc= 0.076; else if detocc=378 then occinc= 0.129; else if detocc=379 and detind>= 10 and detind<= 32 then occinc= 0.087; else if detocc=379 and detind>= 40 and detind<= 50 then occinc= 0.146; else if detocc=379 and detind>= 60 and detind<= 60 then occinc= 0.175; else if detocc=379 and detind>=100 and detind<=392 then occinc= 0.143; else if detocc=379 and detind>=400 and detind<=472 then occinc= 0.205; else if detocc=379 and detind>=500 and detind<=571 then occinc= 0.117; else if detocc=379 and detind>=580 and detind<=691 then occinc= 0.070; else if detocc=379 and detind>=700 and detind<=712 then occinc= 0.097; else if detocc=379 and detind>=721 and detind<=760 then occinc= 0.115; else if detocc=379 and detind>=761 and detind<=791 then occinc= 0.077; else if detocc=379 and detind>=800 and detind<=810 then occinc= 0.080; else if detocc=379 and detind>=812 and detind<=893 then occinc= 0.077; else if detocc=379 and detind>=900 and detind<=932 then occinc= 0.096; else if detocc=379 then occinc= 0.108; else if detocc=383 then occinc= 0.042; else if detocc=384 then occinc= 0.147; else if detocc=385 then occinc= 0.074; else if detocc=386 then occinc= 0.227; else if detocc=387 then occinc= 0.078; else if detocc=389 then occinc= 0.202; else if detocc=403 then occinc= 0.078; else if detocc=404 then occinc= 0.072; else if detocc=405 then occinc= 0.056; else if detocc=406 then occinc= 0.043; else if detocc=407 then occinc= 0.063; else if detocc=413 then occinc= 0.599; else if detocc=414 then occinc= 0.640; else if detocc=415 then occinc= 0.297; else if detocc=416 then occinc= 0.388; else if detocc=417 then occinc= 0.343; else if detocc=418 then occinc= 0.514; else if detocc=423 then occinc= 0.323; else if detocc=424 then occinc= 0.266; else if detocc=425 then occinc= 0.109; else if detocc=426 then occinc= 0.172; else if detocc=427 then occinc= 0.071; else if detocc=433 then occinc= 0.102; else if detocc=434 then occinc= 0.073; else if detocc=435 then occinc= 0.051; else if detocc=436 then occinc= 0.049; else if detocc=438 then occinc= 0.039; else if detocc=439 then occinc= 0.047; else if detocc=443 then occinc= 0.048; else if detocc=444 then occinc= 0.051; else if detocc=445 then occinc= 0.062; else if detocc=446 then occinc= 0.088; else if detocc=447 then occinc= 0.084; else if detocc=448 then occinc= 0.196; else if detocc=449 then occinc= 0.058; else if detocc=453 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occinc= 0.197; else if detocc=453 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.069; else if detocc=453 and cow>= 1 and cow<= 3 then occinc= 0.088; else if detocc=453 and cow>= 4 and cow<= 5 then occinc= 0.188; else if detocc=453 then occinc= 0.106; else if detocc=454 then occinc= 0.156; else if detocc=455 then occinc= 0.147; else if detocc=456 then occinc= 0.157; else if detocc=457 then occinc= 0.132; else if detocc=458 then occinc= 0.097; else if detocc=459 then occinc= 0.145; else if detocc=461 then occinc= 0.133; else if detocc=462 then occinc= 0.105; else if detocc=463 then occinc= 0.485; else if detocc=464 then occinc= 0.147; else if detocc=465 then occinc= 0.100; else if detocc=466 then occinc= 0.044; else if detocc=467 then occinc= 0.051; else if detocc=468 then occinc= 0.074; else if detocc=469 then occinc= 0.090; else if detocc=473 then occinc= 0.189; else if detocc=474 then occinc= 0.229; else if detocc=475 then occinc= 0.194; else if detocc=476 then occinc= 0.186; else if detocc=477 then occinc= 0.167; else if detocc=479 then occinc= 0.057; else if detocc=483 then occinc= 0.078; else if detocc=484 then occinc= 0.067; else if detocc=485 then occinc= 0.182; else if detocc=486 then occinc= 0.097; else if detocc=487 then occinc= 0.071; else if detocc=488 then occinc= 0.052; else if detocc=489 then occinc= 0.139; else if detocc=494 then occinc= 0.327; else if detocc=495 then occinc= 0.145; else if detocc=496 then occinc= 0.182; else if detocc=497 then occinc= 0.420; else if detocc=498 then occinc= 0.257; else if detocc=499 then occinc= 0.132; else if detocc=503 then occinc= 0.526; else if detocc=505 and detind>=580 and detind<=691 and cow>= 1 and cow<= 3 then occinc= 0.199; else if detocc=505 and detind>=721 and detind<=760 and cow>= 1 and cow<= 3 then occinc= 0.137; else if detocc=505 and cow>= 1 and cow<= 3 then occinc= 0.360; else if detocc=505 and cow>= 4 and cow<= 5 then occinc= 0.167; else if detocc=505 then occinc= 0.199; else if detocc=506 then occinc= 0.143; else if detocc=507 then occinc= 0.264; else if detocc=508 then occinc= 0.488; else if detocc=509 then occinc= 0.172; else if detocc=514 then occinc= 0.219; else if detocc=515 then occinc= 0.485; else if detocc=516 then occinc= 0.358; else if detocc=517 then occinc= 0.129; else if detocc=518 then occinc= 0.326; else if detocc=519 then occinc= 0.393; else if detocc=523 then occinc= 0.337; else if detocc=525 then occinc= 0.490; else if detocc=526 then occinc= 0.247; else if detocc=527 then occinc= 0.693; else if detocc=529 then occinc= 0.631; else if detocc=533 then occinc= 0.462; else if detocc=534 then occinc= 0.289; else if detocc=535 then occinc= 0.270; else if detocc=536 then occinc= 0.249; else if detocc=538 then occinc= 0.262; else if detocc=539 then occinc= 0.413; else if detocc=543 then occinc= 0.687; else if detocc=544 then occinc= 0.546; else if detocc=547 then occinc= 0.258; else if detocc=549 then occinc= 0.288; else if detocc=553 then occinc= 0.423; else if detocc=554 then occinc= 0.459; else if detocc=555 then occinc= 0.639; else if detocc=556 then occinc= 0.323; else if detocc=557 then occinc= 0.507; else if detocc=558 then occinc= 0.447; else if detocc=563 then occinc= 0.332; else if detocc=564 then occinc= 0.128; else if detocc=565 then occinc= 0.309; else if detocc=566 then occinc= 0.254; else if detocc=567 and cow>= 1 and cow<= 3 then occinc= 0.248; else if detocc=567 and cow>= 4 and cow<= 5 then occinc= 0.261; else if detocc=567 then occinc= 0.251; else if detocc=569 then occinc= 0.151; else if detocc=573 then occinc= 0.281; else if detocc=575 then occinc= 0.435; else if detocc=576 then occinc= 0.095; else if detocc=577 then occinc= 0.625; else if detocc=579 then occinc= 0.203; else if detocc=583 then occinc= 0.262; else if detocc=584 then occinc= 0.305; else if detocc=585 then occinc= 0.385; else if detocc=587 then occinc= 0.127; else if detocc=588 then occinc= 0.290; else if detocc=589 then occinc= 0.260; else if detocc=593 then occinc= 0.301; else if detocc=594 then occinc= 0.243; else if detocc=595 then occinc= 0.207; else if detocc=596 then occinc= 0.322; else if detocc=597 then occinc= 0.436; else if detocc=598 then occinc= 0.253; else if detocc=599 then occinc= 0.212; else if detocc=613 then occinc= 0.583; else if detocc=614 then occinc= 0.208; else if detocc=615 then occinc= 0.311; else if detocc=616 then occinc= 0.495; else if detocc=617 then occinc= 0.376; else if detocc=628 and cow>= 1 and cow<= 3 then occinc= 0.433; else if detocc=628 and cow>= 4 and cow<= 5 then occinc= 0.429; else if detocc=628 then occinc= 0.433; else if detocc=634 then occinc= 0.517; else if detocc=635 then occinc= 0.079; else if detocc=636 then occinc= 0.272; else if detocc=637 then occinc= 0.319; else if detocc=639 then occinc= 0.142; else if detocc=643 then occinc= 0.465; else if detocc=644 then occinc= 0.339; else if detocc=645 then occinc= 0.615; else if detocc=646 then occinc= 0.249; else if detocc=647 then occinc= 0.190; else if detocc=649 then occinc= 0.227; else if detocc=653 then occinc= 0.351; else if detocc=654 then occinc= 0.164; else if detocc=655 then occinc= 0.255; else if detocc=656 then occinc= 0.616; else if detocc=657 then occinc= 0.173; else if detocc=658 then occinc= 0.124; else if detocc=659 then occinc= 0.119; else if detocc=666 then occinc= 0.070; else if detocc=667 then occinc= 0.119; else if detocc=668 then occinc= 0.128; else if detocc=669 then occinc= 0.116; else if detocc=674 then occinc= 0.155; else if detocc=675 then occinc= 0.218; else if detocc=676 then occinc= 0.446; else if detocc=677 then occinc= 0.156; else if detocc=678 then occinc= 0.241; else if detocc=679 then occinc= 0.199; else if detocc=683 then occinc= 0.094; else if detocc=684 then occinc= 0.178; else if detocc=686 then occinc= 0.176; else if detocc=687 then occinc= 0.116; else if detocc=688 then occinc= 0.077; else if detocc=689 then occinc= 0.401; else if detocc=693 then occinc= 0.323; else if detocc=694 then occinc= 0.274; else if detocc=695 then occinc= 0.711; else if detocc=696 then occinc= 0.549; else if detocc=699 then occinc= 0.506; else if detocc=703 then occinc= 0.242; else if detocc=704 then occinc= 0.254; else if detocc=705 then occinc= 0.256; else if detocc=706 then occinc= 0.210; else if detocc=707 then occinc= 0.394; else if detocc=708 then occinc= 0.175; else if detocc=709 then occinc= 0.217; else if detocc=713 then occinc= 0.273; else if detocc=714 then occinc= 0.344; else if detocc=715 then occinc= 0.285; else if detocc=717 then occinc= 0.166; else if detocc=719 then occinc= 0.201; else if detocc=723 then occinc= 0.171; else if detocc=724 then occinc= 0.353; else if detocc=725 then occinc= 0.120; else if detocc=726 then occinc= 0.125; else if detocc=727 then occinc= 0.086; else if detocc=728 then occinc= 0.082; else if detocc=729 then occinc= 0.059; else if detocc=733 then occinc= 0.093; else if detocc=734 then occinc= 0.248; else if detocc=735 then occinc= 0.410; else if detocc=736 then occinc= 0.176; else if detocc=737 then occinc= 0.121; else if detocc=738 then occinc= 0.052; else if detocc=739 then occinc= 0.049; else if detocc=743 then occinc= 0.068; else if detocc=744 then occinc= 0.042; else if detocc=745 then occinc= 0.037; else if detocc=747 then occinc= 0.068; else if detocc=748 then occinc= 0.076; else if detocc=749 then occinc= 0.087; else if detocc=753 then occinc= 0.154; else if detocc=754 then occinc= 0.104; else if detocc=755 then occinc= 0.172; else if detocc=756 then occinc= 0.222; else if detocc=757 then occinc= 0.485; else if detocc=758 then occinc= 0.172; else if detocc=759 then occinc= 0.205; else if detocc=763 then occinc= 0.159; else if detocc=764 then occinc= 0.118; else if detocc=765 then occinc= 0.117; else if detocc=766 then occinc= 0.373; else if detocc=768 then occinc= 0.177; else if detocc=769 then occinc= 0.128; else if detocc=773 then occinc= 0.282; else if detocc=774 then occinc= 0.131; else if detocc=777 then occinc= 0.206; else if detocc=779 then occinc= 0.195; else if detocc=783 then occinc= 0.259; else if detocc=784 then occinc= 0.084; else if detocc=785 and detind>=100 and detind<=392 and cow>= 1 and cow<= 3 then occinc= 0.191; else if detocc=785 and cow>= 1 and cow<= 3 then occinc= 0.118; else if detocc=785 and cow>= 4 and cow<= 5 then occinc= 0.166; else if detocc=785 then occinc= 0.180; else if detocc=786 then occinc= 0.075; else if detocc=787 then occinc= 0.219; else if detocc=789 then occinc= 0.169; else if detocc=793 then occinc= 0.095; else if detocc=795 then occinc= 0.130; else if detocc=796 then occinc= 0.207; else if detocc=797 then occinc= 0.299; else if detocc=798 then occinc= 0.123; else if detocc=799 then occinc= 0.082; else if detocc=803 then occinc= 0.327; else if detocc=804 and detind>= 10 and detind<= 32 then occinc= 0.132; else if detocc=804 and detind>= 40 and detind<= 50 then occinc= 0.270; else if detocc=804 and detind>= 60 and detind<= 60 then occinc= 0.202; else if detocc=804 and detind>=100 and detind<=392 then occinc= 0.218; else if detocc=804 and detind>=400 and detind<=472 then occinc= 0.285; else if detocc=804 and detind>=500 and detind<=571 then occinc= 0.174; else if detocc=804 and detind>=580 and detind<=691 then occinc= 0.126; else if detocc=804 and detind>=700 and detind<=712 then occinc= 0.131; else if detocc=804 and detind>=721 and detind<=760 then occinc= 0.127; else if detocc=804 and detind>=761 and detind<=791 then occinc= 0.135; else if detocc=804 and detind>=800 and detind<=810 then occinc= 0.198; else if detocc=804 and detind>=812 and detind<=893 then occinc= 0.111; else if detocc=804 and detind>=900 and detind<=932 then occinc= 0.143; else if detocc=804 then occinc= 0.220; else if detocc=806 then occinc= 0.172; else if detocc=808 then occinc= 0.189; else if detocc=809 then occinc= 0.155; else if detocc=813 then occinc= 0.096; else if detocc=814 then occinc= 0.305; else if detocc=823 then occinc= 0.699; else if detocc=824 then occinc= 0.722; else if detocc=825 then occinc= 0.666; else if detocc=826 then occinc= 0.660; else if detocc=828 then occinc= 0.422; else if detocc=829 then occinc= 0.287; else if detocc=833 then occinc= 0.494; else if detocc=834 then occinc= 0.244; else if detocc=843 then occinc= 0.405; else if detocc=844 then occinc= 0.334; else if detocc=845 then occinc= 0.756; else if detocc=848 then occinc= 0.233; else if detocc=849 then occinc= 0.447; else if detocc=853 then occinc= 0.313; else if detocc=855 then occinc= 0.253; else if detocc=856 then occinc= 0.190; else if detocc=859 then occinc= 0.294; else if detocc=864 then occinc= 0.353; else if detocc=865 then occinc= 0.147; else if detocc=866 then occinc= 0.108; else if detocc=867 then occinc= 0.109; else if detocc=868 then occinc= 0.266; else if detocc=869 then occinc= 0.206; else if detocc=874 then occinc= 0.113; else if detocc=875 then occinc= 0.214; else if detocc=876 then occinc= 0.646; else if detocc=877 and detind>=580 and detind<=691 then occinc= 0.066; else if detocc=877 then occinc= 0.125; else if detocc=877 then occinc= 0.077; else if detocc=878 then occinc= 0.126; else if detocc=883 then occinc= 0.172; else if detocc=885 then occinc= 0.086; else if detocc=887 then occinc= 0.092; else if detocc=888 then occinc= 0.068; else if detocc=889 and detind>= 10 and detind<= 32 then occinc= 0.085; else if detocc=889 and detind>= 40 and detind<= 50 then occinc= 0.284; else if detocc=889 and detind>=100 and detind<=392 then occinc= 0.143; else if detocc=889 and detind>=400 and detind<=472 then occinc= 0.213; else if detocc=889 and detind>=500 and detind<=571 then occinc= 0.115; else if detocc=889 and detind>=580 and detind<=691 then occinc= 0.102; else if detocc=889 and detind>=700 and detind<=712 then occinc= 0.143; else if detocc=889 and detind>=721 and detind<=760 then occinc= 0.106; else if detocc=889 and detind>=761 and detind<=791 then occinc= 0.084; else if detocc=889 and detind>=800 and detind<=810 then occinc= 0.121; else if detocc=889 and detind>=812 and detind<=893 then occinc= 0.109; else if detocc=889 and detind>=900 and detind<=932 then occinc= 0.117; else if detocc=889 then occinc= 0.137; if 903<=detocc<=905 then occinc=-2; /*military codes*/ else if detocc<0 then occinc=detocc; /*missing values*/ if occinc>=0 then occinc = occinc*1000; return;