Codes and Frequencies
Explore how IPUMS created this variable
class Yrschool : public Editor {
public:
Yrschool(VarPointer varInfo) : Editor(varInfo) {}
void edit() {
long a = getRecoded();
switch (dataSet) {
case dataset_id::br1980a: {
int64_t d = BR1980A_0423() * 10 + BR1980A_0424();
int64_t e = BR1980A_0420() * 10 + BR1980A_0421();
if (e > 0 && d > 0)
a = 98;
if (e > 0 && BR1980A_0422() > 0)
a = 98;
if (BR1980A_0422() > 0 && d > 0)
a = 98;
if (BR1980A_0407() < 5)
a = 99;
} break;
case dataset_id::br2000a: {
if (BR2000A_0415() <= 5)
a = 99;
} break;
case dataset_id::ke1989a: {
int64_t d = KE1989A_0412();
int64_t e = KE1989A_0411();
int64_t g = KE1989A_0403();
if (g >= 20 && e != 1) {
switch (d) {
case 11:
a = 8;
break;
case 12:
a = 9;
break;
case 13:
a = 10;
break;
case 14:
a = 11;
break;
};
}
} break;
case dataset_id::ke1999a: {
int64_t d = KE1999A_0417();
if (KE1999A_0403() >= 30 && KE1999A_0415() != 1) {
if (d == 11)
a = 8;
if (d == 12)
a = 9;
if (d == 13)
a = 10;
if (d == 14)
a = 11;
}
} break;
case dataset_id::vn1989a: {
if (VN1989A_0412() == 5)
a = 13;
if (VN1989A_0412() == 6)
a = 18;
if (VN1989A_0411() == 99 && VN1989A_0410() == 3)
a = 0;
if (VN1989A_0411() >= 98 && VN1989A_0431() < 5)
a = 99;
} break;
case dataset_id::vn1999a: {
int64_t d = VN1999A_0418();
int64_t e = VN1999A_0420();
int64_t f = VN1999A_0422();
if (e == 1 && d == 1)
a = 0;
if (e == 2 && d == 1)
a = 1;
if (e == 3 && d == 1)
a = 2;
if (e == 4 && d == 1)
a = 3;
if (e == 5 && d == 1)
a = 4;
if (e == 6 && d == 1)
a = 5;
if (e == 7 && d == 1)
a = 6;
if (e == 8 && d == 1)
a = 7;
if (e == 9 && d == 1)
a = 8;
if (e == 10 && d == 1)
a = 9;
if (e == 11 && d == 1)
a = 10;
if (e == 12 && d == 1)
a = 11;
if (d == 3)
a = 0;
if (d == 8)
a = 98;
if (f == 2)
a = 92;
if (f == 3)
a = 14;
if (f == 4)
a = 16;
if (f == 5 || f == 6)
a = 18;
if (VN1999A_0406() < 5 && VN1999A_0420() == 99)
a = 99;
} break;
case dataset_id::vn2009a: {
if (VN2009A_0409() == 9999 && VN2009A_0403() <= 5)
a = 0;
if (VN2009A_0406() == 1) {
if (VN2009A_0409() == 101)
a = 0;
if (VN2009A_0409() == 102)
a = 1;
if (VN2009A_0409() == 103)
a = 2;
if (VN2009A_0409() == 104)
a = 3;
if (VN2009A_0409() == 105)
a = 4;
if (VN2009A_0409() == 206)
a = 5;
if (VN2009A_0409() == 207)
a = 6;
if (VN2009A_0409() == 208)
a = 7;
if (VN2009A_0409() == 209)
a = 8;
if (VN2009A_0409() == 410)
a = 9;
if (VN2009A_0409() == 411)
a = 10;
if (VN2009A_0409() == 412)
a = 11;
if (VN2009A_0409() == 501)
a = 9;
if (VN2009A_0409() == 502)
a = 10;
if (VN2009A_0409() == 503)
a = 11;
if (VN2009A_0409() == 504)
a = 12;
if (VN2009A_0409() == 601)
a = 9;
if (VN2009A_0409() == 602)
a = 10;
if (VN2009A_0409() == 603)
a = 11;
if (VN2009A_0409() == 604)
a = 12;
if (VN2009A_0409() == 701)
a = 12;
if (VN2009A_0409() == 702)
a = 13;
if (VN2009A_0409() == 703)
a = 14;
if (VN2009A_0409() == 704)
a = 15;
if (VN2009A_0409() == 801)
a = 12;
if (VN2009A_0409() == 802)
a = 13;
if (VN2009A_0409() == 803)
a = 14;
if (VN2009A_0409() == 804)
a = 15;
if (VN2009A_0409() == 901)
a = 12;
if (VN2009A_0409() == 902)
a = 13;
if (VN2009A_0409() == 903)
a = 14;
if (VN2009A_0409() == 904)
a = 15;
if (VN2009A_0409() == 905)
a = 16;
if (VN2009A_0409() == 906)
a = 17;
}
} break;
case dataset_id::kh1998a: {
if (KH1998A_0413() == 99 && KH1998A_0403() >= 5)
a = 0;
} break;
case dataset_id::ar1970a: {
if (AR1970A_0413() == 0 && AR1970A_0403() >= 5)
a = 0;
} break;
case dataset_id::ar1980a: {
if (AR1980A_0410() == 0 && AR1980A_0412() == 99 && AR1980A_0402() >= 5)
a = 0;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR1980A_0410() == 2)
a = 91;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR1980A_0410() >= 3 && AR1980A_0410() <= 7)
a = 93;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR1980A_0410() >= 8 && AR1980A_0410() <= 9)
a = 94;
} break;
case dataset_id::ar1991a: {
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18)
a = 98;
} break;
case dataset_id::ps1997a: {
if (PS1997A_0410() == 99 && PS1997A_0403() >= 2)
a = 0;
} break;
case dataset_id::rw2002a: {
if (RW2002A_0419() == 99 && RW2002A_0418() == 2)
a = 0;
} break;
case dataset_id::gh2000a: {
if (GH2000A_0403() < 30) {
if (GH2000A_0419() == 40 || GH2000A_0419() == 50)
a = 9;
if (GH2000A_0419() == 41 || GH2000A_0419() == 51)
a = 10;
if (GH2000A_0419() == 42 || GH2000A_0419() == 52)
a = 11;
if (GH2000A_0419() == 43 || GH2000A_0419() == 53 ||
GH2000A_0419() == 60 || GH2000A_0419() == 70)
a = 12;
if (GH2000A_0419() == 61 || GH2000A_0419() == 71)
a = 13;
if (GH2000A_0419() == 62 || GH2000A_0419() == 72)
a = 14;
if (GH2000A_0419() == 63 || GH2000A_0419() == 73)
a = 15;
if (GH2000A_0419() == 74)
a = 16;
if (GH2000A_0419() == 75)
a = 17;
if (GH2000A_0419() >= 74 && GH2000A_0419() <= 79)
a = 18;
}
} break;
case dataset_id::bo1992a: {
if (BO1992A_0427() == 99 && BO1992A_0428() == 9 && BO1992A_0404() >= 6)
a = 0;
} break;
case dataset_id::bo2001a: {
if (BO2001A_0443() == 15 || BO2001A_0443() == 17) {
if (BO2001A_0442() == 221)
a = 13;
if (BO2001A_0442() == 222)
a = 14;
if (BO2001A_0442() == 223)
a = 15;
if (BO2001A_0442() == 224)
a = 16;
}
} break;
case dataset_id::np2001a: {
if (NP2001A_0421() == 99 && NP2001A_0402() >= 6)
a = 0;
} break;
case dataset_id::pe1993a: {
if (PE1993A_0427() == 999 && PE1993A_0443() >= 5)
a = 0;
} break;
case dataset_id::tz2002a: {
if (TZ2002A_0416() == 99 && TZ2002A_0403() >= 5)
a = 0;
} break;
case dataset_id::mx1995a: {
if (MX1995A_0447() == 99 && (MX1995A_0417() == 2 || MX1995A_0418() == 2))
a = 0;
if (MX1995A_0447() == 99 && (MX1995A_0417() == 9 || MX1995A_0418() == 9))
a = 98;
} break;
case dataset_id::jm1982a: {
if (JM1982A_0403() <= 3)
a = 99;
} break;
case dataset_id::jm1991a: {
if (JM1991A_0429() == 1)
a = 0;
} break;
case dataset_id::mw2008a: {
if (MW2008A_0436() == 99 && MW2008A_0435() == 0)
a = 0;
} break;
case dataset_id::sl2004a: {
if (SL2004A_0417() == 99 && SL2004A_0416() == 1)
a = 0;
} break;
case dataset_id::sv1992a: {
if (SV1992A_0447() == 99 && SV1992A_0425() >= 5)
a = 0;
} break;
case dataset_id::sv2007a: {
if (SV2007A_0431() == 99 && SV2007A_0403() >= 5)
a = 0;
} break;
case dataset_id::id1976a: {
if (ID1976A_0412() == 21 && ID1976A_0409() == 1)
a = 0;
if (ID1976A_0412() == 22 && ID1976A_0409() == 1)
a = 1;
if (ID1976A_0412() == 23 && ID1976A_0409() == 1)
a = 2;
if (ID1976A_0412() == 24 && ID1976A_0409() == 1)
a = 3;
if (ID1976A_0412() == 25 && ID1976A_0409() == 1)
a = 4;
if (ID1976A_0412() == 26 && ID1976A_0409() == 1)
a = 5;
if ((ID1976A_0412() == 31 || ID1976A_0412() == 41) && ID1976A_0409() == 1)
a = 6;
if ((ID1976A_0412() == 32 || ID1976A_0412() == 42) && ID1976A_0409() == 1)
a = 7;
if ((ID1976A_0412() == 33 || ID1976A_0412() == 43) && ID1976A_0409() == 1)
a = 8;
if ((ID1976A_0412() == 51 || ID1976A_0412() == 61) && ID1976A_0409() == 1)
a = 9;
if ((ID1976A_0412() == 52 || ID1976A_0412() == 62) && ID1976A_0409() == 1)
a = 10;
if ((ID1976A_0412() == 53 || ID1976A_0412() == 63) && ID1976A_0409() == 1)
a = 11;
if ((ID1976A_0412() == 71 || ID1976A_0412() == 81) && ID1976A_0409() == 1)
a = 12;
if ((ID1976A_0412() == 72 || ID1976A_0412() == 82) && ID1976A_0409() == 1)
a = 13;
if ((ID1976A_0412() == 73 || ID1976A_0412() == 74 ||
ID1976A_0412() == 83) &&
ID1976A_0409() == 1)
a = 14;
if ((ID1976A_0412() == 84 || ID1976A_0412() == 85 ||
ID1976A_0412() == 86) &&
ID1976A_0409() == 1)
a = 15;
} break;
case dataset_id::id1980a: {
if ((ID1980A_0421() == 21 || ID1980A_0421() == 31) && ID1980A_0418() == 2)
a = 0;
if ((ID1980A_0421() == 22 || ID1980A_0421() == 32) && ID1980A_0418() == 2)
a = 1;
if ((ID1980A_0421() == 23 || ID1980A_0421() == 33) && ID1980A_0418() == 2)
a = 2;
if (ID1980A_0421() == 34 && ID1980A_0418() == 2)
a = 3;
if (ID1980A_0421() == 35 && ID1980A_0418() == 2)
a = 4;
if (ID1980A_0421() == 36 && ID1980A_0418() == 2)
a = 5;
if ((ID1980A_0421() == 41 || ID1980A_0421() == 61) && ID1980A_0418() == 2)
a = 6;
if ((ID1980A_0421() == 42 || ID1980A_0421() == 62) && ID1980A_0418() == 2)
a = 7;
if ((ID1980A_0421() == 43 || ID1980A_0421() == 63) && ID1980A_0418() == 2)
a = 8;
if ((ID1980A_0421() == 51 || ID1980A_0421() == 71) && ID1980A_0418() == 2)
a = 9;
if ((ID1980A_0421() == 52 || ID1980A_0421() == 72) && ID1980A_0418() == 2)
a = 10;
if ((ID1980A_0421() == 53 || ID1980A_0421() == 73) && ID1980A_0418() == 2)
a = 11;
if ((ID1980A_0421() == 81 || ID1980A_0421() == 91) && ID1980A_0418() == 2)
a = 12;
if ((ID1980A_0421() == 82 || ID1980A_0421() == 92) && ID1980A_0418() == 2)
a = 13;
if ((ID1980A_0421() == 83 || ID1980A_0421() == 84 ||
ID1980A_0421() == 93) &&
ID1980A_0418() == 2)
a = 14;
if ((ID1980A_0421() == 94 || ID1980A_0421() == 95 ||
ID1980A_0421() == 96 || ID1980A_0421() == 97) &&
ID1980A_0418() == 2)
a = 15;
} break;
case dataset_id::id1985a: {
if (ID1985A_0421() == 0 && ID1985A_0403() >= 5 && ID1985A_0403() <= 99)
a = 0;
if (ID1985A_0421() == 11 && ID1985A_0418() == 2)
a = 0;
if (ID1985A_0421() == 12 && ID1985A_0418() == 2)
a = 1;
if (ID1985A_0421() == 13 && ID1985A_0418() == 2)
a = 2;
if (ID1985A_0421() == 14 && ID1985A_0418() == 2)
a = 3;
if (ID1985A_0421() == 15 && ID1985A_0418() == 2)
a = 4;
if (ID1985A_0421() == 16 && ID1985A_0418() == 2)
a = 5;
if ((ID1985A_0421() == 21 || ID1985A_0421() == 31) && ID1985A_0418() == 2)
a = 6;
if ((ID1985A_0421() == 22 || ID1985A_0421() == 32) && ID1985A_0418() == 2)
a = 7;
if ((ID1985A_0421() == 23 || ID1985A_0421() == 33) && ID1985A_0418() == 2)
a = 8;
if ((ID1985A_0421() == 41 || ID1985A_0421() == 51) && ID1985A_0418() == 2)
a = 9;
if ((ID1985A_0421() == 42 || ID1985A_0421() == 52) && ID1985A_0418() == 2)
a = 10;
if ((ID1985A_0421() == 43 || ID1985A_0421() == 53) && ID1985A_0418() == 2)
a = 11;
if ((ID1985A_0421() == 61 || ID1985A_0421() == 71 ||
ID1985A_0421() == 81) &&
ID1985A_0418() == 2)
a = 12;
if ((ID1985A_0421() == 62 || ID1985A_0421() == 72 ||
ID1985A_0421() == 82) &&
ID1985A_0418() == 2)
a = 13;
if ((ID1985A_0421() == 73 || ID1985A_0421() == 74 ||
ID1985A_0421() == 83) &&
ID1985A_0418() == 2)
a = 14;
if ((ID1985A_0421() == 84 || ID1985A_0421() == 85) && ID1985A_0418() == 2)
a = 15;
} break;
case dataset_id::id1990a: {
if (ID1990A_0420() == 0 && ID1990A_0406() >= 5 && ID1990A_0406() <= 99)
a = 0;
if (ID1990A_0420() == 11 && ID1990A_0417() == 2)
a = 0;
if (ID1990A_0420() == 12 && ID1990A_0417() == 2)
a = 1;
if (ID1990A_0420() == 13 && ID1990A_0417() == 2)
a = 2;
if (ID1990A_0420() == 14 && ID1990A_0417() == 2)
a = 3;
if (ID1990A_0420() == 15 && ID1990A_0417() == 2)
a = 4;
if (ID1990A_0420() == 16 && ID1990A_0417() == 2)
a = 5;
if ((ID1990A_0420() == 21 || ID1990A_0420() == 41) && ID1990A_0417() == 2)
a = 6;
if ((ID1990A_0420() == 22 || ID1990A_0420() == 42) && ID1990A_0417() == 2)
a = 7;
if ((ID1990A_0420() == 23 || ID1990A_0420() == 43) && ID1990A_0417() == 2)
a = 8;
if ((ID1990A_0420() == 31 || ID1990A_0420() == 51) && ID1990A_0417() == 2)
a = 9;
if ((ID1990A_0420() == 32 || ID1990A_0420() == 52) && ID1990A_0417() == 2)
a = 10;
if ((ID1990A_0420() == 33 || ID1990A_0420() == 53) && ID1990A_0417() == 2)
a = 11;
if ((ID1990A_0420() == 61 || ID1990A_0420() == 71 ||
ID1990A_0420() == 81) &&
ID1990A_0417() == 2)
a = 12;
if ((ID1990A_0420() == 62 || ID1990A_0420() == 72 ||
ID1990A_0420() == 82) &&
ID1990A_0417() == 2)
a = 13;
if ((ID1990A_0420() == 73 || ID1990A_0420() == 74 ||
ID1990A_0420() == 83) &&
ID1990A_0417() == 2)
a = 14;
if ((ID1990A_0420() == 84 || ID1990A_0420() == 85) && ID1990A_0417() == 2)
a = 15;
} break;
case dataset_id::id1995a: {
if (ID1995A_0430() == 99 && ID1995A_0403() >= 5)
a = 0;
if (ID1995A_0430() == 11 && ID1995A_0427() == 2)
a = 0;
if (ID1995A_0430() == 12 && ID1995A_0427() == 2)
a = 1;
if (ID1995A_0430() == 13 && ID1995A_0427() == 2)
a = 2;
if (ID1995A_0430() == 14 && ID1995A_0427() == 2)
a = 3;
if (ID1995A_0430() == 15 && ID1995A_0427() == 2)
a = 4;
if (ID1995A_0430() == 16 && ID1995A_0427() == 2)
a = 5;
if ((ID1995A_0430() == 21 || ID1995A_0430() == 41) && ID1995A_0427() == 2)
a = 6;
if ((ID1995A_0430() == 22 || ID1995A_0430() == 42) && ID1995A_0427() == 2)
a = 7;
if ((ID1995A_0430() == 23 || ID1995A_0430() == 43) && ID1995A_0427() == 2)
a = 8;
if ((ID1995A_0430() == 31 || ID1995A_0430() == 51) && ID1995A_0427() == 2)
a = 9;
if ((ID1995A_0430() == 32 || ID1995A_0430() == 52) && ID1995A_0427() == 2)
a = 10;
if ((ID1995A_0430() == 33 || ID1995A_0430() == 53) && ID1995A_0427() == 2)
a = 11;
if ((ID1995A_0430() == 61 || ID1995A_0430() == 71 ||
ID1995A_0430() == 81) &&
ID1995A_0427() == 2)
a = 12;
if ((ID1995A_0430() == 62 || ID1995A_0430() == 72 ||
ID1995A_0430() == 82) &&
ID1995A_0427() == 2)
a = 13;
if ((ID1995A_0430() == 73 || ID1995A_0430() == 83) && ID1995A_0427() == 2)
a = 14;
if ((ID1995A_0430() == 84 || ID1995A_0430() == 85) && ID1995A_0427() == 2)
a = 15;
} break;
case dataset_id::id2005a: {
if (ID2005A_0503() == 99 && ID2005A_0403() >= 5)
a = 0;
if (ID2005A_0430() == 11 && ID2005A_0420() == 2)
a = 0;
if (ID2005A_0430() == 12 && ID2005A_0420() == 2)
a = 1;
if (ID2005A_0430() == 13 && ID2005A_0420() == 2)
a = 2;
if (ID2005A_0430() == 14 && ID2005A_0420() == 2)
a = 3;
if (ID2005A_0430() == 15 && ID2005A_0420() == 2)
a = 4;
if (ID2005A_0430() == 16 && ID2005A_0420() == 2)
a = 5;
if (ID2005A_0430() == 21 && ID2005A_0420() == 2)
a = 6;
if (ID2005A_0430() == 22 && ID2005A_0420() == 2)
a = 7;
if (ID2005A_0430() == 23 && ID2005A_0420() == 2)
a = 8;
if ((ID2005A_0430() == 31 || ID2005A_0430() == 41) && ID2005A_0420() == 2)
a = 9;
if ((ID2005A_0430() == 32 || ID2005A_0430() == 42) && ID2005A_0420() == 2)
a = 10;
if ((ID2005A_0430() == 33 || ID2005A_0430() == 43) && ID2005A_0420() == 2)
a = 11;
if ((ID2005A_0430() == 51 || ID2005A_0430() == 61 ||
ID2005A_0430() == 71) &&
ID2005A_0420() == 2)
a = 12;
if ((ID2005A_0430() == 52 || ID2005A_0430() == 62 ||
ID2005A_0430() == 72) &&
ID2005A_0420() == 2)
a = 13;
if ((ID2005A_0430() == 63 || ID2005A_0430() == 73) && ID2005A_0420() == 2)
a = 14;
if ((ID2005A_0430() == 74 || ID2005A_0430() == 75) && ID2005A_0420() == 2)
a = 15;
} break;
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::uy2006a: {
if (UY2006A_0463() == 0 && UY2006A_0451() == 1)
a = 12;
if (UY2006A_0463() == 0 && UY2006A_0451() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0451() == 3)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0451() == 4)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0451() == 5)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0451() == 6)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0451() == 7)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0451() == 8)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0451() == 98)
a = 94;
if (UY2006A_0463() == 0 && UY2006A_0452() == 1)
a = 12;
if (UY2006A_0463() == 0 && UY2006A_0452() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0452() == 3)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0452() == 4)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0452() == 5)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0452() == 6)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0452() == 98)
a = 94;
if (UY2006A_0463() == 0 && UY2006A_0453() >= 1 && UY2006A_0453() <= 8)
a = 18;
if (UY2006A_0463() == 0 && UY2006A_0453() == 98)
a = 94;
if (UY2006A_0463() == 0 && UY2006A_0454() == 2)
a = 1;
if (UY2006A_0463() == 0 && UY2006A_0454() == 3)
a = 2;
if (UY2006A_0463() == 0 && UY2006A_0454() == 4)
a = 3;
if (UY2006A_0463() == 0 && UY2006A_0454() == 5)
a = 4;
if (UY2006A_0463() == 0 && UY2006A_0454() == 6)
a = 5;
if (UY2006A_0463() == 0 && UY2006A_0454() == 7)
a = 91;
if (UY2006A_0463() == 0 && UY2006A_0454() == 9)
a = 91;
if (UY2006A_0463() == 0 && UY2006A_0454() == 98)
a = 91;
if (UY2006A_0463() == 0 && UY2006A_0455() == 2)
a = 1;
if (UY2006A_0463() == 0 && UY2006A_0455() == 3)
a = 2;
if (UY2006A_0463() == 0 && UY2006A_0455() == 4)
a = 3;
if (UY2006A_0463() == 0 && UY2006A_0455() == 5)
a = 4;
if (UY2006A_0463() == 0 && UY2006A_0455() == 6)
a = 5;
if (UY2006A_0463() == 0 && UY2006A_0456() == 1)
a = 6;
if (UY2006A_0463() == 0 && UY2006A_0456() == 2)
a = 7;
if (UY2006A_0463() == 0 && UY2006A_0456() == 3)
a = 8;
if (UY2006A_0463() == 0 && UY2006A_0457() == 1)
a = 6;
if (UY2006A_0463() == 0 && UY2006A_0457() == 2)
a = 7;
if (UY2006A_0463() == 0 && UY2006A_0457() == 3)
a = 8;
if (UY2006A_0463() == 0 && UY2006A_0458() == 4)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0458() == 5)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0458() == 6)
a = 11;
if (UY2006A_0463() == 0 && UY2006A_0459() == 1)
a = 6;
if (UY2006A_0463() == 0 && UY2006A_0459() == 2)
a = 7;
if (UY2006A_0463() == 0 && UY2006A_0459() == 3)
a = 8;
if (UY2006A_0463() == 0 && UY2006A_0459() == 4)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0459() == 5)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0459() == 6)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0460() == 4)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0460() == 5)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0460() == 6)
a = 11;
if (UY2006A_0463() == 0 && UY2006A_0461() == 1)
a = 12;
if (UY2006A_0463() == 0 && UY2006A_0461() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0461() == 3)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0461() == 4)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0461() == 5)
a = 15;
if (UY2006A_0463() == 1)
a = 1;
if (UY2006A_0463() == 2)
a = 2;
if (UY2006A_0463() == 3)
a = 3;
if (UY2006A_0463() == 4)
a = 4;
if (UY2006A_0463() == 5)
a = 5;
if (UY2006A_0463() == 6)
a = 6;
if (UY2006A_0463() == 0 && UY2006A_0465() == 1)
a = 7;
if (UY2006A_0463() == 0 && UY2006A_0465() == 2)
a = 8;
if (UY2006A_0463() == 0 && UY2006A_0465() == 3)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0465() == 4)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0465() == 5)
a = 11;
if (UY2006A_0463() == 0 && UY2006A_0465() == 6)
a = 12;
if (UY2006A_0463() == 0 && UY2006A_0467() == 1 && UY2006A_0469() == 1)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0467() == 2 && UY2006A_0469() == 1)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0467() == 3 && UY2006A_0469() == 1)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0467() == 4 && UY2006A_0469() == 1)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0467() == 5 && UY2006A_0469() == 1)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0467() == 6 && UY2006A_0469() == 1)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0467() == 1 && UY2006A_0469() == 2)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0467() == 2 && UY2006A_0469() == 2)
a = 11;
if (UY2006A_0463() == 0 && UY2006A_0467() == 3 && UY2006A_0469() == 2)
a = 12;
if (UY2006A_0463() == 0 && UY2006A_0467() == 4 && UY2006A_0469() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0467() == 5 && UY2006A_0469() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0467() == 6 && UY2006A_0469() == 2)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0467() == 1 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 7;
if (UY2006A_0463() == 0 && UY2006A_0467() == 2 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 8;
if (UY2006A_0463() == 0 && UY2006A_0467() == 3 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 9;
if (UY2006A_0463() == 0 && UY2006A_0467() == 4 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0467() == 5 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0467() == 6 && UY2006A_0469() >= 3 &&
UY2006A_0469() <= 4)
a = 10;
if (UY2006A_0463() == 0 && UY2006A_0470() == 1)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0470() == 2)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0470() == 3)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0470() == 4)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0470() == 5)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0472() == 1)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0472() == 2)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0472() == 3)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0472() == 4)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0472() == 5)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 6)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 7)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 8)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 9)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 10)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 11)
a = 17;
if (UY2006A_0463() == 0 && UY2006A_0472() == 98)
a = 94;
if (UY2006A_0463() == 0 && UY2006A_0474() == 1)
a = 13;
if (UY2006A_0463() == 0 && UY2006A_0474() == 2)
a = 14;
if (UY2006A_0463() == 0 && UY2006A_0474() == 3)
a = 15;
if (UY2006A_0463() == 0 && UY2006A_0474() == 4)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0474() == 5)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0474() == 6)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0474() == 7)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0474() == 8)
a = 16;
if (UY2006A_0463() == 0 && UY2006A_0476() >= 1 && UY2006A_0476() <= 8)
a = 18;
if (UY2006A_0463() == 0 && UY2006A_0476() == 98)
a = 94;
} break;
case dataset_id::ar2010a: {
if (AR2010A_0402() < 3)
a = 99;
if (AR2010A_0410() == 99 && AR2010A_0402() >= 3)
a = 0;
if (AR2010A_0410() == 2 && AR2010A_0411() >= 7 && AR2010A_0411() <= 9 &&
AR2010A_0412() == 1)
a = 6;
if (AR2010A_0410() == 4 && AR2010A_0411() == 0 && AR2010A_0412() == 1)
a = 6;
if (AR2010A_0410() == 4 && AR2010A_0411() == 1 && AR2010A_0412() == 1)
a = 7;
if (AR2010A_0410() == 4 && AR2010A_0411() == 2 && AR2010A_0412() == 1)
a = 8;
if (AR2010A_0410() == 4 && AR2010A_0411() == 3 && AR2010A_0412() == 1)
a = 9;
if (AR2010A_0410() == 4 && AR2010A_0411() == 4 && AR2010A_0412() == 1)
a = 10;
if (AR2010A_0410() == 4 && AR2010A_0411() == 5 && AR2010A_0412() == 1)
a = 11;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR2010A_0410() >= 2 && AR2010A_0410() <= 3)
a = 91;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR2010A_0410() >= 4 && AR2010A_0410() <= 5)
a = 93;
if (((AGE() - YRSCHOOL() <= 2) || (AGE() <= YRSCHOOL())) &&
YRSCHOOL() <= 18 && AR2010A_0410() >= 6 && AR2010A_0410() <= 8)
a = 94;
} break;
case dataset_id::cm1987a: {
if (CM1987A_0414() == 999 && CM1987A_0412() == 1 && CM1987A_0404() >= 3 &&
CM1987A_0404() < 99)
a = 0;
} break;
case dataset_id::cm2005a: {
if (CM2005A_0436() == 999 && CM2005A_0432() == 5 && CM2005A_0469() >= 3)
a = 0;
if (CM2005A_0433() >= 1 && CM2005A_0433() <= 4) {
if (CM2005A_0436() == 31)
a = 0;
if (CM2005A_0436() == 32)
a = 1;
if (CM2005A_0436() == 33)
a = 2;
if (CM2005A_0436() == 34)
a = 3;
if (CM2005A_0436() == 35)
a = 4;
if (CM2005A_0436() == 36)
a = 5;
if (CM2005A_0436() == 37 || CM2005A_0436() == 41 ||
CM2005A_0436() == 51 || CM2005A_0436() == 61 ||
CM2005A_0436() == 71)
a = 6;
if (CM2005A_0436() == 42 || CM2005A_0436() == 52 ||
CM2005A_0436() == 62 || CM2005A_0436() == 72)
a = 7;
if (CM2005A_0436() == 43 || CM2005A_0436() == 53 ||
CM2005A_0436() == 63 || CM2005A_0436() == 73)
a = 8;
if (CM2005A_0436() == 44 || CM2005A_0436() == 54 ||
CM2005A_0436() == 74)
a = 9;
if (CM2005A_0436() == 45 || CM2005A_0436() == 81 ||
CM2005A_0436() == 91 || CM2005A_0436() == 101)
a = 10;
if (CM2005A_0436() == 82 || CM2005A_0436() == 92 ||
CM2005A_0436() == 102)
a = 11;
if (CM2005A_0436() == 83 || CM2005A_0436() == 93 ||
CM2005A_0436() == 103)
a = 12;
if (CM2005A_0436() == 111 || CM2005A_0436() == 121)
a = 13;
if (CM2005A_0436() == 112 || CM2005A_0436() == 122)
a = 14;
if (CM2005A_0436() == 113 || CM2005A_0436() == 123)
a = 15;
if (CM2005A_0436() == 124)
a = 16;
if (CM2005A_0436() == 125)
a = 17;
}
} break;
case dataset_id::ec2010a: {
if (EC2010A_0460() == 1 && EC2010A_0405() >= 5) {
if (EC2010A_0464() == 401 || EC2010A_0464() == 602)
a = 0;
if (EC2010A_0464() == 402 || EC2010A_0464() == 603)
a = 1;
if (EC2010A_0464() == 403 || EC2010A_0464() == 604)
a = 2;
if (EC2010A_0464() == 404 || EC2010A_0464() == 605)
a = 3;
if (EC2010A_0464() == 405 || EC2010A_0464() == 606)
a = 4;
if (EC2010A_0464() == 406 || EC2010A_0464() == 607)
a = 5;
if (EC2010A_0464() == 501 || EC2010A_0464() == 608)
a = 6;
if (EC2010A_0464() == 502 || EC2010A_0464() == 608)
a = 7;
if (EC2010A_0464() == 503 || EC2010A_0464() == 610)
a = 8;
if (EC2010A_0464() == 504 || EC2010A_0464() == 701)
a = 9;
if (EC2010A_0464() == 505 || EC2010A_0464() == 702)
a = 10;
if (EC2010A_0464() == 506 || EC2010A_0464() == 703)
a = 11;
if (EC2010A_0464() == 801 || EC2010A_0464() == 901)
a = 12;
if (EC2010A_0464() == 802 || EC2010A_0464() == 902)
a = 13;
if (EC2010A_0464() == 803 || EC2010A_0464() == 903)
a = 14;
if (EC2010A_0464() == 904)
a = 15;
if (EC2010A_0464() == 905 || EC2010A_0464() == 602)
a = 16;
if (EC2010A_0464() == 906 || EC2010A_0464() == 602)
a = 17;
}
} break;
case dataset_id::fj1976a: {
if (FJ1976A_0419() == 1) {
if (FJ1976A_0418() == 1)
a = 0;
if (FJ1976A_0418() == 2)
a = 1;
if (FJ1976A_0418() == 3)
a = 2;
if (FJ1976A_0418() == 4)
a = 3;
if (FJ1976A_0418() == 5)
a = 4;
if (FJ1976A_0418() == 6)
a = 5;
if (FJ1976A_0418() == 7)
a = 6;
if (FJ1976A_0418() == 8)
a = 7;
if (FJ1976A_0418() == 9)
a = 8;
if (FJ1976A_0418() == 10)
a = 9;
if (FJ1976A_0418() == 11)
a = 10;
if (FJ1976A_0418() == 12)
a = 11;
}
} break;
case dataset_id::fj1986a: {
if (FJ1986A_0418() == 1) {
if (FJ1986A_0419() == 1)
a = 0;
if (FJ1986A_0419() == 2)
a = 1;
if (FJ1986A_0419() == 3)
a = 2;
if (FJ1986A_0419() == 4)
a = 3;
if (FJ1986A_0419() == 5)
a = 4;
if (FJ1986A_0419() == 6)
a = 5;
if (FJ1986A_0419() == 7)
a = 6;
if (FJ1986A_0419() == 8)
a = 7;
if (FJ1986A_0419() == 9)
a = 8;
if (FJ1986A_0419() == 10)
a = 9;
if (FJ1986A_0419() == 11)
a = 10;
if (FJ1986A_0419() == 12)
a = 11;
}
} break;
case dataset_id::fj1996a: {
if (FJ1996A_0418() == 1) {
if (FJ1996A_0419() == 1)
a = 0;
if (FJ1996A_0419() == 2)
a = 1;
if (FJ1996A_0419() == 3)
a = 2;
if (FJ1996A_0419() == 4)
a = 3;
if (FJ1996A_0419() == 5)
a = 4;
if (FJ1996A_0419() == 6)
a = 5;
if (FJ1996A_0419() == 11)
a = 6;
if (FJ1996A_0419() == 12)
a = 7;
if (FJ1996A_0419() == 13)
a = 8;
if (FJ1996A_0419() == 14)
a = 9;
if (FJ1996A_0419() == 15)
a = 10;
if (FJ1996A_0419() == 16)
a = 11;
if (FJ1996A_0419() == 17)
a = 11;
}
} break;
case dataset_id::fj2007a: {
if (FJ2007A_0428() == 99) {
if (FJ2007A_0427() == 0 || FJ2007A_0427() == 1)
a = 0;
if (FJ2007A_0427() == 2)
a = 1;
if (FJ2007A_0427() == 3)
a = 2;
if (FJ2007A_0427() == 4)
a = 3;
if (FJ2007A_0427() == 5)
a = 4;
if (FJ2007A_0427() == 6)
a = 5;
if (FJ2007A_0427() == 9)
a = 6;
if (FJ2007A_0427() == 10)
a = 7;
if (FJ2007A_0427() == 11)
a = 8;
if (FJ2007A_0427() == 12)
a = 9;
if (FJ2007A_0427() == 13)
a = 10;
if (FJ2007A_0427() == 14)
a = 11;
if (FJ2007A_0427() == 15 || FJ2007A_0427() == 24 ||
FJ2007A_0427() == 17 || FJ2007A_0427() == 20)
a = 12;
if (FJ2007A_0427() == 18 || FJ2007A_0427() == 21 ||
FJ2007A_0427() == 22 || FJ2007A_0427() == 35 ||
FJ2007A_0427() >= 25 && FJ2007A_0427() <= 28)
a = 13;
if (FJ2007A_0427() == 40)
a = 90;
}
} break;
case dataset_id::ht2003a: {
if (HT2003A_0423() == 99 && HT2003A_0404() <= 3)
a = 99;
} break;
case dataset_id::ke1979a: {
if (KE1979A_0407() == 99 && KE1979A_0402() >= 5 && KE1979A_0402() <= 99)
a = 0;
if (KE1979A_0406() == 1) {
if (KE1979A_0407() == 1)
a = 0;
if (KE1979A_0407() == 2)
a = 1;
if (KE1979A_0407() == 3)
a = 2;
if (KE1979A_0407() == 4)
a = 3;
if (KE1979A_0407() == 5)
a = 4;
if (KE1979A_0407() == 6)
a = 5;
if (KE1979A_0407() == 7)
a = 6;
if (KE1979A_0407() == 11)
a = 8;
if (KE1979A_0407() == 12)
a = 9;
if (KE1979A_0407() == 13)
a = 10;
if (KE1979A_0407() == 14)
a = 11;
if (KE1979A_0407() == 15)
a = 12;
}
} break;
case dataset_id::do1981a: {
if (DO1981A_0465() == 99 && DO1981A_0404() >= 5 && DO1981A_0424() == 4)
a = 0;
} break;
case dataset_id::do2002a: {
if (DO2002A_0481() == 0 && DO2002A_0407() >= 3 && DO2002A_0407() <= 98 &&
DO2002A_0428() == 3)
a = 0;
if (DO2002A_0481() == 31 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 0;
if (DO2002A_0481() == 32 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 1;
if (DO2002A_0481() == 33 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 2;
if (DO2002A_0481() == 34 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 3;
if (DO2002A_0481() == 35 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 4;
if (DO2002A_0481() == 36 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 5;
if (DO2002A_0481() == 37 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 6;
if (DO2002A_0481() == 38 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 7;
if (DO2002A_0481() == 41 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 8;
if (DO2002A_0481() == 42 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 9;
if (DO2002A_0481() == 43 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 10;
if (DO2002A_0481() == 44 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 11;
if (DO2002A_0481() == 51 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 12;
if (DO2002A_0481() == 52 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 13;
if (DO2002A_0481() == 53 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 14;
if (DO2002A_0481() == 54 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 15;
if (DO2002A_0481() == 56 && DO2002A_0428() >= 1 && DO2002A_0428() <= 2)
a = 17;
} break;
case dataset_id::do2010a: {
if (DO2010A_0427() == 99 && DO2010A_0406() >= 3 && DO2010A_0424() == 3)
a = 0;
if (DO2010A_0427() == 40 && DO2010A_0430() == 0)
a = 12;
if (DO2010A_0427() == 40 && DO2010A_0430() == 1)
a = 13;
if (DO2010A_0427() == 40 && DO2010A_0430() == 2)
a = 14;
if (DO2010A_0427() == 40 && DO2010A_0430() == 3)
a = 15;
if (DO2010A_0427() == 40 && DO2010A_0430() == 4)
a = 16;
if (DO2010A_0427() == 40 && DO2010A_0430() == 5)
a = 17;
if (DO2010A_0427() == 40 && DO2010A_0430() >= 6 && DO2010A_0430() <= 20)
a = 18;
} break;
case dataset_id::gh2010a: {
if (GH2010A_0416() == 0 && GH2010A_0413() == 1 && GH2010A_0403() >= 3)
a = 0;
if (GH2010A_0403() < 40 && GH2010A_0416() == 80)
a = 9;
if (GH2010A_0403() < 40 && GH2010A_0416() == 81)
a = 10;
if (GH2010A_0403() < 40 && GH2010A_0416() == 82)
a = 11;
if (GH2010A_0403() < 40 && GH2010A_0416() == 83)
a = 12;
if (GH2010A_0403() < 40 && GH2010A_0416() == 84)
a = 13;
if (GH2010A_0403() < 40 && GH2010A_0416() == 90)
a = 12;
if (GH2010A_0403() < 40 && GH2010A_0416() == 91)
a = 13;
if (GH2010A_0403() < 40 && GH2010A_0416() == 92)
a = 14;
if (GH2010A_0403() < 40 && GH2010A_0416() == 93)
a = 15;
if (GH2010A_0403() < 40 && GH2010A_0416() == 94)
a = 16;
if (GH2010A_0403() < 40 && GH2010A_0416() == 100)
a = 12;
if (GH2010A_0403() < 40 && GH2010A_0416() == 101)
a = 13;
if (GH2010A_0403() < 40 && GH2010A_0416() == 102)
a = 14;
if (GH2010A_0403() < 40 && GH2010A_0416() == 103)
a = 15;
if (GH2010A_0403() < 40 && GH2010A_0416() == 104)
a = 16;
if (GH2010A_0403() < 40 && GH2010A_0416() == 110)
a = 12;
if (GH2010A_0403() < 40 && GH2010A_0416() == 111)
a = 13;
if (GH2010A_0403() < 40 && GH2010A_0416() == 112)
a = 14;
if (GH2010A_0403() < 40 && GH2010A_0416() == 113)
a = 15;
if (GH2010A_0403() < 40 && GH2010A_0416() == 114)
a = 16;
if (GH2010A_0403() < 40 && GH2010A_0416() == 120)
a = 16;
if (GH2010A_0403() < 40 && GH2010A_0416() == 121)
a = 17;
} break;
case dataset_id::ng2010a: {
if (NG2010A_0437() == 99 && NG2010A_0404() < 5)
a = 99;
} break;
case dataset_id::zm2000a: {
if (ZM2000A_0435() == 99 && ZM2000A_0434() == 4 && ZM2000A_0404() >= 5)
a = 0;
} break;
case dataset_id::zm2010a: {
if (ZM2010A_0445() == 99 && ZM2010A_0443() == 2 && ZM2010A_0404() >= 5 &&
(ZM2010A_0401() == 1 || ZM2010A_0401() == 3))
a = 0;
} break;
case dataset_id::py2002a: {
if (PY2002A_0403() >= 5 && PY2002A_0428() == 99 && PY2002A_0426() == 2)
a = 0;
} break;
case dataset_id::et2007a: {
if (ET2007A_0418() == 99 && ET2007A_0417() == 98)
a = 0;
} break;
case dataset_id::gh1984a: {
if (GH1984A_0407() == 1 && GH1984A_0402() >= 5 && GH1984A_0402() < 99)
a = 0;
} break;
case dataset_id::bw1981a: {
if (BW1981A_0404() >= 5 && BW1981A_0404() < 99 && BW1981A_0410() == 1 &&
BW1981A_0411() == 99)
a = 0;
} break;
case dataset_id::bw1991a: {
if (BW1991A_0403() >= 5 && BW1991A_0422() == 1 && BW1991A_0423() == 99)
a = 0;
} break;
case dataset_id::bw2001a: {
if (BW2001A_0403() >= 2 && BW2001A_0403() < 99 && BW2001A_0413() == 1 &&
BW2001A_0414() == 99)
a = 0;
if (BW2001A_0414() == 25 &&
(BW2001A_0416() == 34 || BW2001A_0416() == 35 ||
BW2001A_0416() >= 42 && BW2001A_0416() <= 52))
a = 13;
} break;
case dataset_id::bw2011a: {
if (BW2011A_0405() >= 2 && BW2011A_0405() < 99 && BW2011A_0435() == 3 &&
BW2011A_0436() == 9999)
a = 0;
} break;
case dataset_id::tz2012a: {
if (TZ2012A_0426() == 4 && TZ2012A_0427() == 99 && TZ2012A_0403() >= 4)
a = 0;
} 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::uy1996a: {
if (UY1996A_0456() == 999 && UY1996A_0402() >= 3)
a = 0;
} break;
case dataset_id::uy1996x: {
if (UY1996X_0456() == 999 && UY1996X_0402() >= 3)
a = 0;
} break;
case dataset_id::bj2002a: {
if (BJ2002A_0421() == 3)
a = 0;
} break;
case dataset_id::bj2013a: {
if (BJ2013A_0424() == 3)
a = 0;
} break;
case dataset_id::ls1996a: {
if (LS1996A_0415() == 1 && LS1996A_0406() >= 5)
a = 0;
} break;
case dataset_id::pg2000a: {
if (PG2000A_0416() == 3)
a = 0;
} break;
case dataset_id::pg2011a: {
if (PG2011A_0420() == 3)
a = 0;
} break;
case dataset_id::rw2012a: {
if (RW2012A_0431() == 1)
a = 0;
} break;
case dataset_id::zw2012a: {
if (ZW2012A_0430() == 99 && ZW2012A_0428() == 2)
a = 0;
} break;
case dataset_id::la2005a: {
if (LA2005A_0414() == 99 && LA2005A_0413() == 1)
a = 0;
if (LA2005A_0414() == 33 && LA2005A_0415() == 1)
a = 13;
if (LA2005A_0414() == 33 && LA2005A_0415() == 2)
a = 13;
if (LA2005A_0414() == 33 && LA2005A_0415() == 3)
a = 13;
if (LA2005A_0414() == 33 && LA2005A_0415() == 4)
a = 13;
} break;
case dataset_id::np2011a: {
if (NP2011A_0414() == 99 && NP2011A_0412() >= 2 && NP2011A_0412() <= 3 &&
NP2011A_0413() == 2)
a = 0;
} break;
case dataset_id::tg2010a: {
if (TG2010A_0432() == 3 && TG2010A_0435() == 99)
a = 0;
if (TG2010A_0432() == 1 && TG2010A_0435() == 11)
a = 0;
if (TG2010A_0432() == 1 && TG2010A_0435() == 12)
a = 1;
if (TG2010A_0432() == 1 && TG2010A_0435() == 13)
a = 2;
if (TG2010A_0432() == 1 && TG2010A_0435() == 14)
a = 3;
if (TG2010A_0432() == 1 && TG2010A_0435() == 15)
a = 4;
if (TG2010A_0432() == 1 && TG2010A_0435() == 16)
a = 5;
if (TG2010A_0432() == 1 && TG2010A_0435() == 21)
a = 6;
if (TG2010A_0432() == 1 && TG2010A_0435() == 22)
a = 7;
if (TG2010A_0432() == 1 && TG2010A_0435() == 23)
a = 8;
if (TG2010A_0432() == 1 && TG2010A_0435() == 24)
a = 9;
if (TG2010A_0432() == 1 &&
(TG2010A_0435() == 31 || TG2010A_0435() == 41 ||
TG2010A_0435() == 51 || TG2010A_0435() == 71))
a = 10;
if (TG2010A_0432() == 1 &&
(TG2010A_0435() == 32 || TG2010A_0435() == 42 ||
TG2010A_0435() == 52 || TG2010A_0435() == 72))
a = 11;
if (TG2010A_0432() == 1 &&
(TG2010A_0435() == 33 || TG2010A_0435() == 43 ||
TG2010A_0435() == 53 || TG2010A_0435() == 73))
a = 12;
if (TG2010A_0432() == 1 && (TG2010A_0435() == 44 ||
TG2010A_0435() == 61 || TG2010A_0435() == 74))
a = 13;
if (TG2010A_0432() == 1 && TG2010A_0435() == 62)
a = 14;
if (TG2010A_0432() == 1 && TG2010A_0435() == 63)
a = 15;
if (TG2010A_0432() == 1 && TG2010A_0435() == 64)
a = 16;
if (TG2010A_0432() == 1 && TG2010A_0435() == 65)
a = 17;
} break;
case dataset_id::mu1990a: {
if (MU1990A_0423() == 1 && MU1990A_0424() == 11)
a = 0;
if (MU1990A_0423() == 1 && MU1990A_0424() == 12)
a = 1;
if (MU1990A_0423() == 1 && MU1990A_0424() == 13)
a = 2;
if (MU1990A_0423() == 1 && MU1990A_0424() == 14)
a = 3;
if (MU1990A_0423() == 1 && MU1990A_0424() == 15)
a = 4;
if (MU1990A_0423() == 1 && MU1990A_0424() == 16)
a = 5;
if (MU1990A_0423() == 1 && MU1990A_0424() == 21)
a = 6;
if (MU1990A_0423() == 1 && MU1990A_0424() == 22)
a = 7;
if (MU1990A_0423() == 1 && MU1990A_0424() == 23)
a = 8;
if (MU1990A_0423() == 1 && MU1990A_0424() == 24)
a = 9;
if (MU1990A_0423() == 1 && MU1990A_0424() == 25)
a = 10;
if (MU1990A_0423() == 1 && MU1990A_0424() == 27)
a = 11;
if (MU1990A_0425() >= 13 && MU1990A_0425() <= 84)
a = 13;
} break;
case dataset_id::mu2000a: {
if (MU2000A_0428() == 1 && MU2000A_0429() == 11)
a = 0;
if (MU2000A_0428() == 1 && MU2000A_0429() == 12)
a = 1;
if (MU2000A_0428() == 1 && MU2000A_0429() == 13)
a = 2;
if (MU2000A_0428() == 1 && MU2000A_0429() == 14)
a = 3;
if (MU2000A_0428() == 1 && MU2000A_0429() == 15)
a = 4;
if (MU2000A_0428() == 1 && MU2000A_0429() == 16)
a = 5;
if (MU2000A_0428() == 1 && MU2000A_0429() == 21)
a = 6;
if (MU2000A_0428() == 1 && MU2000A_0429() == 22)
a = 7;
if (MU2000A_0428() == 1 && MU2000A_0429() == 23)
a = 8;
if (MU2000A_0428() == 1 && MU2000A_0429() == 24)
a = 9;
if (MU2000A_0428() == 1 && MU2000A_0429() == 25)
a = 10;
if (MU2000A_0428() == 1 && MU2000A_0429() == 27)
a = 11;
if (MU2000A_0430() >= 12 && MU2000A_0430() <= 84 && MU2000A_0432() == 5)
a = 13;
} break;
case dataset_id::mu2011a: {
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 11)
a = 0;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 12)
a = 1;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 13)
a = 2;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 14)
a = 3;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 15)
a = 4;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 16)
a = 5;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) &&
(MU2011A_0454() == 21 || MU2011A_0454() == 31))
a = 6;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) &&
(MU2011A_0454() == 22 || MU2011A_0454() == 32))
a = 7;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) &&
(MU2011A_0454() == 23 || MU2011A_0454() == 33))
a = 8;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 24)
a = 9;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 25)
a = 10;
if ((MU2011A_0453() == 1 || MU2011A_0453() == 2) && MU2011A_0454() == 27)
a = 11;
if (MU2011A_0456() >= 3 && MU2011A_0456() <= 6)
a = 94;
if (MU2011A_0459() >= 3 && MU2011A_0459() <= 6 && MU2011A_0458() >= 12 &&
MU2011A_0458() <= 84)
a = 13;
} break;
case dataset_id::gn2014a: {
if (GN2014A_0422() == 0)
a = 0;
} break;
case dataset_id::sn2013a: {
if (SN2013A_0454() == 0 || SN2013A_0455() == 4)
a = 0;
if (SN2013A_0454() == 2 && SN2013A_0457() == 4)
a = 0;
if (SN2013A_0454() == 2 && SN2013A_0457() == 5)
a = 1;
if (SN2013A_0454() == 2 && SN2013A_0457() == 6)
a = 2;
if (SN2013A_0454() == 2 && SN2013A_0457() == 7)
a = 3;
if (SN2013A_0454() == 2 && SN2013A_0457() == 8)
a = 4;
if (SN2013A_0454() == 2 && SN2013A_0457() == 9)
a = 5;
if (SN2013A_0454() == 2 && SN2013A_0457() == 10)
a = 6;
if (SN2013A_0454() == 2 && SN2013A_0457() == 11)
a = 7;
if (SN2013A_0454() == 2 && SN2013A_0457() == 12)
a = 8;
if (SN2013A_0454() == 2 && SN2013A_0457() == 13)
a = 9;
if (SN2013A_0454() == 2 && SN2013A_0457() == 14)
a = 10;
if (SN2013A_0454() == 2 && SN2013A_0457() == 15)
a = 11;
if (SN2013A_0454() == 2 && SN2013A_0457() == 16)
a = 12;
if (SN2013A_0454() == 2 && SN2013A_0457() == 17)
a = 13;
if (SN2013A_0454() == 2 && SN2013A_0457() == 18)
a = 14;
if (SN2013A_0454() == 2 && SN2013A_0457() == 19)
a = 15;
if (SN2013A_0454() == 2 && SN2013A_0457() == 20)
a = 16;
if (SN2013A_0454() == 2 && SN2013A_0457() == 21)
a = 17;
} break;
}
setData(a);
}
};
Description
YRSCHOOL indicates the highest grade/level of schooling the person had completed, in years. Only formal schooling is counted. YRSCHOOL accounts for the number of years of study, regardless of the track or kind of study. Information on degree and/or technical track is available in EDATTAIN. Years of schooling for Israel, categorized into intervals, are given in YRSCHOOL2.
Users should pay close attention to the top-codes in each sample, as discussed in the comparability section.
Comparability — Index
Comparability — General
YRSCHOOL is top-coded differently across samples, and this can present a serious comparability issue. Samples often report exact years of schooling through secondary school, but some have a maximum number or report only a terminal degree such as "university" or "some university."
In some samples the top codes significantly under-estimate the years of schooling of persons with post-secondary education. In samples that did not provide years of schooling above secondary, all post-secondary education is coded to a single value one year above completed secondary schooling. The affected samples are Bangladesh, Botswana 2001, Cambodia, Colombia 1993, Ethiopia, Fiji, Kenya, Honduras 1961, Hungary 1980 and 1990, Laos, Lesotho, Malaysia, Myanmar 2014, Nepal, Nigeria, Peru, Puerto Rico 2010-2020, Sierra Leone, South Africa, Tanzania, Uganda 2002-2014, United States 2010-2020, Zambia, and Zimbabwe.
The maximum top-code in any sample is 18+ years. The following samples have a top code of less than 18+ years:
12+: All Bangladesh (diploma), Colombia 1993, Honduras 1961, Hungary 1980-1990, Myanmar 2014, all Peru, Papua New Guinea 1980, 2000, Philippines (technical)
13+: All Bangladesh (higher education) , Botswana 2001, all Cambodia, all Ethiopia, all Fiji, all Kenya, Laos 2005-2015, all Lesotho, Malaysia 1980-1991, all Mauritius, Nepal (university), all Nigeria, Puerto Rico 2010-2020, all South Africa, Sierra Leone (technical and tertiary), United States 2010-2020, all Zambia
14+: Philippines (university), Tanzania, Uganda 2002-2014, Zimbabwe 2012
15+: Papua New Guinea 1990
16+: Brazil 1970, Indonesia 1976-1980, Uruguay 1963-1985, 2006 (technical and teaching)
17+: Argentina 2001, Benin 1979, Bolivia 2001, Botswana 1981-1991, Brazil 1960, 1980-2000, Colombia 2005, Haiti 1971, Indonesia 1985-1995 and 2005, Liberia 2008, Palestine, Peru 2017, all Thailand, Uruguay 1963-1985, 2006 (university)
For most samples, years of schooling is inferred from the person's educational attainment, except for the following: Argentina 2001, Brazil 2000, Chile 1982,2002, Costa Rica 1973-2011, India 1983, all Jamaica, Saint Lucia 1980, Mexico 1960, 2000-2010, and Palestine 1997 and 2017.
In cases where YRSCHOOL is calculated from information on level and grade within level, it is assumed that persons completed the average number of grades in earlier levels. For example, it is assumed that a person in the second year of university completed the modal number of years through secondary school for that sample.
Some samples reported either the person's highest grade completed or the current grade if they were still attending school. Whenever a person was attending a particular grade, we have assumed that the highest grade they had completed was one less than the grade they were currently attending. Persons currently attending school could conceivably have attained a higher level of education than indicated by their present level of study. Pre-school education is not counted.
There are several "not specified" categories containing responses that did not translate into a specific number of years of schooling. Adult literacy education is included among the unspecified categories.
Samples that did not give individual years of schooling at least through secondary school are not included in YRSCHOOL. This often is the case for developed countries. It is possible to approximate years of study for most of those samples using the country-specific educational variables, but that has been left to individual researchers. See the country-specific education variables such as EDUCBY, EDUCES, or EDUCHU.
Comparability — Argentina [top]
More than 7 years of primary is treated as 7 years. Secondary study begins at 8 years. Tertiary begins at 14 years. Persons with more than 6 years of secondary are coded to 14+ years, mixed in among persons with some tertiary education. Four or more years of university study is considered as university completed, so persons with post-graduate studies have 18+ years of schooling.
The top-code is 18+ for 1970-1991, 2010 and 17+ for 2001.
Comparability — Bangladesh [top]
"Training" is assumed to require completion of junior secondary (8 years of prior education) and to have 2 years of duration, thus it is coded to 10 years. "Diploma" is assumed to require the secondary school certificate (10 years of prior education) and to have 2 or more years of duration, thus it is coded to 12+ years. Class 11 is not separately identified by any sample, so YRSCHOOL does not include persons with 11 years. Higher education requires the higher secondary certificate or 12 years of prior education, hence people with bachelor, bachelor honors, or higher attainment are top-coded at 13+ years of schooling.
Comparability — Benin [top]
For all samples, we assumed that university studies require the completion of the upper secondary level. Thus, university starts after 13 years of prior study.
In 1992, persons who reported "Islamic school" did not provide their educational attainment in the formal system, so they are classified in "not specified" category.
Comparability — Bolivia [top]
Bolivia has 12 years of primary and secondary education in all samples, although the levels with the system changed over time.
In the 1976 and 1992 samples, technical education and teachers' school were not identified as upper secondary or post-secondary. Therefore, these individuals were classified as having technical education after primary, with precise years of schooling unknown.
Undergraduate programs start at 13 years of schooling and post-graduate degrees are coded at 17 years or more, assuming that completion of an undergraduate program entails 4 years of study. Only the 2012 sample recorded the levels of master's and doctorate degrees.
Comparability — Botswana [top]
In 1981 and 1991, university education implies at least 12 years of prior study, including 7 years of primary, 3 years of junior secondary, and 2 years of senior secondary. For these two samples, the data are top-coded at 17+ years.
In 2001 and 2011, non-formal education is considered to be equivalent to formal primary, so it is classified starting at 1 year of schooling.
The 2001 sample did not provide individual years of schooling for vocational/technical or higher education. Students who completed 5-6 years of secondary (minimum required for university) and who pursued higher education are coded to 13+ years. Attendance to vocational/technical education can be identified using the unharmonized source variables for this sample, but was not used in YRSCHOOL.
The 2011 sample includes years of schooling for vocational and technical programs and more detail about university studies. Vocational and technical is assumed to start at 8 years; therefore, we effectively underestimate years of schooling for persons declaring vocational or technical education but who previously completed junior or senior secondary. Undergraduate programs start at 13 years of schooling and post-graduate degrees are coded at 17 years or more, assuming that completion of an undergraduate program entails 4 years of study.
Comparability — Brazil [top]
The Brazil samples identify years of schooling up to 17 or more. The Brazilian samples give a separate code for "adult literacy", which is assigned its own code among the unspecified categories.
For the Brazil 1980 and 1991 samples two sets of questions were used to infer years of schooling: grade currently attended for persons in school and grade completed for persons not in school. The information on the grade currently attended was used in those cases providing responses for both sets of questions.
The 2010 Brazil sample is not included in YRSCHOOL. The sample provides years of schooling for persons currently attending, but reports only degrees or grouped years for persons who have completed schooling. See the unharmonized source variables to access this information, and EDUCBR for harmonized educational attainment across samples.
Comparability — Burkina Faso [top]
University admission requires completion of the second cycle of secondary school, which implies 13 years of prior education.
Comparability — Cambodia [top]
The samples are comparable.
Years of schooling are calculated from educational attainment, which contains individual grades up to post-secondary, after which only certificates or degrees were given. Due to lack of specific year information above secondary, years of schooling is capped at 13+ years.
Years of schooling above primary may be overestimated due to changes in the educational system of Cambodia. Refer to EDUCKH for details on those changes.
In 2004-2019, the technical/vocational pre-secondary diploma is coded a year above lower secondary, together with grade 10. Lower secondary education is a prerequisite for technical/vocational training.
Comparability — Cameroon [top]
The French and English education systems are separately identified in 1976 and 1987, so a 6-4-3 structure is used to calculate years of education for persons under the French-speaking system and a 7-5-2 structure for persons under the English-speaking system. These two parallel systems are coded together in the 2005 sample, so we assumed 6 years of prior education for persons declaring secondary.
In all samples, persons with post-secondary are considered to have 13 years of prior education. This may underestimate the total years of education for persons who studied in the English-speaking system. Technical studies were classified according to the expected years of prior education given their entry requirements. Teacher training could have varying entry requirements and duration of studies, so it was classified under "some tertiary."
The Cameroon 2005 census instructions required registering the current year attending for persons currently enrolled in school, thus appropriate adjustments were implemented in YRSCHOOL.
Comparability — Chile [top]
For 1960, 1970 and 1992, the various types of technical education begin after 6 years of primary study. University education is assumed to have completed 12 years of schooling in addition to years at university. Persons who studied at professional institutes or centers of technical education in 1992 are also assumed to have 12 years of prior study.
In 1970, some persons recorded primary, secondary, or tertiary study but not the actual number of years completed.
The 1982, 2002 and 2017 censuses asked for years of schooling directly; it is not inferred from education level and grade.
The 2017 sample universe is all persons, while other sample years exclude young children.
Comparability — Colombia [top]
The 1993 sample is top-coded differently than the other years, posing a substantial comparability issue. The 1993 census only reports that a person reached the university level, not the specific number of years of tertiary/post-tertiary education completed. Persons with any university education are coded as having 12+ years of schooling, implying that they had completed at least one year of tertiary education. The top-code in 2005 is 17+ years.
Persons with a response of "special education" or "fundamental education" in the 1964 sample are coded as having completed zero years of schooling.
Colombia has eleven years of school before university entrance. The first year of university is therefore coded as twelve years of schooling.
In 2005, teacher's training started in the 5th year of secondary and lasted for four years. Thus, it was coded as equaling 10 to 13 years of education.
Comparability — Costa Rica [top]
In 1963, we assume 6 years of primary and 5 years of secondary for the calculation of years of schooling. In other years, the census office calculated years of schooling and included it in the data.
Comparability — Cuba [top]
In 2012, ''qualified worker'' education (2 years) and ''intermediate technical'' education (3-4 years) start at 10 years of schooling as both programs are offered after the completion of nine years of general education. In addition, ''basic secondary'' education starts at 7 years of schooling, ''pre-university'' at 10 years of schooling, and ''post-secondary'' at 13 years, assuming that completion of each program takes 3 years of study.
Comparability — Côte d'Ivoire [top]
The Ivory Coast educational system consists of a 6-year primary (CP1 through CM2), a 4-year first cycle of secondary (6th class through 3rd class), and a 3-year second cycle of secondary (second through terminal).
In 1998, the sample records the last year completed for those not attending school and the current year for those who are currently attending, but it does not indicate whether this year has been completed. Thus, we may be overestimating educational attainment by one year for those currently in school.
Persons indicating 'certificate of professional aptitude (CAP1),' 'certificate of professional studies (BEP1),' 'professional certificates (BP1),' ' technician certificates (BT1)', or 'preparatory' are considered as 'lower secondary, technical track' and classified as having 7 years of schooling. Individuals noting 'Technical training, year 1' are considered under 'secondary technical, technical track, year 1,' and classified as having 11 years of schooling. Other responses for technical education are treated in a similar manner.
University and post-secondary technical first year education, such as BTS1, are categorized as having 14 years of schooling. The original responses for higher education indicate a year or a degree, which are considered equivalent for their classification in YRSCHOOL.
Comparability — Dominican Republic [top]
In the 1960 sample, primary grade 7 is interpreted as grade 1 of intermediate; for this sample, there is no grade 2 of intermediate, so there are no persons having 8 years of schooling.
In the 2002 sample, one year of education was subtracted for persons currently enrolled in school, given that enumeration instructions required registering the current year attending for this group. Other samples for Dominican Republic recorded the last grade or year completed.
For all samples, we assumed university studies require the completion of the secondary level. Thus, university starts after 12 years of prior study.
Comparability — Ecuador [top]
In all years, post-secondary education begins after 12 years of study.
The 1962 census had a category for "special education," which was a type of technical education. We have assumed that years of special education happen after 6 years of primary. See EDUCEC for full details on educational attainment.
The 1990-2010 samples identify persons with university graduate education. To calculate years of schooling, we assumed 4 years of undergraduate education, the average number of years for persons who completed university.
In Ecuador 2010 one year of education was subtracted for persons currently enrolled in school, given that instructions required registering the current year attending for this group. Other Ecuador samples recorded the last grade or year completed.
Comparability — El Salvador [top]
El Salvador has a 9-3 system, comprising 9 years of primary and 2-3 years of secondary education. Thus, 12 years of prior schooling were assumed for post-secondary non-university, technical university, and university studies. Bachelor university degrees usually take 5 years of education, which is also the modal number of years for this level. Therefore, for El Salvador 2007 sample, masters and doctorate studies imply the completion of at least 12 plus 5 years of previous schooling.
Comparability — Fiji [top]
Each of the Fiji samples includes different types of technical, teacher, and higher education. For YRSCHOOL, we assumed these required completion of secondary (12 years of previous education), which may overestimate years of schooling for some categories of technical or teacher training. The Fiji samples are top-coded at 13+ years.
In the 1976, 1986, 1996, and 2014 samples, persons currently in school stated the grade they were attending. Therefore, one year of schooling is subtracted from persons in primary or secondary. Other forms of education were assigned to the top-code for these samples, so no deduction was implemented. The data for the 2007 are calculated from separate questions for persons currently attending and those who attended in the past. A similar adjustment was implemented for persons currently in school.
The 2014 sample has less detail available for persons who attended school in the past, who only report whether their highest level completed was primary (coded to 6 years), secondary (coded to 12 years), or tertiary education (sent to the top-code of 13 years). Therefore, years of schooling are effectively underestimated for persons currently not in school who had incomplete primary, secondary, or tertiary.
The 1966 Fiji sample is not included in YRSCHOOL. That sample does have a variable on years of schooling, but it is top-coded at 7+ years and was therefore deemed too dissimilar to include here. The data are available in the unharmonized source variable FJ1966A_0412.
Comparability — Ghana [top]
There was a change in educational system in 1987 affecting middle school and academic secondary school. Persons with attainment in these levels received their educations under the two different systems, depending on their age. The old system had 4 years of middle school and 7 years of secondary school. The new system replaced middle school with 3 years of JSS (Junior Secondary School) and secondary school with 3 years of SSS (Senior Secondary School).
For Ghana 1984, the educational attainment information is coded only under the old 6-4-7 system. Persons who completed upper secondary should have attained 17 years of schooling. However, year 7 of secondary education was not included in the original data, which suggests it may have been coded together with year 6. Therefore, persons with upper secondary completed are coded to 16 years of schooling, while those with post-secondary education to 18+ years.
For Ghana 2000, persons younger than age 30 are classified in the new system. Hence, this group has 6 years at the end of primary, 9 years at the end of lower secondary, 12 years at the end of academic or vocational secondary, on top of which additional education is added. Persons of 30+ years have 6 years at the end of primary, 10 years at the end of lower secondary, and 17 years at the end of secondary (the old system offered a unique upper secondary school).
For Ghana 2010, it is possible to separately identify persons who attended primary and secondary under the old 6-4-7 system or the new 6-3-3 system. We assume that persons younger than age 40 who declare vocational education had only 9 years or prior study (rather than 10) and those who declare post-secondary education had only 12 years of prior study (rather than 17). In addition, post-graduate studies require 4 years of prior university education.
Comparability — Guatemala [top]
The samples are comparable. Years of schooling are calculated from educational attainment, which contains individual grades up to post-secondary. Tertiary education (starting at 13 years) is defined by the enumeration instructions as university studies or those at higher-level technical schools. See EDUCGT for additional details.
Comparability — Guinea [top]
It should be noted that the length of primary and secondary education varies between the 1983 and 1996-2014 samples. In the former, people graduated high school after 12 years, whereas in the latter, they did so after 13 years.
Since we cannot identify those individuals who went through the different educational systems, we assumed that 12 years of education were needed to begin post-secondary education. EDUCGN retains the full information in the separate samples.
Comparability — Haiti [top]
More than 6 years of primary is treated as 6 years. Technical and teacher training are considered as post-secondary technical, and higher education is equivalent to university studies. Therefore, we assume all these types of studies require 13 years of prior education.
In the 2003 sample, technical training is registered in a separate question as classes taken at a center for technical and professional formation. However, this question does not specify years within level, so this information could not be integrated for YRSCHOOL. This may underestimate years of schooling for persons with technical education.
The top-code for Haiti 1982 is 17+, and for Haiti 1971 and 2003 it is 18+ years.
Comparability — Honduras [top]
Higher education requires the completion of the upper cycle of secondary. In 1961, the data include up to 5 years of secondary and no disaggregated years of post-secondary, so YRSCHOOL is top-coded at 12+ years. In other samples, we assumed that higher education implies 12 years of prior study.
The implementation of the National Basic Curriculum is reflected in the source variable codes for the 2001 census. After this reform, primary education and the common cycle were merged to create a "basic education" level, which comprises a total of 9 grades. Thus, the last three grades of basic education are considered to be equivalent to the "common cycle."
Comparability — Hungary [top]
Years of schooling were not reported for post-secondary education. Because the number of years above secondary is unknown, the data for Hungary are top-coded at 12+ years.
The 1970 and 2001 samples have information on educational attainment, but it was not compatible with YRSCHOOL.
Comparability — Indonesia [top]
Indonesia has a 6-3-3 system, which consists of 6 years of primary, 3 years of junior secondary, and 3 years of senior secondary school. In order to pursue a Diploma I/II, Academy/Diploma III, or University/Diploma IV we assume it is necessary to complete senior secondary school, which means 12 years of prior education.
All samples include a category for completion of level, which was assumed to be equivalent to the maximum expected (and usually modal) number of years for that level. Completion of Diploma I/II is equivalent to 2 additional years of schooling, Academy/Diploma III to 3 additional years of schooling, and University to 4 additional years of schooling. The number of years of schooling for each of these types of education was capped at the completion of level category. That is, Academy/Diploma III was capped at 3 years for Indonesia 1976-1990 and University was capped at 4 years for Indonesia 1976-1995, 2005. This translates into top-codes of 16+ years for Indonesia 1976 and 1980.
The Indonesia 1985-1995, 2005 samples identify whether a person reached the master or doctorate level, but not the specific number of years for each degree. Thus, persons with graduate studies are coded as having 17+ years of schooling, implying that they had completed 12 plus 4 years of prior education (primary, secondary, and undergraduate degree) and at least one additional year. The top-code for Indonesia 1985-1995, 2005 is 17+ years.
Comparability — Jamaica [top]
The universe is consistent across years apart from the exclusion of some group quarters in some years.
In 1982, responses indicating less than 7 years of schooling were originally reported in two-year ranges and are coded to the bottom of the range in this variable (e.g. 1-2 years of schooling is coded to 1 year). The 1982 sample is also top-coded at 11 or more years, whereas later samples are top-coded at 18 or more years.
The data distributions are highly inconsistent between samples despite the fact that in all years the variables stems from a census question specifically on years of schooling. See the frequencies on the codes page.
In all samples, years of schooling seem to include pre-school and likely overestimate total schooling relative to most other samples. Years of schooling appear particularly high for a large group of persons in the 2001 sample, but are reported here as they appear in the data.
Comparability — Kenya [top]
Kenya changed its educational system in 1985 from a 7-6 to an 8-4 structure, adding an extra year of primary school. However, responses in all Kenya samples include Standard 1 to 8 (primary) and Forms 1 to 6 (secondary), which do not exactly match either education system. Therefore, for YRSCHOOL we assume 8 years in primary are followed by secondary education. The data are top-coded at 13+ years, which includes Forms 5 and 6 and post-secondary education (given that censuses do not give detailed years of study above secondary).
In the Kenya 1979 sample, the Standard 7 and Standard 8 categories were reported as one combined category. In 2009, youth polytechnic is classified as "some technical after primary," given it requires at least primary but detailed years of study are not available.
The 1969 and 1989-2009 samples refer to education level completed, while the 1979 census asks only about the highest level reached. Therefore, one year of education was subtracted for persons currently in school in the 1979 census sample.
Comparability — Laos [top]
Before the 2009/2010 academic year, the secondary education system comprised a 3-year lower secondary and a 3-year upper secondary phase. Subsequently, it underwent a modification to a 4-year lower secondary and a 3-year upper secondary structure. In the 1995 and 2005 samples, individuals who completed the first year of upper secondary education are categorized as having 10 years of schooling. However, in the 2015 sample, individuals who completed the first year of upper secondary education are considered as having 11 years of schooling.
The 1995-2005 samples provide information about the level and grade completed until upper secondary. Persons who declare any post-secondary vocational or higher education are sent to the top-code of 13+ years in 1995-2015.
Comparability — Lesotho [top]
Persons who completed technical or vocational after primary were classified as having "some technical after primary," while those who completed technical or vocational after lower secondary were classified as having "some secondary."
The Lesotho samples did not provide individual years of schooling for post-secondary education. Students who completed upper secondary and who pursued either technical or university education are coded to 13+ years.
Comparability — Liberia [top]
In Liberia 2008, technical/vocational education is considered post-secondary technical, so it was classified under "some tertiary." For this sample, persons with university completed are coded to 16 years (i.e. they completed 12 plus 4 years of study), while those with post-graduate education are coded to 17+ years (i.e. they completed at least one additional year). The top-code for Liberia 2008 is 17+ years.
Comparability — Malawi [top]
Prior to 2008, the question was asked to all persons age 5+ years, but in 2008 it was asked to non-visitors age 3+ years.
Categories are fully comparable up to 12 years of schooling. After 12 years, persons with upper secondary education and those with university education are combined together depending on years completed in each level (e.g. Secondary Form 5 and Form 6 are combined together with year 1 and year 2 of university, respectively). Completion of "Ordinary" secondary education (Form 1-4) is the minimum requirement for entrance into university. In 2008, a new category of "other tertiary education" is included in the question and is coded together with university education.
In 2008, people who reported a higher secondary grade than "Form 6" are coded together with persons with "Form 6" education in order to conform to the educational system of Malawi.
Comparability — Malaysia [top]
Only the 1980 and 1991 samples provide information regarding years of schooling. Education in Malaysia includes 6 years of primary and 6 years of secondary education. Hence, people with college (post-secondary) education are top-coded at 13+ years of schooling.
Comparability — Mali [top]
In 1998, vocational education has alternative tracks with different entry requirements; therefore, 6 years of prior education were assumed if a primary school certificate [CEP] was required, 9 years if it was a fundamental studies diploma [DEF], and 12 years if it was a baccalaureate [BAC].
In 2009, vocational school does not specify entry requirements; thus, it is considered as a technical track of upper secondary, implying it requires 9 years or prior studies. This assumption may not properly reflect years of study for persons who pursued vocational education that required holding a primary school certificate [CEP] or a baccalaureate [BAC].
For university education and teachers' school, 12 years of prior education were assumed, since both require holding a baccalaureate [BAC] degree. The duration of university studies depend on the degree pursued, therefore 4 years of prior education (the modal number of years) were considered for people with graduate education.
Persons indicating that they attended vocational school with entry requirements CEP or DEF but without indication on the number of years were classified as having some technical education after primary. In the case of unknown years of study for vocational school with entry requirement BAC, teacher's school, university, or post-university they were classified as having some tertiary education. Finally, persons who completed Koranic schools were categorized as not specified.
Comparability — Mauritius [top]
Years of schooling are calculated from educational attainment, which contains individual grades up to secondary. Although specific duration for tertiary and vocational/technical training is available, respondents reported this information up to their third-highest qualifications in the 2000 and 2011 samples, which makes challenging to identify precise years of schooling. Thus, years of schooling for tertiary education is top-coded at 13+ years for persons with tertiary education. In 1990-2011, the unharmonized source variables include additional information about the duration of vocational/technical training not included in YRSCHOOL.
Comparability — Mexico [top]
YRSCHOOL is top-coded at 18+ years, although a few respondents claimed more years of university study.
In 1970-1995, 2015, and 2020, years of schooling is inferred from separate information on level of study and year within level.
In the 2015 and 2020 samples, the responses for teacher school with completed primary or lower secondary combines two different entry requirements; for YRSCHOOL, we assume that respondents completed the lower of the two education requirements (primary).
The 2015 and 2020 samples indicate post-graduate degrees. Master's degree starts at 17 years of schooling while one or more years of doctorate degree are coded as more than 18 years of schooling.
Comparability — Morocco [top]
The Morocco 1982 sample follows a 5-4-3 system, while the 1994 and 2004 samples have a 9-3 structure, and the 2014 sample follows a 6-3-3 system. Under any system, post-secondary education implies 12 years of prior study.
Comparability — Myanmar [top]
The 2014 sample only reported the persons' highest grade reached, not the specific number of years of tertiary/post-secondary education completed. Persons with any university education or post-secondary education are coded as having 12+ years of schooling.
Comparability — Nepal [top]
Since the School Leaving Certificate (SLC) implies only passing an examination but not additional years of education, those with SLC as their highest educational attainment are classified as completing class 10.
The 2001 and 2011 census report the level of education reached after class 10 but without indication of the number of years attained. Persons with intermediate / higher secondary or with technical education (degrees administered by the CTEVT, Medical assistant, or Sub-overseer) are coded as having 11+ years of study, while persons with a bachelor's, master's or Ph.D. degree are coded as having 13+ years of study. The distinction is associated with the different requirements for each level: class 10 or SLC examination are usually required for technical studies, but university studies begin after completing intermediate / higher secondary.
Comparability — Nicaragua [top]
Nicaragua has a 6-5 system, consisting of 6 years of primary and 5 years of secondary school. Therefore, post-secondary technical or university in Nicaragua 1971 and university in Nicaragua 1995 and 2005 have 11 years of prior education (which coincides with the model number of years for secondary). For the 1995 and 2005 Nicaragua samples basic technical requires at least primary (6 years of prior education), mid-level technical at least year 3 of secondary (9 years of prior education), and advanced technical complete secondary (11 years of prior education). The literacy programs in Nicaragua 1995 are coded under adult literacy.
Comparability — Palestine [top]
Palestine reports a maximum of 17 years of schooling in 1997, but it is top-coded at 18+ years in 2017.
Comparability — Panama [top]
With 6 years of primary, 6 years of secondary, people have 12 years of education at the end of pre-tertiary education. Vocational education is interpreted as a technical track of lower secondary, so it implies 6 years or prior education. All years report individual years of study at the college level, to a top-code of 18+ years.
Comparability — Papua New Guinea [top]
The Papua New Guinea samples 1980 and 2000 did not provide individual years of schooling for post-secondary education, thus they are top-coded at 12+ years. The 1990 sample provides additional detail for post-secondary and is top-coded at 15+ years of schooling.
Comparability — Philippines [top]
The Philippines samples reported various numbers of years of study for post-secondary degrees. To facilitate comparisons, we capped the years of study for each degree type as follows: training or associate degrees at 2 years (a total of 12 years of education); bachelor's degrees or higher at 4 years (a total of 14 years).
Comparability — Puerto Rico [top]
The 1990, 2000, and 2005 censuses asked for "educational attainment" rather than specific years of schooling. YRSCHOOL is therefore not available for those Puerto Rico samples, but see EDATTAIN and EDUCPR.
The 2010, 2015 and 2020 samples indicate detailed years within level only up to grade 12 but not for post-secondary education. Therefore, the top-code for Puerto Rico 2010-2020 is 13+.
Comparability — Rwanda [top]
Primary schooling is considered to be 6 years, although some persons reported 7 or more. Secondary school is years 7 to 12. Post-secondary schooling starts at 13 years.
Comparability — Saint Lucia [top]
Only the 1980 sample provides information on years of schooling, but the first 6 years of education are coded in pairs (1-2, 3-4, and 5-6) not year by year. Persons in these groups are coded to the lower value of the interval. The variable is top-coded at 11+ years.
Comparability — Senegal [top]
Persons with higher education were assumed as having 13 years of prior education, since a baccalaureate degree is required.
Comparability — Sierra Leone [top]
The 2004 sample only indicates the highest educational level attained, except for the grade completed within primary education. The 2015 sample identifies the highest educational level and grade completed.
In 2004, years of schooling may be underestimated for some persons with post-primary education. Secondary education was originally reported in 3-year ranges and is coded to the bottom level in the range. Years of schooling for persons with vocational training (including nursing) are coded above the minimum requirement of junior secondary education.
Technical post-secondary and university education are top-coded at 13+ years which is a year above the minimum requirement of senior secondary education.
In 2015, years of schooling for persons with vocational training (including nursing, technical, and teacher training) are treated as senior secondary education because different types of post-secondary programs require distinct minimum education requirements.
In both the 2004 and 2015 samples, Koranic school is classified under "not specified."
Comparability — South Africa [top]
None of the samples indicate years of post-secondary education, so all such persons are coded to 13+ years. Person without a diploma with claim the equivalent of 12 years of schooling are coded to 11 years. See EDUCZA for full details on educational attainment.
Comparability — Tanzania [top]
Primary is considered to be 7 years, although some persons reported more. Secondary is years 8 to 13. Years of post-secondary education are not given, so the data are top-coded at 14+ years. Training after secondary education is classified as having "some tertiary" education.
Comparability — Thailand [top]
In 1970, the vocational junior level begins at 5 years, since this corresponds to primary vocational. The vocational senior and higher vocational levels in 1970 and 1980 are classified as equivalent to lower and upper secondary vocational in 1990 and 2000.
The secondary level has a maximum number of 5 years in the general track in 1970 and 1980. Therefore, for purposes of comparability, the tertiary level begins at 13 years for all samples. Persons with 6 years of secondary education are mixed with persons with 1 year of tertiary education.
In 1970, 1980, and 1990 there are several teacher training alternatives at the secondary level, but none of them indicate number of years of education. All these teacher training categories are classified as having "some secondary" education.
Bachelor degrees usually require 4 years for completion. Therefore, persons with master's or Ph.D. degrees are assumed to have 4 years of undergraduate education and are classified as having 17+, which is the top code for years of schooling in Thailand.
In 1990, some persons report post-secondary vocational degrees but only some indicate numbers of years of education. If these are not indicated, the post-secondary vocational degrees are classified as having "some tertiary" education.
In 1990 and 2000, some persons report having religious education, but only in 1990 are equivalences identified with a grade and level in non-religious education. Thus, for the latter case, persons are classified according to the corresponding equivalence; otherwise, they were classified as "not specified."
Comparability — Togo [top]
The education in Togo has a 6-4-3 or 6-4-2 system, including six years of primary, four years of a first cycle of secondary (leading to the BEPC), and two to three years of a second cycle of secondary (leading to a baccalaureate). The short cycle of professional training, long cycle of professional training, and the professional school are assumed to start after the first cycle of secondary, with 10 years or prior education. Higher education is assumed to start after completing the second cycle of secondary, with 13 years of prior education.
Comparability — Trinidad and Tobago [top]
Trinidad and Tobago has a 7-3-2 education system, with 7 years of primary, 3 years of junior secondary, and 2 years of senior secondary. Some students may opt to continue for 2 additional years of secondary, which are for university preparation.
Primary is coded to 1-7 years and secondary to 8-14 years. Post-secondary education is considered to start after 12 years of schooling, which include 7 years of primary and only 5 years of secondary.
Comparability — Uganda [top]
The Ugandan education system has 7 years of primary, followed by either 3 years of junior secondary or 6 years of senior secondary. After that, there are 5 years of university (for 1991). The 2002 and 2014 samples lack years of post-secondary education, so the data are capped at 14+ years for all post-secondary study. The 2014 sample did not specify years of junior secondary education, and thus ''secondary J1-J3 (junior secondary 1-3)'' is classified as ''some secondary.''
Comparability — United States [top]
In 1980, persons who had passed a high school equivalency examination (GED) were to indicate that they had completed twelve years of school.
The 1990, 2000, and 2005 censuses asked for "educational attainment" (degree or milestone) rather than specific years of schooling. YRSCHOOL is therefore not available for those U.S. samples, but see EDATTAIN and EDUCUS.
The 2010, 2015 and 2020 samples indicate detailed years within level only up to grade 12 but not for post-secondary education. Therefore, the top-code for the U.S. 2010-2020 is 13+.
Comparability — Uruguay [top]
There are notable differences in the universe and in the number of cases recorded as "unknown" for education variables across samples from Uruguay. In particular, samples prior to 1996 record information for people age 6 and older, 1996 records information for people age 3 and older, and 2006 for all people.
Uruguay has a 6-3-3 system, consisting of 6 years of primary, 3 years of the first secondary cycle, and 3 years of the second secondary cycle. Thus, all types of post-secondary technical/teaching or university studies are assumed to require the completion of 12 years of prior education.
The Uruguay 1975 and 1985 include a category for completion of level, which was assumed to be equivalent to the maximum expected number of years for that level. Completion of technical/teaching studies is equivalent to 4 additional years of schooling and university education is equivalent to 5 additional years of schooling. The number of years of schooling for each of these types of education was capped at the completion of level category. That is, in all samples, post-secondary technical/teaching was capped at 4 years and university at 5 years. This translates into top-codes of 16+ years for post-secondary technical/teaching and 17+ for university studies for the Uruguay 1963-1985, 2006 samples.
In the Uruguay 1963 sample, the technical degrees that do not include the number of years completed within level are coded as "some tertiary". In the Uruguay 1975 and 1985 samples other schooling should include mostly post-secondary technical education, but this is not explicitly stated in the enumeration instructions. Therefore, these cases are classified as "not specified". In the Uruguay 2006 sample, graduate school (masters or doctorate studies) is assumed to require 12 years of primary and secondary plus 5 years of university (the expected number of undergraduate years).
Comparability — Venezuela [top]
In all years, post-secondary education begins after 12 years of study.
The 2001 census identifies "special education," which refers to education especially designed to serve segments of the population who suffer from a disability. This was identified separately from regular education.
Comparability — Vietnam [top]
The treatment of post-secondary education is not consistent across samples. The Vietnam 1989 and 1999 census only reports specific years of schooling for general school (grades 1 through 12). For these samples, we have assigned persons with college or post-graduate degrees a minimum number of years of schooling appropriate to that level of study, assuming 12 years through secondary. Persons with post-secondary education are coded to 18 years in 1989, while undergraduates are coded to 13 years.
The Vietnam 2009-2019 census report specific years of schooling for primary, secondary, and tertiary education. The 2019 sample combines information of grade attained in basic education with the years for vocational training or post-secondary education. To facilitate comparisons, we capped the years of vocational training or post-secondary education for pre-intermediate and intermediate degrees at 4 years in 2019.
The modal number of years for completing education shifts from 8 years in 1989-1999 to 9 years in 2009 and 2019.
Comparability — Zambia [top]
Post-secondary education comprises the following categories: General Certificate of Education (GCE) Advanced level or undergraduate, certificates or diplomas, bachelor, master, and doctorate degrees. Thus, these categories are top-coded at 13+ which is a year above completion of grade 12.
Comparability — Zimbabwe [top]
The 2012 sample does not provide information about the number of years in post-secondary education. Students who pursued any post-secondary education are top-coded at 14+.
Universe
- Argentina 1970: Persons age 5+
- Argentina 1980: Persons age 5+
- Argentina 1991: Persons age 3+
- Argentina 2001: Persons age 3+
- Argentina 2010: Persons age 3+
- Bangladesh 1991: Persons age 5+
- Bangladesh 2001: Persons age 6+
- Bangladesh 2011: Persons age 7+
- Benin 1979: Persons age 6+
- Benin 1992: Persons age 3+ in private households
- Benin 2002: Residents age 3+
- Benin 2013: Persons age 3+
- Bolivia 1976: Persons age 5+
- Bolivia 1992: Persons age 6+
- Bolivia 2001: Persons age 4+
- Bolivia 2012: Persons age 4+
- Botswana 1981: Present residents age 5+
- Botswana 1991: Persons age 5+
- Botswana 2001: Persons age 2+ except institutionalized non-residents
- Botswana 2011: Persons age 2+ except institutionalized non-residents
- Brazil 1960: Persons age 5+
- Brazil 1970: Persons age 5+
- Brazil 1980: Persons age 5+
- Brazil 1991: Persons age 5+
- Brazil 2000: Persons age 6+
- Burkina Faso 1985: Residents age 10+
- Cambodia 1998: All persons
- Cambodia 2004: All persons
- Cambodia 2008: All persons
- Cambodia 2013: All persons
- Cambodia 2019: Persons age 4+
- Cameroon 1976: Persons age 4+
- Cameroon 1987: Persons age 3+
- Cameroon 2005: Persons age 3+
- Chile 1960: Persons age 5+
- Chile 1970: Persons age 5+
- Chile 1982: Persons age 5+
- Chile 1992: Persons age 5+
- Chile 2002: Persons age 5+
- Chile 2017: All persons
- Colombia 1964: Persons age 5+
- Colombia 1973: Persons age 5+
- Colombia 1985: Persons age 5+
- Colombia 1993: Persons age 5+
- Colombia 2005: Persons age 3+
- Costa Rica 1963: Persons age 7+
- Costa Rica 1973: Persons age 6+
- Costa Rica 1984: Persons age 5+
- Costa Rica 2000: Persons age 5+
- Costa Rica 2011: All persons
- Cuba 2012: Persons age 6+
- Côte d'Ivoire 1998: Persons age 6+ who are residents of the household
- Dominican Republic 1960: All persons
- Dominican Republic 1970: Persons age 5+
- Dominican Republic 1981: Persons age 5+
- Dominican Republic 2002: Persons age 3+
- Dominican Republic 2010: Persons age 3+
- Ecuador 1962: Persons age 6+
- Ecuador 1974: Persons age 6+
- Ecuador 1982: Persons age 6+
- Ecuador 1990: Persons age 6+
- Ecuador 2001: Persons age 5+
- Ecuador 2010: Persons age 5+
- El Salvador 1992: Persons age 5+
- El Salvador 2007: Persons age 5+
- Ethiopia 1984: Residents age 5+
- Ethiopia 1994: Residents age 5+
- Ethiopia 2007: Long form respondents
- Fiji 1976: All persons
- Fiji 1986: All persons
- Fiji 1996: All persons
- Fiji 2007: All persons
- Fiji 2014: All persons
- Ghana 1984: Persons age 5+ who attended primary school or above
- Ghana 2000: Persons age 3+
- Ghana 2010: Persons age 3+
- Guatemala 1964: Persons age 7+
- Guatemala 1973: Persons age 7+
- Guatemala 1981: Persons age 7+
- Guatemala 1994: Persons age 7+
- Guatemala 2002: Persons age 7+
- Guinea 1983: Persons age 6+, not absent residents
- Guinea 1996: Household residents age 6+
- Guinea 2014: Persons age 3+
- Haiti 1971: Persons age 5+
- Haiti 1982: Persons age 6+
- Haiti 2003: Persons age 5+
- Honduras 1961: Persons age 5+
- Honduras 1974: Persons age 6+
- Honduras 1988: Persons age 5+
- Honduras 2001: Persons age 5+
- Hungary 1980: Persons age 7+
- Hungary 1990: Persons age 7+
- Indonesia 1976: All persons
- Indonesia 1980: All persons
- Indonesia 1985: Persons age 5+
- Indonesia 1990: Persons age 5+
- Indonesia 1995: Persons age 5+
- Indonesia 2005: Persons age 5+
- Jamaica 1982: Persons age 4+ in private households and some group quarters
- Jamaica 1991: Persons age 4+ in private households and some group households
- Jamaica 2001: Persons age 4+
- Kenya 1969: All persons
- Kenya 1979: Persons age 5+
- Kenya 1989: Persons age 6+
- Kenya 1999: Persons age 5+
- Kenya 2009: Persons age 3+
- Laos 1995: Persona age 6+
- Laos 2005: Persona age 6+
- Laos 2015: Persona age 6+
- Lesotho 1996: Persons age 5+
- Lesotho 2006: Persons age 2+
- Liberia 1974: Persons age 5+
- Liberia 2008: Persons age 5+
- Malawi 1987: Persons age 5+
- Malawi 1998: Persons age 5+
- Malawi 2008: Non-visitors age 3+
- Malaysia 1980: All persons
- Malaysia 1991: All persons
- Mali 1998: Persons age 6+
- Mali 2009: Persons age 3+
- Mauritius 1990: Persons age 2+
- Mauritius 2000: Persons age 2+
- Mauritius 2011: Persons age 2+
- Mexico 1960: Persons age 6+
- Mexico 1970: Persons age 6+
- Mexico 1990: Persons age 5+
- Mexico 1995: Persons age 5+
- Mexico 2000: Persons age 5+
- Mexico 2005: Persons age 5+
- Mexico 2010: Persons age 3+
- Mexico 2015: Persons age 3+
- Mexico 2020: Persons age 3+
- Morocco 1982: All persons
- Morocco 1994: All persons
- Morocco 2004: All persons
- Morocco 2014: All persons
- Myanmar 2014: Persons age 5+
- Nepal 2001: Persons age 6+
- Nepal 2011: Persons age 5+
- Nicaragua 1971: Persons age 6+
- Nicaragua 1995: Persons age 5+
- Nicaragua 2005: Persons age 5+
- Palestine 1997: Persons age 5+
- Palestine 2017: Persons age 5+
- Panama 1960: Persons age 7+ not in indigenous groups
- Panama 1970: Persons age 6+
- Panama 1980: Persons age 4+
- Panama 1990: Persons age 5+
- Panama 2000: Persons age 4+
- Panama 2010: Persons age 4+
- Papua New Guinea 1980: Persons age 5+
- Papua New Guinea 1990: Persons age 5+
- Papua New Guinea 2000: Persons age 5+
- Paraguay 1962: Persons age 7+
- Paraguay 1972: Persons age 7+
- Paraguay 1982: Persons age 7+
- Paraguay 1992: Persons age 5+
- Paraguay 2002: Persons age 5+
- Peru 1993: Persons age 5+
- Peru 2007: Persons age 3+
- Peru 2017: Persons age 3+
- Philippines 1990: Persons age 5+
- Philippines 1995: Persons age 5+
- Philippines 2000: Persons age 5+
- Philippines 2010: Persons age 5+
- Puerto Rico 1970: Persons age 3+
- Puerto Rico 1980: Persons age 3+
- Puerto Rico 2010: Persons age 3+
- Puerto Rico 2015: Persons age 3+
- Puerto Rico 2020: Persons age 3+
- Rwanda 2002: Non-visitors age 6+
- Rwanda 2012: Persons age 3+
- Saint Lucia 1980: All persons
- Senegal 1988: Persons age 6+
- Senegal 2002: Persons age 3+
- Senegal 2013: Residents age 3+
- Sierra Leone 2004: Persons age 6+
- Sierra Leone 2015: Persons age 3+ in private households
- South Africa 1996: Persons age 5+
- South Africa 2001: Persons age 5+
- South Africa 2007: Persons age 5+ not in institutions
- South Africa 2011: Persons age 5+ in private households
- South Africa 2016: All persons
- Tanzania 1988: Persons age 5+
- Tanzania 2002: Persons age 5+
- Tanzania 2012: Persons age 4+
- Thailand 1970: Persons age 5+
- Thailand 1980: Persons age 5+
- Thailand 1990: Persons age 5+
- Thailand 2000: Persons age 5+
- Togo 2010: Persons age 3+
- Trinidad and Tobago 1980: All persons
- Trinidad and Tobago 1990: All persons
- Trinidad and Tobago 2000: All persons
- Trinidad and Tobago 2011: Persons in private households living in Trinidad and Tobago
- Uganda 1991: Persons age 5+
- Uganda 2002: Persons age 5+
- Uganda 2014: Persons age 3+
- United States 1960: Persons age 5+
- United States 1970: Persons age 3+
- United States 1980: All persons
- United States 2010: Persons age 3+
- United States 2015: Persons age 3+
- United States 2020: Persons age 3+
- Uruguay 1963: Persons age 6+
- Uruguay 1975: Persons age 6+
- Uruguay 1985: Persons age 6+
- Uruguay 1996: Persons age 3+
- Uruguay 2006: All persons
- Venezuela 1971: Persons age 5+
- Venezuela 1981: Persons age 5+
- Venezuela 1990: Persons age 3+
- Venezuela 2001: Persons age 3+
- Vietnam 1989: Persons age 5+
- Vietnam 1999: Persons age 5+
- Vietnam 2009: Persons age 5+
- Vietnam 2019: Persons age 5+
- Zambia 1990: Persons age 5+
- Zambia 2000: Persons age 5+
- Zambia 2010: Present members and visitors 5+
- Zimbabwe 2012: Persons age 3+
Availability
- Argentina: 1970, 1980, 1991, 2001, 2010
- Bangladesh: 1991, 2001, 2011
- Benin: 1979, 1992, 2002, 2013
- Bolivia: 1976, 1992, 2001, 2012
- Botswana: 1981, 1991, 2001, 2011
- Brazil: 1960, 1970, 1980, 1991, 2000
- Burkina Faso: 1985
- Cambodia: 1998, 2004, 2008, 2013, 2019
- Cameroon: 1976, 1987, 2005
- Chile: 1960, 1970, 1982, 1992, 2002, 2017
- Colombia: 1964, 1973, 1985, 1993, 2005
- Costa Rica: 1963, 1973, 1984, 2000, 2011
- Cuba: 2012
- Côte d'Ivoire: 1998
- Dominican Republic: 1960, 1970, 1981, 2002, 2010
- Ecuador: 1962, 1974, 1982, 1990, 2001, 2010
- El Salvador: 1992, 2007
- Ethiopia: 1984, 1994, 2007
- Fiji: 1976, 1986, 1996, 2007, 2014
- Ghana: 1984, 2000, 2010
- Guatemala: 1964, 1973, 1981, 1994, 2002
- Guinea: 1983, 1996, 2014
- Haiti: 1971, 1982, 2003
- Honduras: 1961, 1974, 1988, 2001
- Hungary: 1980, 1990
- India: 1983
- Indonesia: 1976, 1980, 1985, 1990, 1995, 2005
- Jamaica: 1982, 1991, 2001
- Kenya: 1969, 1979, 1989, 1999, 2009
- Laos: 1995, 2005, 2015
- Lesotho: 1996, 2006
- Liberia: 1974, 2008
- Malawi: 1987, 1998, 2008
- Malaysia: 1980, 1991
- Mali: 1998, 2009
- Mauritius: 1990, 2000, 2011
- Mexico: 1960, 1970, 1990, 1995, 2000, 2005, 2005Q1, 2005Q2, 2005Q3, 2005Q4, 2006Q1, 2006Q2, 2006Q3, 2006Q4, 2007Q1, 2007Q2, 2007Q3, 2007Q4, 2008Q1, 2008Q2, 2008Q3, 2008Q4, 2009Q1, 2009Q2, 2009Q3, 2009Q4, 2010, 2010Q1, 2010Q2, 2010Q3, 2010Q4, 2011Q1, 2011Q2, 2011Q3, 2011Q4, 2012Q1, 2012Q2, 2012Q3, 2012Q4, 2013Q1, 2013Q2, 2013Q3, 2013Q4, 2014Q1, 2014Q2, 2014Q3, 2014Q4, 2015, 2015Q1, 2015Q2, 2015Q3, 2015Q4, 2016Q1, 2016Q2, 2016Q3, 2016Q4, 2017Q1, 2017Q2, 2017Q3, 2017Q4, 2018Q1, 2018Q2, 2018Q3, 2018Q4, 2019Q1, 2019Q2, 2019Q3, 2019Q4, 2020, 2020Q1, 2020Q3
- Morocco: 1982, 1994, 2004, 2014
- Myanmar: 2014
- Nepal: 2001, 2011
- Nicaragua: 1971, 1995, 2005
- Nigeria: 2006, 2007, 2008, 2009, 2010
- Palestine: 1997, 2017
- Panama: 1960, 1970, 1980, 1990, 2000, 2010
- Papua New Guinea: 1980, 1990, 2000
- Paraguay: 1962, 1972, 1982, 1992, 2002
- Peru: 1993, 2007, 2017
- Philippines: 1990, 1995, 2000, 2010
- Puerto Rico: 1970, 1980, 2010, 2015, 2020
- Rwanda: 2002, 2012
- Saint Lucia: 1980
- Senegal: 1988, 2002, 2013
- Sierra Leone: 2004, 2015
- South Africa: 1996, 2001, 2007, 2011, 2016
- Tanzania: 1988, 2002, 2012
- Thailand: 1970, 1980, 1990, 2000
- Togo: 2010
- Trinidad and Tobago: 1980, 1990, 2000, 2011
- Uganda: 1991, 2002, 2014
- United States: 1960, 1970, 1980, 2010, 2015, 2020
- Uruguay: 1963, 1975, 1985, 1996, 2006
- Venezuela: 1971, 1981, 1990, 2001
- Vietnam: 1989, 1999, 2009, 2019
- Zambia: 1990, 2000, 2010
- Zimbabwe: 2012