Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG2_5_VN
District of residence 5 years ago, Vietnam; consistent boundaries, GIS

Codes and Frequencies



Loading Frequency Data...

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

Explore how IPUMS created this variable

Download


      class Mig2_5_vn : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::vn2009a: {
      if (VN2009A_0439() == 999 && VN2009A_0403() >= 5 && VN2009A_0404() == 5)
        a = 704097097;
      if (VN2009A_0439() == 999 && VN2009A_0403() >= 5 && VN2009A_0404() <= 3)
        a = GEO2_VN(0);
      if (VN2009A_0439() == 999 && VN2009A_0403() >= 5 && VN2009A_0404() == 4)
        a = 704098098;
    } break;
    case dataset_id::vn2019a: {
      if (VN2019A_0415() == 99999 && VN2019A_0413() == 1)
        a = 704097097;
    } break;
    }

    setData(a);
  }
};