Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_VN
Province 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 Mig1_5_vn : public Editor {

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

    long a = getRecoded();
    if (dataSet == dataset_id::vn1989a) {
      if (VN1989A_0431() >= 5 && VN1989A_0408() == 99)
        a = GEO1_VN(0);
      if (VN1989A_0407() == 4 && VN1989A_0408() == 99)
        a = 704097;
    }
    if (dataSet == dataset_id::vn1999a) {
      if (VN1999A_0406() >= 5 && VN1999A_0416() == 999)
        a = GEO1_VN(0);
      if (VN1999A_0414() == 5 && VN1999A_0416() == 999)
        a = 704097;
    }
    if (dataSet == dataset_id::vn2009a) {
      if (VN2009A_0440() == 99 && VN2009A_0403() >= 5)
        a = GEO1_VN(0);
      if (VN2009A_0440() == 99 && VN2009A_0404() == 5)
        a = 704097;
    }
    if (dataSet == dataset_id::vn2019a) {
      if (VN2019A_0414() == 99 && VN2019A_0413() == 1)
        a = 704097;
    }

    setData(a);
  }
};