Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_5_CN
Province of residence 5 years ago, China; 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_cn : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::cn1990a: {
      if (CN1990A_0407() == 1 || CN1990A_0407() == 2)
        a = GEO1_CN(0);
    } break;
    case dataset_id::cn2000a: {
      if (CN2000A_0412() == 1 || CN2000A_0412() == 2)
        a = GEO1_CN(0);
    } break;
    }

    setData(a);
  }
};