Data Cart

Your data extract

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

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::id1976a: {
      if (ID1976A_0423() == 0 && ID1976A_0405() >= 5 && ID1976A_0405() <= 98)
        a = GEO1_ID(0);
    } break;
    case dataset_id::id1995a: {
      if (ID1995A_0421() == 99 && ID1995A_0403() >= 5)
        a = GEO1_ID(0);
    } break;
    case dataset_id::id2005a: {
      if (ID2005A_0417() == 99 && ID2005A_0403() >= 5)
        a = GEO1_ID(0);
    } break;
    }

    setData(a);
  }
};