Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_BO
Department 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 Mig1_5_bo : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::bo1992a: {
      if (BO1992A_0418() == 0 && BO1992A_0451() == 1)
        a = 68097;
    } break;
    case dataset_id::bo2001a: {
      if (BO2001A_0448() == 9999 && BO2001A_0445() == 3)
        a = 68097;
      if (BO2001A_0448() == 9999 && BO2001A_0445() == 1 && BO2001A_0406() > 4)
        a = GEO1_BO(0);
    } break;
    case dataset_id::bo2012a: {
      if (BO2012A_0440() == 9999 && BO2012A_0438() == 3)
        a = 68097;
      if (BO2012A_0440() == 9999 && BO2012A_0438() == 1 && BO2012A_0406() > 4)
        a = GEO1_BO(0);
    } break;
    }

    setData(a);
  }
};