Data Cart

Your data extract

0 variables
0 samples
View Cart
EDUCUY
Educational attainment, Uruguay

Codes and Frequencies



Loading Frequency Data...

Can't find the category you are looking for? Try the Detailed codes

Explore how IPUMS created this variable

Download


      class Educuy : public Editor {

public:
  Educuy(VarPointer varInfo) : Editor(varInfo) {}
  void edit() {

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::uy1975a: {
      if (UY1975A_0433() == 99999 && UY1975A_0404() < 6)
        a = 0;
    } break;
    case dataset_id::uy1985a: {
      if (UY1985A_0432() == 0 && UY1985A_0403() < 6)
        a = 0;
    } break;
    case dataset_id::uy1996a: {
      if (UY1996A_0456() == 999 && UY1996A_0402() < 3)
        a = 0;
    } break;
    case dataset_id::uy2006a: {
      if (UY2006A_0463() == 0) {
        if (UY2006A_0450() == 1)
          a = 210;
        if (UY2006A_0450() == 2)
          a = 211;
        if (UY2006A_0450() == 3)
          a = 212;
        if (UY2006A_0450() == 4)
          a = 213;
        if (UY2006A_0450() == 5)
          a = 214;
        if (UY2006A_0451() == 1)
          a = 701;
        if (UY2006A_0451() == 2)
          a = 702;
        if (UY2006A_0451() == 3)
          a = 703;
        if (UY2006A_0451() == 4)
          a = 704;
        if (UY2006A_0451() == 5)
          a = 705;
        if (UY2006A_0451() == 6)
          a = 706;
        if (UY2006A_0451() == 7)
          a = 707;
        if (UY2006A_0451() == 8)
          a = 708;
        if (UY2006A_0451() == 98)
          a = 710;
        if (UY2006A_0452() == 1)
          a = 601;
        if (UY2006A_0452() == 2)
          a = 602;
        if (UY2006A_0452() == 3)
          a = 603;
        if (UY2006A_0452() == 4)
          a = 604;
        if (UY2006A_0452() == 5)
          a = 605;
        if (UY2006A_0452() == 6)
          a = 606;
        if (UY2006A_0452() == 98)
          a = 607;
        if (UY2006A_0453() == 1)
          a = 801;
        if (UY2006A_0453() == 2)
          a = 802;
        if (UY2006A_0453() == 3)
          a = 803;
        if (UY2006A_0453() == 4)
          a = 804;
        if (UY2006A_0453() == 5)
          a = 805;
        if (UY2006A_0453() == 6)
          a = 806;
        if (UY2006A_0453() == 8)
          a = 806;
        if (UY2006A_0453() == 98)
          a = 807;
        if (UY2006A_0454() == 1)
          a = 301;
        if (UY2006A_0454() == 2)
          a = 302;
        if (UY2006A_0454() == 3)
          a = 303;
        if (UY2006A_0454() == 4)
          a = 304;
        if (UY2006A_0454() == 5)
          a = 305;
        if (UY2006A_0454() == 6)
          a = 306;
        if (UY2006A_0454() == 7)
          a = 308;
        if (UY2006A_0454() == 9)
          a = 308;
        if (UY2006A_0454() == 98)
          a = 308;
        if (UY2006A_0455() == 1)
          a = 301;
        if (UY2006A_0455() == 2)
          a = 302;
        if (UY2006A_0455() == 3)
          a = 303;
        if (UY2006A_0455() == 4)
          a = 304;
        if (UY2006A_0455() == 5)
          a = 305;
        if (UY2006A_0455() == 6)
          a = 306;
        if (UY2006A_0456() == 1)
          a = 401;
        if (UY2006A_0456() == 2)
          a = 402;
        if (UY2006A_0456() == 3)
          a = 403;
        if (UY2006A_0457() == 1)
          a = 401;
        if (UY2006A_0457() == 2)
          a = 402;
        if (UY2006A_0457() == 3)
          a = 403;
        if (UY2006A_0458() == 4)
          a = 411;
        if (UY2006A_0458() == 5)
          a = 412;
        if (UY2006A_0458() == 6)
          a = 413;
        if (UY2006A_0459() == 1)
          a = 561;
        if (UY2006A_0459() == 2)
          a = 562;
        if (UY2006A_0459() == 3)
          a = 563;
        if (UY2006A_0459() == 4)
          a = 564;
        if (UY2006A_0459() == 5)
          a = 565;
        if (UY2006A_0459() == 6)
          a = 566;
        if (UY2006A_0460() == 4)
          a = 411;
        if (UY2006A_0460() == 5)
          a = 412;
        if (UY2006A_0460() == 6)
          a = 413;
        if (UY2006A_0461() == 1)
          a = 501;
        if (UY2006A_0461() == 2)
          a = 502;
        if (UY2006A_0461() == 3)
          a = 503;
        if (UY2006A_0461() == 4)
          a = 504;
        if (UY2006A_0461() == 5)
          a = 505;
        if (UY2006A_0465() == 1)
          a = 402;
        if (UY2006A_0465() == 2)
          a = 403;
        if (UY2006A_0465() == 3)
          a = 404;
        if (UY2006A_0465() == 4)
          a = 412;
        if (UY2006A_0465() == 5)
          a = 413;
        if (UY2006A_0465() == 6)
          a = 414;
        if (UY2006A_0467() == 1 && UY2006A_0469() == 1)
          a = 562;
        if (UY2006A_0467() == 2 && UY2006A_0469() == 1)
          a = 563;
        if (UY2006A_0467() == 3 && UY2006A_0469() == 1)
          a = 564;
        if (UY2006A_0467() == 4 && UY2006A_0469() == 1)
          a = 565;
        if (UY2006A_0467() == 5 && UY2006A_0469() == 1)
          a = 566;
        if (UY2006A_0467() == 6 && UY2006A_0469() == 1)
          a = 567;
        if (UY2006A_0467() == 1 && UY2006A_0469() == 2)
          a = 412;
        if (UY2006A_0467() == 2 && UY2006A_0469() == 2)
          a = 413;
        if (UY2006A_0467() == 3 && UY2006A_0469() == 2)
          a = 414;
        if (UY2006A_0467() == 4 && UY2006A_0469() == 2)
          a = 415;
        if (UY2006A_0467() == 5 && UY2006A_0469() == 2)
          a = 415;
        if (UY2006A_0467() == 6 && UY2006A_0469() == 2)
          a = 415;
        if (UY2006A_0467() == 1 && UY2006A_0469() >= 3)
          a = 402;
        if (UY2006A_0467() == 2 && UY2006A_0469() >= 3)
          a = 403;
        if (UY2006A_0467() == 3 && UY2006A_0469() >= 3)
          a = 404;
        if (UY2006A_0467() == 4 && UY2006A_0469() >= 3)
          a = 405;
        if (UY2006A_0467() == 5 && UY2006A_0469() >= 3)
          a = 406;
        if (UY2006A_0467() == 6 && UY2006A_0469() >= 3)
          a = 406;
        if (UY2006A_0470() == 1)
          a = 502;
        if (UY2006A_0470() == 2)
          a = 503;
        if (UY2006A_0470() == 3)
          a = 504;
        if (UY2006A_0470() == 4)
          a = 505;
        if (UY2006A_0470() == 5)
          a = 506;
        if (UY2006A_0472() == 1)
          a = 702;
        if (UY2006A_0472() == 2)
          a = 703;
        if (UY2006A_0472() == 3)
          a = 704;
        if (UY2006A_0472() == 4)
          a = 705;
        if (UY2006A_0472() == 5)
          a = 706;
        if (UY2006A_0472() == 6)
          a = 707;
        if (UY2006A_0472() == 7)
          a = 708;
        if (UY2006A_0472() == 8)
          a = 709;
        if (UY2006A_0472() == 9)
          a = 709;
        if (UY2006A_0472() == 10)
          a = 709;
        if (UY2006A_0472() == 11)
          a = 709;
        if (UY2006A_0472() == 98)
          a = 710;
        if (UY2006A_0474() == 1)
          a = 602;
        if (UY2006A_0474() == 2)
          a = 603;
        if (UY2006A_0474() == 3)
          a = 604;
        if (UY2006A_0474() == 4)
          a = 605;
        if (UY2006A_0474() == 5)
          a = 606;
        if (UY2006A_0474() == 6)
          a = 607;
        if (UY2006A_0474() == 7)
          a = 608;
        if (UY2006A_0474() == 8)
          a = 609;
        if (UY2006A_0476() == 1)
          a = 802;
        if (UY2006A_0476() == 2)
          a = 803;
        if (UY2006A_0476() == 3)
          a = 804;
        if (UY2006A_0476() == 4)
          a = 805;
        if (UY2006A_0476() == 5)
          a = 806;
        if (UY2006A_0476() == 6)
          a = 806;
        if (UY2006A_0476() == 7)
          a = 806;
        if (UY2006A_0476() == 8)
          a = 806;
        if (UY2006A_0476() == 98)
          a = 807;
      }
    } break;
    case dataset_id::uy1975x: {
      if (UY1975X_0433() == 99999 && UY1975X_0404() < 6)
        a = 0;
    } break;
    case dataset_id::uy1985x: {
      if (UY1985X_0432() == 0 && UY1985X_0403() < 6)
        a = 0;
    } break;
    case dataset_id::uy1996x: {
      if (UY1996X_0456() == 999 && UY1996X_0402() < 3)
        a = 0;
    } break;
    }

    setData(a);
  }
};