Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG2_5_BO
Province of residence 5 years ago, Bolivia; 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_bo : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::bo1992a: {
      if (BO1992A_0418() == 0 && BO1992A_0451() == 1 && BO1992A_0404() >= 5 &&
          BO1992A_0404() <= 98)
        a = 68997997;
    } break;
    case dataset_id::bo2001a: {
      if (BO2001A_0448() == 9999 && BO2001A_0445() == 3 && BO2001A_0406() >= 5)
        a = 68997997;
      if (BO2001A_0448() == 9999 && BO2001A_0445() == 1 && BO2001A_0406() >= 5)
        a = GEO2_BO(0);
    } break;
    case dataset_id::bo2012a: {
      if (BO2012A_0440() == 9999 && BO2012A_0438() == 3 && BO2012A_0406() >= 5)
        a = 68997997;
    } break;
    }

    setData(a);
  }
};