Data Cart

Your data extract

0 variables
0 samples
View Cart
EDUCTG
Educational attainment, Togo

Codes and Frequencies



An 'X' indicates the category is available for that sample

000NIU (not in universe)··X
100NoneXXX
110Preschool·XX
120Koranic school·X·
Primary
200Incomplete·X·
201Grade 1··X
202Grade 2··X
203Grade 3··X
204Grade 4··X
205Grade 5··X
206Grade 6XXX
209Grade not specified··X
First cycle of secondary, general
310Incomplete·X·
311Grade 1··X
312Grade 2··X
313Grade 3··X
314Grade 4·XX
319Grade not specified··X
Second cycle of secondary, general
320Incomplete·X·
321Grade 1··X
322Grade 2··X
323Grade 3XXX
329Grade not specified··X
Second cycle of secondary, professional or technical
340Professional or technical school·X·
350Short cycle professional training···
351Year 1··X
352Year 2··X
353Year 3··X
359Year unknown··X
360Long cycle professional training···
361Year 1··X
362Year 2··X
363Year 3··X
369Year not specified··X
370Professional school···
371Year 1··X
372Year 2··X
373Year 3··X
374Year 4+··X
379Year not specified··X
400Tertiary·X·
401Year 1··X
402Year 2··X
403Year 3··X
404Year 4··X
405Year 5··X
406Year 6··X
407Year 7··X
408Year 8··X
409Year not specified··X
500Other···
501Year 1··X
502Year 2··X
503Year 3··X
504Year 4··X
505Year 5··X
506Year 6··X
509Year not specified··X
999UnknownXXX

Explore how IPUMS created this variable

Download


      class Eductg : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::tg2010a: {
      if (TG2010A_0432() == 3 && TG2010A_0435() == 99)
        a = 100;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 11)
        a = 100;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 12)
        a = 201;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 13)
        a = 202;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 14)
        a = 203;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 15)
        a = 204;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 16)
        a = 205;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 21)
        a = 206;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 22)
        a = 311;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 23)
        a = 312;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 24)
        a = 313;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 31)
        a = 314;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 32)
        a = 321;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 33)
        a = 322;
      if (TG2010A_0432() == 1 && (TG2010A_0435() == 41 ||
                                  TG2010A_0435() == 51 || TG2010A_0435() == 71))
        a = 314;
      if (TG2010A_0432() == 1 && (TG2010A_0435() == 61 || TG2010A_0435() == 81))
        a = 323;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 42)
        a = 351;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 43)
        a = 352;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 44)
        a = 353;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 52)
        a = 361;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 53)
        a = 362;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 72)
        a = 371;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 73)
        a = 372;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 74)
        a = 373;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 62)
        a = 401;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 63)
        a = 402;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 64)
        a = 403;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 65)
        a = 404;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 66)
        a = 405;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 67)
        a = 406;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 68)
        a = 407;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 82)
        a = 501;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 83)
        a = 502;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 84)
        a = 503;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 85)
        a = 504;
      if (TG2010A_0432() == 1 && TG2010A_0435() == 86)
        a = 505;
    } break;
    }

    setData(a);
  }
};