Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1ALT_7_MA
Region of residence 7 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_7_ma : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::ma1982a: {
      if (MA1982A_0411() == 0 && MA1982A_0404() >= 7)
        a = GEO1ALT_MA(0);
      if (MA1982A_0404() < 7)
        a = 504099;
    } break;
    }

    setData(a);
  }
};