Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_BR
State of residence 5 years ago, 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 Mig1_5_br : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::br1991a: {
      if (BR1991A_0430() == 0 && BR1991A_0415() > 4)
        a = GEO1_BR(0);
      if (BR1991A_0430() == 70)
        a = GEO1_BR(0);
    } break;
    case dataset_id::br2000a: {
      if (BR2000A_0457() == 999 && BR2000A_0415() > 4)
        a = GEO1_BR(0);
    } break;
    case dataset_id::br2010a: {
      if (BR2010A_0427() == 99 && BR2010A_0404() > 4)
        a = GEO1_BR(0);
      if (BR2010A_0427() == 99 && BR2010A_0426() == 2)
        a = 76097;
    } break;
    }

    setData(a);
  }
};