Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_P_ZA
Province of previous residence, South Africa; 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_p_za : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::za2007a: {
      if (ZA2007A_0421() == 0 && ZA2007A_0418() != 0)
        a = GEO1_ZA(0);
    } break;
    case dataset_id::za2011a: {
      if (ZA2011A_0422() == 99 && (ZA2011A_0419() == 1 || ZA2011A_0419() == 3))
        a = GEO1_ZA(0);
    } break;
    case dataset_id::za2016a: {
      if (ZA2016A_0427() == 99 && (ZA2016A_0424() == 1 || ZA2016A_0424() == 3))
        a = GEO1_ZA(0);
    } break;
    }

    setData(a);
  }
};