Data Cart

Your data extract

0 variables
0 samples
View Cart
MIGRATE1
Migration status, 1 year

Codes and Frequencies



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

Explore how IPUMS created this variable

Download


      class Migrate1:public Editor {

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

        long a = getRecoded();
        switch (dataSet) {
        case dataset_id::ke1989a:
        {
            if (KE1989A_0407() > 10 && KE1989A_0407() < 94 && KE1989A_0407() % 10 != 0 && (KE1989A_0407() - KE1989A_0407() % 10) / 10 == KE1989A_0001(0) && KE1989A_0407() != KE1989A_0002(0))
                a = 12;
            if (KE1989A_0407() > 10 && KE1989A_0407() < 94 && KE1989A_0407() % 10 != 0 && (KE1989A_0407() - KE1989A_0407() % 10) / 10 != KE1989A_0001(0))
                a = 20;
        }
        break;
        case dataset_id::ke1999a:
        {
            if (KE1999A_0410() >= 101 && KE1999A_0410() < 999 && KE1999A_0410() != KE1999A_0002(0) && (KE1999A_0410() - KE1999A_0410() % 100) / 100 == KE1999A_0001(0))
                a = 12;
            if (KE1999A_0410() >= 101 && KE1999A_0410() < 999 && KE1999A_0410() != KE1999A_0002(0) && (KE1999A_0410() - KE1999A_0410() % 100) / 100 != KE1999A_0001(0))
                a = 20;
        }
        break;
        case dataset_id::pt1981a:
        {
            int b = PT1981A_0406();
            int c = PT1981A_0035(0);
            if (PT1981A_0407() == 98) {
                if (b == 11111 && c != 11111)
                    a = 20;
                if (b == 11112 && c != 11112)
                    a = 20;
                if (b == 11113 && c != 11113)
                    a = 20;
                if (b == 11114 && c != 11114)
                    a = 20;
                if (b == 11115 && c != 11115)
                    a = 20;
                if (b == 11116 && c != 11116)
                    a = 20;
                if (b == 11117 && c != 11117)
                    a = 20;
                if (b == 11118 && c != 11118)
                    a = 20;
                if (b == 15150 && c != 15150)
                    a = 20;
                if (b == 16161 && c != 16161)
                    a = 20;
                if (b == 16162 && c != 16162)
                    a = 20;
                if (b == 16163 && c != 16163)
                    a = 20;
                if (b == 16165 && c != 16165)
                    a = 20;
                if (b == 16166)
                    a = 99;
                if (b == 16167)
                    a = 99;
                if (b == 16168)
                    a = 99;
                if (b == 16169)
                    a = 99;
                if (b == 16170)
                    a = 99;
                if (b == 16171 && c != 16171)
                    a = 99;
                if (b == 16172 && c != 16172)
                    a = 20;
                if (b == 17171 && c != 17171)
                    a = 20;
                if (b == 17172 && c != 17172)
                    a = 20;
                if (b == 18181)
                    a = 99;
                if (b == 18182)
                    a = 99;
                if (b == 18183)
                    a = 99;
                if (b == 18184)
                    a = 99;
                if (b == 18185 && c != 18185)
                    a = 20;
                if (b == 20200 && c != 20200)
                    a = 20;
                if (b == 30300 && c != 30300)
                    a = 20;
            }
        }
        break;
        case dataset_id::pt1991a:
        {
            int d = PT1991A_0420();
            int e = PT1991A_0024(0);
            if (PT1991A_0418() == 22) {
                if (d == 11111 && e != 11111)
                    a = 20;
                if (d == 11112 && e != 11112)
                    a = 20;
                if (d == 11113 && e != 11113)
                    a = 20;
                if (d == 11114 && e != 11114)
                    a = 20;
                if (d == 11115 && e != 11115)
                    a = 20;
                if (d == 11116 && e != 11116)
                    a = 20;
                if (d == 11117 && e != 11117)
                    a = 20;
                if (d == 11118 && e != 11118)
                    a = 20;
                if (d == 15150 && e != 15150)
                    a = 20;
                if (d == 16161 && e != 16161)
                    a = 20;
                if (d == 16162 && e != 16162)
                    a = 20;
                if (d == 16163 && e != 16163)
                    a = 20;
                if (d == 16165 && e != 16165)
                    a = 20;
                if (d == 16166)
                    a = 99;
                if (d == 16167)
                    a = 99;
                if (d == 16168)
                    a = 99;
                if (d == 16169)
                    a = 99;
                if (d == 16170)
                    a = 99;
                if (d == 16171 && e != 16171)
                    a = 99;
                if (d == 16172 && e != 16172)
                    a = 20;
                if (d == 17171 && e != 17171)
                    a = 20;
                if (d == 17172 && e != 17172)
                    a = 20;
                if (d == 18181)
                    a = 99;
                if (d == 18182)
                    a = 99;
                if (d == 18183)
                    a = 99;
                if (d == 18184)
                    a = 99;
                if (d == 18185 && e != 18185)
                    a = 20;
                if (d == 20200 && e != 20200)
                    a = 20;
                if (d == 30300 && e != 30300)
                    a = 20;
            }
        }
        break;
        case dataset_id::pt2001a:
        {
            int f = PT2001A_0423();
            int g = PT2001A_0024(0);
            if (PT2001A_0422() == 3) {
                if (f == 11111 && g != 11111)
                    a = 20;
                if (f == 11112 && g != 11112)
                    a = 20;
                if (f == 11113 && g != 11113)
                    a = 20;
                if (f == 11114 && g != 11114)
                    a = 20;
                if (f == 11115 && g != 11115)
                    a = 20;
                if (f == 11116 && g != 11116)
                    a = 20;
                if (f == 11117 && g != 11117)
                    a = 20;
                if (f == 11118 && g != 11118)
                    a = 20;
                if (f == 15150 && g != 15150)
                    a = 20;
                if (f == 16161 && g != 16161)
                    a = 20;
                if (f == 16162 && g != 16162)
                    a = 20;
                if (f == 16163 && g != 16163)
                    a = 20;
                if (f == 16165 && g != 16165)
                    a = 20;
                if (f == 16166)
                    a = 99;
                if (f == 16167)
                    a = 99;
                if (f == 16168)
                    a = 99;
                if (f == 16169)
                    a = 99;
                if (f == 16170)
                    a = 99;
                if (f == 16171 && g != 16171)
                    a = 99;
                if (f == 16172 && g != 16172)
                    a = 20;
                if (f == 17171 && g != 17171)
                    a = 20;
                if (f == 17172 && g != 17172)
                    a = 20;
                if (f == 18181)
                    a = 99;
                if (f == 18182)
                    a = 99;
                if (f == 18183)
                    a = 99;
                if (f == 18184)
                    a = 99;
                if (f == 18185 && g != 18185)
                    a = 20;
                if (f == 20200 && g != 20200)
                    a = 20;
                if (f == 30300 && g != 30300)
                    a = 20;
            }
        }
        break;
        case dataset_id::uk1991a:
        {
            if (UK1991A_0417() <= 12 && UK1991A_0417() == UK1991A_0019(0))
                a = 10;
            if (UK1991A_0401() < 1)
                a = 0;
        }
        break;
        case dataset_id::uk2001a:
        {
            if (UK2001A_0426() >= 101 && UK2001A_0426() <= 113 && UK2001A_0426() == UK2001A_0433())
                a = 10;
            if (UK2001A_0400() < 1)
                a = 0;
        }
        break;
        case dataset_id::us2005a:
        {
            if (US2005A_0457() == 20 && US2005A_0458() >= 1 && US2005A_0458() <= 56 && US2005A_0458() == US2005A_0022(0))
                a = 10;
        }
        break;
        case dataset_id::tz2002a:
        {
            if (TZ2002A_0412() >= 1 && TZ2002A_0412() <= 55 && TZ2002A_0412() == TZ2002A_0022(0))
                a = 10;
        }
        break;
        case dataset_id::ie1981a:
        {
            if (IE1981A_0407() <= 8 && IE1981A_0407() == IE1981A_0406())
                a = 10;
        }
        break;
        case dataset_id::ie1986a:
        {
            if (IE1986A_0407() <= 8 && IE1986A_0407() == IE1986A_0406())
                a = 10;
        }
        break;
        case dataset_id::ie1991a:
        {
            if (IE1991A_0408() <= 8 && IE1991A_0408() == IE1991A_0407())
                a = 10;
            if (IE1991A_0408() == 99 && IE1991A_0404() == 0)
                a = 0;
        }
        break;
        case dataset_id::ie1996a:
        {
            if (IE1996A_0408() <= 8 && IE1996A_0407() == IE1996A_0408())
                a = 10;
        }
        break;
        case dataset_id::ie2002a:
        {
            if (IE2002A_0410() <= 8 && IE2002A_0409() == IE2002A_0410())
                a = 10;
        }
        break;
        case dataset_id::ie2006a:
        {
            if (IE2006A_0413() <= 8 && IE2006A_0412() == IE2006A_0413())
                a = 10;
        }
        break;
        case dataset_id::mw1987a:
        {
            if (MW1987A_0410() < 30 && MW1987A_0410() != MW1987A_0094(0) && MW1987A_0409() == MW1987A_0093(0))
                a = 12;
            if (MW1987A_0410() < 30 && MW1987A_0410() != MW1987A_0094(0) && MW1987A_0409() != MW1987A_0093(0))
                a = 20;
        }
        break;
        case dataset_id::sd2008a:
        {
            if (SD2008A_0414() <= 93 && SD2008A_0411() == SD2008A_0414())
                a = 10;
            if (SD2008A_0406() == 0)
                a = 0;
        }
        break;
        case dataset_id::ss2008a:
        {
            if (SS2008A_0414() <= 93 && SS2008A_0411.getSourceDataAsLong() == SS2008A_0414())
                a = 10;
            if (SS2008A_0406() == 0)
                a = 0;
        }
        break;
        case dataset_id::bf1985a:
        {
            if (BF1985A_0405() > 0 && BF1985A_0405() <= 30 && BF1985A_0405() == BF1985A_0023(0))
                a = 10;
        }
        break;
        case dataset_id::bf1996a:
        {
            if (BF1996A_0410() > 0 && BF1996A_0410() < 98)
                a = 30;
            if (BF1996A_0412() > 0 && BF1996A_0412() <= 45 && BF1996A_0412() == BF1996A_0036(0))
                a = 10;
        }
        break;
        case dataset_id::bf2006a:
        {
            if (BF2006A_0411() > 1 && BF2006A_0411() < 98)
                a = 30;
            if (BF2006A_0413() > 0 && BF2006A_0413() <= 45 && BF2006A_0413() == BF2006A_0024(0))
                a = 10;
        }
        break;
        case dataset_id::ke1979a:
        {
            if (a != 99 && KE1979A_0405() < 96 && KE1979A_0405() != KE1979A_0023(0) && (KE1979A_0405() - KE1979A_0405() % 10) / 10 == KE1979A_0022(0))
                a = 12;
            if (a != 99 && KE1979A_0405() < 96 && KE1979A_0405() != KE1979A_0023(0) && (KE1979A_0405() - KE1979A_0405() % 10) / 10 != KE1979A_0022(0))
                a = 20;
        }
        break;
        case dataset_id::ke2009a:
        {
            if (KE2009A_0410() > 100 && KE2009A_0410() < 821 && KE2009A_0410() != KE2009A_0022(0) && (KE2009A_0410() - KE2009A_0410() % 100) / 100 == KE2009A_0021(0))
                a = 12;
            if (KE2009A_0410() > 100 && KE2009A_0410() < 821 && (KE2009A_0410() - KE2009A_0410() % 100) / 100 != KE2009A_0021(0))
                a = 20;
        }
        break;
        case dataset_id::ie2011a:
        {
            if ((IE2011A_0410() == 33 || IE2011A_0410() == 31 || IE2011A_0410() == 28 || IE2011A_0410() == 32 || IE2011A_0410() == 34 || IE2011A_0410() == 10) && IE2011A_0034(0) == 1 || IE2011A_0410() == 2 && IE2011A_0034(0) == 2 || (IE2011A_0410() == 11 || IE2011A_0410() == 6 || IE2011A_0410() == 15) && IE2011A_0034(0) == 3 || (IE2011A_0410() == 9 || IE2011A_0410() == 13 || IE2011A_0410() == 12 || IE2011A_0410() == 8) && IE2011A_0034(0) == 4 || (IE2011A_0410() == 16 || IE2011A_0410() == 21) && IE2011A_0034(0) == 5 || (IE2011A_0410() == 7 || IE2011A_0410() == 25 || IE2011A_0410() == 1 || IE2011A_0410() == 14) && IE2011A_0034(0) == 6 || (IE2011A_0410() == 19 || IE2011A_0410() == 17) && IE2011A_0034(0) == 7 || (IE2011A_0410() == 30 || IE2011A_0410() == 29 || IE2011A_0410() == 27) && IE2011A_0034(0) == 8)
                a = 10;
        }
        break;
        case dataset_id::zm1990a:
        {
            if (ZM1990A_0414() > 10 && ZM1990A_0414() <= 96 && (ZM1990A_0414() - ZM1990A_0414() % 10) / 10 == ZM1990A_0022(0) && ZM1990A_0414() != ZM1990A_0023(0))
                a = 12;
            if (ZM1990A_0414() == 11 && ZM1990A_0023(0) == 12)
                a = 11;
            if (ZM1990A_0414() > 10 && ZM1990A_0414() <= 96 && (ZM1990A_0414() - ZM1990A_0414() % 10) / 10 != ZM1990A_0022(0))
                a = 20;
        }
        break;
        case dataset_id::zm2000a:
        {
            if (ZM2000A_0412() >= 101 && ZM2000A_0412() <= 907 && (ZM2000A_0412() - ZM2000A_0412() % 100) / 100 == ZM2000A_0022(0) && ZM2000A_0412() != ZM2000A_0023(0))
                a = 12;
            if (ZM2000A_0412() >= 101 && ZM2000A_0412() <= 907 && (ZM2000A_0412() - ZM2000A_0412() % 100) / 100 != ZM2000A_0022(0))
                a = 20;
        }
        break;
        case dataset_id::zm2010a:
        {
            if (ZM2010A_0413() >= 101 && ZM2010A_0413() <= 1007 && (ZM2010A_0413() - ZM2010A_0413() % 100) / 100 == ZM2010A_0021(0) && ZM2010A_0413() != ZM2010A_0022(0))
                a = 12;
            if (ZM2010A_0413() >= 101 && ZM2010A_0413() <= 1007 && (ZM2010A_0413() - ZM2010A_0413() % 100) / 100 != ZM2010A_0021(0))
                a = 20;
        }
        break;
        case dataset_id::pt2011a:
        {
            if (PT2011A_0411() == 5 && PT2011A_0412() < 99998 && PT2011A_0412() != PT2011A_0025(0))
                a = 20;
        }
        break;
        case dataset_id::at2011a:
        {
            if ((AT2011A_0428() - AT2011A_0428() % 10) / 10 == AT2011A_0042(0))
                a = 12;
            if (AT2011A_0428() == AT2011A_0022(0))
                a = 11;
        }
        break;
        case dataset_id::es2011a:
        {
            if (ES2011A_0419() == ES2011A_0022(0))
                a = 12;
            if (ES2011A_0420() == ES2011A_0023(0))
                a = 11;
        }
        break;
        case dataset_id::mz1997a:
        {
            if (MZ1997A_0413() == MZ1997A_0021(0))
                a = 12;
            if (MZ1997A_0414() == MZ1997A_0022(0))
                a = 11;
            if (a == 12 && (MZ1997A_0414() == 199 || MZ1997A_0414() == 299 || MZ1997A_0414() == 399 || MZ1997A_0414() == 499 || MZ1997A_0414() == 599 || MZ1997A_0414() == 699 || MZ1997A_0414() == 799 || MZ1997A_0414() == 899 || MZ1997A_0414() == 999 || MZ1997A_0414() == 1099 || MZ1997A_0414() == 1100))
                a = 10;
        }
        break;
        case dataset_id::mz2007a:
        {
            if (MZ2007A_0432() == MZ2007A_0021(0))
                a = 12;
            if (MZ2007A_0433() == MZ2007A_0022(0))
                a = 11;
            if (a == 12 && (MZ2007A_0433() == 199 || MZ2007A_0433() == 299 || MZ2007A_0433() == 399 || MZ2007A_0433() == 499 || MZ2007A_0433() == 599 || MZ2007A_0433() == 699 || MZ2007A_0433() == 799 || MZ2007A_0433() == 899 || MZ2007A_0433() == 999 || MZ2007A_0433() == 1099 || MZ2007A_0433() == 1100))
                a = 10;
        }
        break;
        case dataset_id::tt2000a:
        {
            if (TT2000A_0412() == 2 && TT2000A_0516() != TT2000A_0515())
                a = 20;
        }
        break;
        case dataset_id::pl2002a:
        {
            if (PL2002A_0432() == PL2002A_0021(0))
                a = 10;
            if (PL2002A_0435() > 0)
                a = 30;
        }
        break;
        case dataset_id::pg1990a:
        {
            if (PG1990A_0412() >= 1 && PG1990A_0412() <= 20 &&
				PG1990A_0413() >= 1 && PG1990A_0413() <= 20 &&
				PG1990A_0413() == PG1990A_0412() && PG1990A_0406() >= 1)
				a = 10;
            if (PG1990A_0412() >= 1 && PG1990A_0412() <= 20 &&
				PG1990A_0413() >= 1 && PG1990A_0413() <= 20 &&
				PG1990A_0413() != PG1990A_0412() && PG1990A_0406() >= 1)
				a = 20;
            if (PG1990A_0412() >= 1 && PG1990A_0412() <= 20 &&
				PG1990A_0413() > 20 && PG1990A_0413() < 99 && PG1990A_0406() >= 1)
				a = 30;
			if (PG1990A_0406() >= 1 && PG1990A_0412() >= 22)
				a = 0;
        }
        break;
        case dataset_id::pg2011a:
        {
            if (PG2011A_0415() >= 1 && PG2011A_0415() <= 22 &&
				PG2011A_0417() >= 1 && PG2011A_0417() <= 22 &&
				PG2011A_0029(0) == 0 && PG2011A_0406() >= 1 &&
				PG2011A_0417() == PG2011A_0415())
				a = 10;
            if (PG2011A_0415() >= 1 && PG2011A_0415() <= 22 &&
				PG2011A_0417() >= 1 && PG2011A_0417() <= 22 &&
				PG2011A_0029(0) == 0 && PG2011A_0406() >= 1 &&
				PG2011A_0417() != PG2011A_0415())
				a = 20;
            if (PG2011A_0415() >= 1 && PG2011A_0415() <= 22 &&
				PG2011A_0417() > 23 && PG2011A_0417() < 998 &&
				PG2011A_0029(0) == 0 && PG2011A_0406() >= 1)
				a = 30;
            if (PG2011A_0415() >= 1 && PG2011A_0415() <= 22 &&
				PG2011A_0417() >= 1 && PG2011A_0417() <= 22 &&
				PG2011A_0029(0) == 0 && PG2011A_0406() >= 1 &&
				PG2011A_0415() == PG2011A_0417() &&
				PG2011A_0416() == PG2011A_0418() &&
				PG2011A_0416() >= 101 && PG2011A_0416() <= 2206 &&
				(PG2011A_0416() != 199 && PG2011A_0416() != 299 && PG2011A_0416() != 399 && PG2011A_0416() != 499 &&
				PG2011A_0416() != 599 && PG2011A_0416() != 699 && PG2011A_0416() != 799 && PG2011A_0416() != 899 &&
				PG2011A_0416() != 999 && PG2011A_0416() != 1099 && PG2011A_0416() != 1199 && PG2011A_0416() !=1299 &&
				PG2011A_0416() != 1399 && PG2011A_0416() != 1499 && PG2011A_0416() != 1599 && PG2011A_0416() != 1699 &&
				PG2011A_0416() != 1799 && PG2011A_0416() != 1899 && PG2011A_0416() != 1999 && PG2011A_0416() != 2099 &&
				PG2011A_0416() != 2199))
				a = 11;
            if (PG2011A_0415() >= 1 && PG2011A_0415() <= 22 &&
				PG2011A_0417() >= 1 && PG2011A_0417() <= 22 &&
				PG2011A_0029(0) == 0 && PG2011A_0406() >= 1 &&
				PG2011A_0415() == PG2011A_0417() &&
				PG2011A_0416() != PG2011A_0418() &&
				PG2011A_0416() >= 101 && PG2011A_0416() <= 2206 &&
				(PG2011A_0416() != 199 && PG2011A_0416() != 299 && PG2011A_0416() != 399 && PG2011A_0416() != 499 &&
				PG2011A_0416() != 599 && PG2011A_0416() != 699 && PG2011A_0416() != 799 && PG2011A_0416() != 899 &&
				PG2011A_0416() != 999 && PG2011A_0416() != 1099 && PG2011A_0416() != 1199 && PG2011A_0416() !=1299 &&
				PG2011A_0416() != 1399 && PG2011A_0416() != 1499 && PG2011A_0416() != 1599 && PG2011A_0416() != 1699 &&
				PG2011A_0416() != 1799 && PG2011A_0416() != 1899 && PG2011A_0416() != 1999 && PG2011A_0416() != 2099 &&
				PG2011A_0416() != 2199))
				a = 12;
			if ((PG2011A_0415() >= 23 && PG2011A_0415() < 998) || PG2011A_0406() < 1)
				a = 0;
        }
        break;
		case dataset_id::ru2010a:
        {
			if (RU2010A_0435() == RU2010A_0004(0) && RU2010A_0435() < 100)
                a = 10;
			if (RU2010A_0435() != RU2010A_0004(0) && RU2010A_0435() < 100)
                a = 20;
			if (RU2010A_0435() >= 101 && RU2010A_0435() < 998)
                a = 30;
			if (RU2010A_0401() == 0)
                a = 0;
        }
        break;
        case dataset_id::es2005h:
		case dataset_id::es2005i:
		case dataset_id::es2005j:
		case dataset_id::es2005k:
        case dataset_id::es2006h:
		case dataset_id::es2006i:
		case dataset_id::es2006j:
		case dataset_id::es2006k:
        case dataset_id::es2007h:
		case dataset_id::es2007i:
		case dataset_id::es2007j:
		case dataset_id::es2007k:
        case dataset_id::es2008h:
		case dataset_id::es2008i:
		case dataset_id::es2008j:
		case dataset_id::es2008k:
        case dataset_id::es2009h:
		case dataset_id::es2009i:
		case dataset_id::es2009j:
		case dataset_id::es2009k:
        case dataset_id::es2010h:
		case dataset_id::es2010i:
		case dataset_id::es2010j:
		case dataset_id::es2010k:
        case dataset_id::es2011h:
		case dataset_id::es2011i:
		case dataset_id::es2011j:
		case dataset_id::es2011k:
        case dataset_id::es2012h:
		case dataset_id::es2012i:
		case dataset_id::es2012j:
		case dataset_id::es2012k:
        case dataset_id::es2013h:
		case dataset_id::es2013i:
		case dataset_id::es2013j:
		case dataset_id::es2013k:
        case dataset_id::es2014h:
		case dataset_id::es2014i:
		case dataset_id::es2014j:
		case dataset_id::es2014k:
        case dataset_id::es2015h:
		case dataset_id::es2015i:
		case dataset_id::es2015j:
		case dataset_id::es2015k:
        case dataset_id::es2016h:
		case dataset_id::es2016i:
		case dataset_id::es2016j:
		case dataset_id::es2016k:
        case dataset_id::es2017h:
		case dataset_id::es2017i:
		case dataset_id::es2017j:
		case dataset_id::es2017k:
        case dataset_id::es2018h:
		case dataset_id::es2018i:
		case dataset_id::es2018j:
		case dataset_id::es2018k:
        case dataset_id::es2019h:
		case dataset_id::es2019i:
		case dataset_id::es2019j:
		case dataset_id::es2019k: {
			long inspain = valueFromFirstAvailable({
				ES2005H_0483_ref, ES2005I_0483_ref, ES2005J_0483_ref, ES2005K_0483_ref,
				ES2006H_0483_ref, ES2006I_0483_ref, ES2006J_0483_ref, ES2006K_0483_ref,
				ES2007H_0483_ref, ES2007I_0483_ref, ES2007J_0483_ref, ES2007K_0483_ref,
				ES2008H_0483_ref, ES2008I_0483_ref, ES2008J_0483_ref, ES2008K_0483_ref,
				ES2009H_0483_ref, ES2009I_0483_ref, ES2009J_0483_ref, ES2009K_0483_ref,
				ES2010H_0483_ref, ES2010I_0483_ref, ES2010J_0483_ref, ES2010K_0483_ref,
				ES2011H_0483_ref, ES2011I_0483_ref, ES2011J_0483_ref, ES2011K_0483_ref,
				ES2012H_0483_ref, ES2012I_0483_ref, ES2012J_0483_ref, ES2012K_0483_ref,
				ES2013H_0483_ref, ES2013I_0483_ref, ES2013J_0483_ref, ES2013K_0483_ref,
				ES2014H_0483_ref, ES2014I_0483_ref, ES2014J_0483_ref, ES2014K_0483_ref,
				ES2015H_0483_ref, ES2015I_0483_ref, ES2015J_0483_ref, ES2015K_0483_ref,
				ES2016H_0483_ref, ES2016I_0483_ref, ES2016J_0483_ref, ES2016K_0483_ref,
				ES2017H_0483_ref, ES2017I_0483_ref, ES2017J_0483_ref, ES2017K_0483_ref,
				ES2018H_0483_ref, ES2018I_0483_ref, ES2018J_0483_ref, ES2018K_0483_ref,
				ES2019H_0483_ref, ES2019I_0483_ref, ES2019J_0483_ref, ES2019K_0483_ref});
			long region = valueFromFirstAvailable({
				ES2005H_0484_ref, ES2005I_0484_ref, ES2005J_0484_ref, ES2005K_0484_ref,
				ES2006H_0484_ref, ES2006I_0484_ref, ES2006J_0484_ref, ES2006K_0484_ref,
				ES2007H_0484_ref, ES2007I_0484_ref, ES2007J_0484_ref, ES2007K_0484_ref,
				ES2008H_0484_ref, ES2008I_0484_ref, ES2008J_0484_ref, ES2008K_0484_ref,
				ES2009H_0484_ref, ES2009I_0484_ref, ES2009J_0484_ref, ES2009K_0484_ref,
				ES2010H_0484_ref, ES2010I_0484_ref, ES2010J_0484_ref, ES2010K_0484_ref,
				ES2011H_0484_ref, ES2011I_0484_ref, ES2011J_0484_ref, ES2011K_0484_ref,
				ES2012H_0484_ref, ES2012I_0484_ref, ES2012J_0484_ref, ES2012K_0484_ref,
				ES2013H_0484_ref, ES2013I_0484_ref, ES2013J_0484_ref, ES2013K_0484_ref,
				ES2014H_0484_ref, ES2014I_0484_ref, ES2014J_0484_ref, ES2014K_0484_ref,
				ES2015H_0484_ref, ES2015I_0484_ref, ES2015J_0484_ref, ES2015K_0484_ref,
				ES2016H_0484_ref, ES2016I_0484_ref, ES2016J_0484_ref, ES2016K_0484_ref,
				ES2017H_0484_ref, ES2017I_0484_ref, ES2017J_0484_ref, ES2017K_0484_ref,
				ES2018H_0484_ref, ES2018I_0484_ref, ES2018J_0484_ref, ES2018K_0484_ref,
				ES2019H_0484_ref, ES2019I_0484_ref, ES2019J_0484_ref, ES2019K_0484_ref});
			long province = valueFromFirstAvailable({
				ES2005H_0003_ref, ES2005I_0003_ref, ES2005J_0003_ref, ES2005K_0003_ref,
				ES2006H_0003_ref, ES2006I_0003_ref, ES2006J_0003_ref, ES2006K_0003_ref,
				ES2007H_0003_ref, ES2007I_0003_ref, ES2007J_0003_ref, ES2007K_0003_ref,
				ES2008H_0003_ref, ES2008I_0003_ref, ES2008J_0003_ref, ES2008K_0003_ref,
				ES2009H_0003_ref, ES2009I_0003_ref, ES2009J_0003_ref, ES2009K_0003_ref,
				ES2010H_0003_ref, ES2010I_0003_ref, ES2010J_0003_ref, ES2010K_0003_ref,
				ES2011H_0003_ref, ES2011I_0003_ref, ES2011J_0003_ref, ES2011K_0003_ref,
				ES2012H_0003_ref, ES2012I_0003_ref, ES2012J_0003_ref, ES2012K_0003_ref,
				ES2013H_0003_ref, ES2013I_0003_ref, ES2013J_0003_ref, ES2013K_0003_ref,
				ES2014H_0003_ref, ES2014I_0003_ref, ES2014J_0003_ref, ES2014K_0003_ref,
				ES2015H_0003_ref, ES2015I_0003_ref, ES2015J_0003_ref, ES2015K_0003_ref,
				ES2016H_0003_ref, ES2016I_0003_ref, ES2016J_0003_ref, ES2016K_0003_ref,
				ES2017H_0003_ref, ES2017I_0003_ref, ES2017J_0003_ref, ES2017K_0003_ref,
				ES2018H_0003_ref, ES2018I_0003_ref, ES2018J_0003_ref, ES2018K_0003_ref,
				ES2019H_0003_ref, ES2019I_0003_ref, ES2019J_0003_ref, ES2019K_0003_ref});
			if (inspain < 99 && inspain != province) {
                a = 20;
			}
			if (region < 999) {
                a = 30;
			}
		}
        break;
        case dataset_id::sn2013a:
        {
			if (SN2013A_0431() >= 1 && SN2013A_0431() <= 14 && SN2013A_0432() == SN2013A_0023(0) && SN2013A_0432() != 10 && SN2013A_0432() != 20 && SN2013A_0432() != 30 && SN2013A_0432() != 40 && SN2013A_0432() != 50 && SN2013A_0432() != 60 && SN2013A_0432() != 70 && SN2013A_0432() != 80 && SN2013A_0432() != 90 && SN2013A_0432() != 100 && SN2013A_0432() != 110 && SN2013A_0432() != 120 && SN2013A_0432() != 130 && SN2013A_0432() != 140 && SN2013A_0432() != 999)
				a = 11;
			if (SN2013A_0431() >= 1 && SN2013A_0431() <= 14 && SN2013A_0431() == SN2013A_0022(0) && SN2013A_0432() != SN2013A_0023(0) && SN2013A_0432() != 10 && SN2013A_0432() != 20 && SN2013A_0432() != 30 && SN2013A_0432() != 40 &&  SN2013A_0432() != 50 && SN2013A_0432() != 60 && SN2013A_0432() != 70 && SN2013A_0432() != 80 && SN2013A_0432() != 90 && SN2013A_0432() != 100 && SN2013A_0432() != 110 && SN2013A_0432() != 120 && SN2013A_0432() != 130 && SN2013A_0432() != 140 && SN2013A_0432() != 999)
				a = 12;
			if (SN2013A_0431() >= 1 && SN2013A_0431() <= 14 && SN2013A_0431() != SN2013A_0022(0))
				a = 20; 
		}
		break;
		if (AGE() < 1)
            a = 0;
        }


        setData(a);
    }
};

    

Description

MIGRATE1 indicates the person's place of residence 1 year ago. The first digit records movement across major administrative divisions and countries; the second digit reports movement across minor administrative divisions.

Comparability — Index

GENERAL
Austria
Botswana
Burkina Faso
Canada
France
Ireland
Italy
Kenya
Malawi
Netherlands
Portugal
Slovenia
South Sudan
Spain
Sudan
Trinidad and Tobago
United Kingdom
Zambia

Comparability — General

This variable is conceptually similar across samples, although the geographic units differ.

The major administrative units are as follows:

Department: Greece
District: Botswana
Province: Burkina Faso, Canada, Kenya, Mozambique, Poland, Papua New Guinea, Spain, Zambia
Region: France, Ireland, Italy, Malawi, Netherlands, Russia, Slovenia, Senegal, United, SKingdom, Tanzania, Trinidad and Tobago
State: Austria, South Sudan, Sudan, United States
Subdistrict: Portugal

The minor administrative units are:

Census District: Canada
Department: France, Senegal
District: Kenya, Malawi, Mozambique, Papua New Guinea, Zambia
Municipality: Greece, Italy, Portugal, Slovenia, Spain
NUTS 3: Austria
PUMA (Public Use Microdata Area): Unites States

The Netherlands and Slovenia combine inter-regional and international migrants.

The codes for MIGRATE1 correspond to those used for the other migration status variables available in other samples: MIGRATE5, MIGRATEP, MIGRATEC, and MIGRATE0. Those variables are conceptually similar to MIGRATE1, but differ in terms of their reference periods.

Comparability — Austria [top]

The 2011 sample contains an additional unharmonized source variable that identifies moves within and between municipalities.

Comparability — Botswana [top]

All samples distinguish moves between dwellings within the person's current locality of residence. See the unharmonized source variables.

Comparability — Burkina Faso [top]

While the highest level geographic unit for the Burkina Faso samples is region (Level 1 in IPUMS), region is not available for the 1985 sample; therefore, for this variable, province was used as the major administrative unit.

Fifteen additional provinces were created between 1985 and 2006.

Comparability — Canada [top]

The 2000 sample identifies moves between units at the second administrative level (census divisions); the 1990 sample only identifies inter-province migrants.

Comparability — France [top]

The variable is available only for the 2011 sample. For other France samples (1962-2006) migration status can be found inĀ MIGRATE5, (Migration status, 5 years) and MIGRATEC, (Migration status, last census). The unharmonized source variable retains detail on intra-department and intra-municipality migration, as well as distinguishing EU and non-EU international migration.

Comparability — Ireland [top]

The 1981-1996 censuses asked the question of all persons age 1 year or older, whereas the 2002-2011 censuses asked the question of persons age 1 year or older who were not absent on the census day.

In the 2011 sample, respondents who resided in Tipperary 1 year previously are coded as unknown. Tipperary is split between two household geography categories--Mid-West and South-East. It cannot be determined if there was movement between major administrative units (regions) for these cases.

The 2016 includes a related unharmonized source variable that allows identifying if a person was residing in the same address, elsewhere in Ireland, or abroad.

Comparability — Italy [top]

For all census samples, the source variable identifies moves between municipalities within provinces. Those shorter moves are not captured by MIGRATE1, but the source variable retains the intra-province migrations.

In the Italy Labor Force surveys 2011-2019, persons under 1 year old cannot be identified in the labor force survey and are therefore included in the universe.

Comparability — Kenya [top]

Numerous additional Kenyan districts were created between 1979 and 2009; consequently, some proportion of identical migrations would be coded differently in the different Kenyan samples in MIGRATE1.

Comparability — Malawi [top]

The source variable identifies moves between districts -- regional movements are inferred from district classifications.

Comparability — Netherlands [top]

Persons living abroad are combined with inter-regional migrants. The Netherlands uses the NUTS 3 Eurostat geographic classification.

Comparability — Portugal [top]

The period of reference is somewhat more than one year in each sample. The 1981, 1991 and 2001, 2011 census questions asked for place of residence on December 31 of 1979, 1989, and 1999, and 2009 respectively. Each of the censuses was taken in April or March.

Comparability — Slovenia [top]

Persons living abroad are combined with inter-regional migrants. The unharmonized source variable further identifies persons who did not move between dwellings within municipalities

Comparability — South Sudan [top]

Sudan and South Sudan were one country in 2008. Migrants from Sudan are treated as internal migrants in MIGRATE1.

Comparability — Spain [top]

In the Spain Labor Force surveys 2005-2019, persons under 1 year old cannot be identified and are therefore included in the universe.

Comparability — Sudan [top]

Sudan and South Sudan were one country in 2008. Migrants from South Sudan are treated as internal migrants in MIGRATE1.

Comparability — Trinidad and Tobago [top]

The major administrative unit, region, includes municipalities, cities, and boroughs.

Comparability — United Kingdom [top]

The geographic units are SARS regions created for the census public use samples. They differ between samples, but are of approximately the same size. See REGNUK.

The source variables identify persons who did not change address in the previous year.

Comparability — Zambia [top]

The source variables identify moves between districts; provincial movements are implied from district classifications. Between 1990 and 2010, 19 districts were created. One new province, Muchinga, was created between 2000 and 2010.

The 2010 sample has a slightly different universe than the earlier samples, as absent household members were excluded.

Universe

  • Austria 2011: Persons age 1+
  • Botswana 1981: Persons age 1+
  • Botswana 1991: Persons age 1+
  • Botswana 2001: Persons age 1+ except institutionalized non-residents
  • Botswana 2011: Persons age 1+ except institutionalized non-residents
  • Burkina Faso 1985: Persons age 1+
  • Burkina Faso 1996: Persons age 1+
  • Burkina Faso 2006: Persons age 1+
  • Canada 1991: Persons age 1+ in private households
  • Canada 2001: Persons age 1+ who resided in Canada, not institutionalized
  • France 2011: Persons age 1+
  • Greece 1991: Persons age 1+
  • Greece 2001: Persons age 1+
  • Greece 2011: Persons age 1+
  • Ireland 1981: Persons age 1+
  • Ireland 1986: Persons age 1+
  • Ireland 1991: Persons age 1+
  • Ireland 1996: Persons age 1+
  • Ireland 2002: Residents age 1+
  • Ireland 2006: Residents age 1+
  • Ireland 2011: Residents age 1+
  • Italy 2001: Persons age 1+
  • Italy 2011Q1: All persons
  • Italy 2012Q1: All persons
  • Italy 2013Q1: All persons
  • Italy 2014Q1: All persons
  • Italy 2015Q1: All persons
  • Italy 2016Q1: All persons
  • Italy 2017Q1: All persons
  • Italy 2018Q1: All persons
  • Italy 2019Q1: All persons
  • Kenya 1979: Persons age 1+
  • Kenya 1989: Persons age 1+
  • Kenya 1999: Persons age 1+
  • Kenya 2009: Persons age 1+
  • Malawi 1987: Persons age 1+
  • Mozambique 1997: Residents age 1+
  • Mozambique 2007: Residents age 1+
  • Netherlands 2001: Persons age 1+
  • Papua New Guinea 1990: Persons age 1+ who resided in Papua New Guinea
  • Poland 2002: Persons age 1+
  • Portugal 1981: Persons born before 1980
  • Portugal 1991: Persons born before 1990
  • Portugal 2001: Persons born before 2000
  • Portugal 2011: Persons born before 2010
  • Russia 2010: Persons age 1+
  • Senegal 2013: Residents age 1+ in ordinary households
  • Slovenia 2002: Persons age 1+
  • South Sudan 2008: Persons age 1+
  • Spain 1991: Persons age 1+
  • Spain 2005Q1: All persons
  • Spain 2005Q2: All persons
  • Spain 2005Q3: All persons
  • Spain 2005Q4: All persons
  • Spain 2006Q1: All persons
  • Spain 2006Q2: All persons
  • Spain 2006Q3: All persons
  • Spain 2006Q4: All persons
  • Spain 2007Q1: All persons
  • Spain 2007Q2: All persons
  • Spain 2007Q3: All persons
  • Spain 2007Q4: All persons
  • Spain 2008Q1: All persons
  • Spain 2008Q2: All persons
  • Spain 2008Q3: All persons
  • Spain 2008Q4: All persons
  • Spain 2009Q1: All persons
  • Spain 2009Q2: All persons
  • Spain 2009Q3: All persons
  • Spain 2009Q4: All persons
  • Spain 2010Q1: All persons
  • Spain 2010Q2: All persons
  • Spain 2010Q3: All persons
  • Spain 2010Q4: All persons
  • Spain 2011: Persons age 1+
  • Spain 2011Q1: All persons
  • Spain 2011Q2: All persons
  • Spain 2011Q3: All persons
  • Spain 2011Q4: All persons
  • Spain 2012Q1: All persons
  • Spain 2012Q2: All persons
  • Spain 2012Q3: All persons
  • Spain 2012Q4: All persons
  • Spain 2013Q1: All persons
  • Spain 2013Q2: All persons
  • Spain 2013Q3: All persons
  • Spain 2013Q4: All persons
  • Spain 2014Q1: All persons
  • Spain 2014Q2: All persons
  • Spain 2014Q3: All persons
  • Spain 2014Q4: All persons
  • Spain 2015Q1: All persons
  • Spain 2015Q2: All persons
  • Spain 2015Q3: All persons
  • Spain 2015Q4: All persons
  • Spain 2016Q1: All persons
  • Spain 2016Q2: All persons
  • Spain 2016Q3: All persons
  • Spain 2016Q4: All persons
  • Spain 2017Q1: All persons
  • Spain 2017Q2: All persons
  • Spain 2017Q3: All persons
  • Spain 2017Q4: All persons
  • Spain 2018Q1: All persons
  • Spain 2018Q2: All persons
  • Spain 2018Q3: All persons
  • Spain 2018Q4: All persons
  • Spain 2019Q1: All persons
  • Spain 2019Q2: All persons
  • Spain 2019Q3: All persons
  • Spain 2019Q4: All persons
  • Sudan 2008: Persons age 1+
  • Tanzania 2002: Persons age 1+ in private households
  • Trinidad and Tobago 2000: Persons age 1+
  • United Kingdom 1991: Persons age 1+
  • United Kingdom 2001: Persons age 1+, not non-resident students
  • United States 2005: Persons age 1+
  • United States 2010: Persons age 1+
  • United States 2015: Persons age 1+
  • Zambia 1990: Persons age 1+
  • Zambia 2000: Persons age 1+
  • Zambia 2010: Present household members and visitors age 1+

Availability

  • Austria: 2011
  • Botswana: 1981, 1991, 2001, 2011
  • Burkina Faso: 1985, 1996, 2006
  • Canada: 1991, 2001
  • France: 2011
  • Greece: 1991, 2001, 2011
  • Ireland: 1981, 1986, 1991, 1996, 2002, 2006, 2011
  • Italy: 2001, 2011Q1, 2012Q1, 2013Q1, 2014Q1, 2015Q1, 2016Q1, 2017Q1, 2018Q1, 2019Q1
  • Kenya: 1979, 1989, 1999, 2009
  • Malawi: 1987
  • Mozambique: 1997, 2007
  • Netherlands: 2001
  • Papua New Guinea: 1990
  • Poland: 2002
  • Portugal: 1981, 1991, 2001, 2011
  • Russia: 2010
  • Senegal: 2013
  • Slovenia: 2002
  • South Sudan: 2008
  • Spain: 1991, 2005Q1, 2005Q2, 2005Q3, 2005Q4, 2006Q1, 2006Q2, 2006Q3, 2006Q4, 2007Q1, 2007Q2, 2007Q3, 2007Q4, 2008Q1, 2008Q2, 2008Q3, 2008Q4, 2009Q1, 2009Q2, 2009Q3, 2009Q4, 2010Q1, 2010Q2, 2010Q3, 2010Q4, 2011, 2011Q1, 2011Q2, 2011Q3, 2011Q4, 2012Q1, 2012Q2, 2012Q3, 2012Q4, 2013Q1, 2013Q2, 2013Q3, 2013Q4, 2014Q1, 2014Q2, 2014Q3, 2014Q4, 2015Q1, 2015Q2, 2015Q3, 2015Q4, 2016Q1, 2016Q2, 2016Q3, 2016Q4, 2017Q1, 2017Q2, 2017Q3, 2017Q4, 2018Q1, 2018Q2, 2018Q3, 2018Q4, 2019Q1, 2019Q2, 2019Q3, 2019Q4
  • Sudan: 2008
  • Tanzania: 2002
  • Trinidad and Tobago: 2000
  • United Kingdom: 1991, 2001
  • United States: 2005, 2010, 2015
  • Zambia: 1990, 2000, 2010