Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_CO
Department of residence 5 years ago, Colombia; 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_co : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::co1985a: {
      if (CO1985A_0410() == 999 && CO1985A_0403() >= 5)
        a = GEO1_CO(0);
      if (CO1985A_0409() >= 3 && CO1985A_0409() <= 6)
        a = 170097;
    } break;
    case dataset_id::co1993a: {
      if (CO1993A_0417() == 1 && CO1993A_0418() == 0)
        a = GEO1_CO(0);
      if (CO1993A_0417() == 3)
        a = 170097;
    } break;
    case dataset_id::co2005a: {
      if (CO2005A_0419() == 999 && CO2005A_0418() == 3)
        a = 170097;
    } break;
    }

    setData(a);
  }
};