Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG2_P_BR
Municipality of previous residence, Brazil; 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 Mig2_p_br : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::br1980a: {
      if (BR1980A_0418() == 999999 || BR1980A_0418() == 0)
        a = GEO2_BR(0);
    } break;
    case dataset_id::br1991a: {
      if (BR1991A_0427() == 99)
        a = GEO2_BR(0);
    } break;
    case dataset_id::br2010a: {
      if (BR2010A_0424() == 9999999 && BR2010A_0422() == 1)
        a = GEO2_BR(0);
      if (BR2010A_0424() == 9999999 && BR2010A_0422() == 2)
        a = 76097997;
    } break;
    }

    setData(a);
  }
};