Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_SN
Region of residence 5 years ago, Senegal; consistent boundaries, GIS

Codes and Frequencies



An 'X' indicates the category is available for that sample

686001DakarXXX
686002ZiguinchorXXX
686003DiourbelXXX
686004Saint Louis, Louga, MatamXXX
686005Tambacounda, KedougouXXX
686006Kaolack, Fatick, KaffrineXXX
686007ThièsXXX
686010Kolda, SedhiouXXX
686097AbroadXXX
686098UnknownX··
686099NIU (not in universe)XXX

Explore how IPUMS created this variable

Download


      class Mig1_5_sn : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::sn2002a: {
      if (SN2002A_0404() < 5)
        a = 686099;
    } break;
    case dataset_id::sn1988a: {
      if (SN1988A_0427() == 0)
        a = GEO1_SN(0);
    } break;
    }

    setData(a);
  }
};