Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_P_SV
Department of previous residence, El Salvador; 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_sv : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::sv1992a: {
      if (SV1992A_0444() == 99)
        a = GEO1_SV(0);
    } break;
    case dataset_id::sv2007a: {
      if (SV2007A_0474() == 99 && SV2007A_0475() == 3)
        a = 222097;
      if (SV2007A_0474() == 99 && SV2007A_0475() == 1)
        a = GEO1_SV(0);
    } break;
    }

    setData(a);
  }
};