Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1ALT_5_MA
Region of residence 5 years ago, Morocco; 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 Mig1alt_5_ma : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::ma2004a: {
      if (MA2004A_0441() == 990 &&
          (MA2004A_0409() >= 5 && MA2004A_0409() <= 98))
        a = GEO1ALT_MA(0);
      if (MA2004A_0409() < 5)
        a = 504099;
    } break;
    }

    setData(a);
  }
};