Data Cart

Your data extract

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

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::pe2007a: {
      if (PE2007A_0415() == 9999 && PE2007A_0403() > 4)
        a = GEO2_PE(0);
      if (PE2007A_0414() < 9999)
        a = 604097097;
    } break;
    case dataset_id::pe2017a: {
      if (PE2017A_0414() < 9999)
        a = 604097097;
    } break;
    }

    setData(a);
  }
};