Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG2_1_IT
Province of residence 1 year ago, Italy; consistent boundaries, GIS

Codes

This variable is not available for any of the currently selected samples.

Explore how IPUMS created this variable

Download


      class Mig2_1_it : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::it2014h:
    case dataset_id::it2015h:
    case dataset_id::it2016h:
    case dataset_id::it2017h:
    case dataset_id::it2018h:
    case dataset_id::it2019h:
    case dataset_id::it2020h: {
      long provone = valueFromFirstAvailable(
          {IT2014H_0734_ref, IT2015H_0734_ref, IT2016H_0734_ref,
           IT2017H_0734_ref, IT2018H_0734_ref, IT2019H_0734_ref,
           IT2020H_0734_ref});
      long munione = valueFromFirstAvailable(
          {IT2014H_0732_ref, IT2015H_0732_ref, IT2016H_0732_ref,
           IT2017H_0732_ref, IT2018H_0732_ref, IT2019H_0732_ref,
           IT2020H_0732_ref});
      if (provone == 999 && munione == 4) {
        a = 380097097;
      }
      if (provone == 999 && munione == 99) {
        a = GEO2_IT(0);
      }
    } break;
    }
    setData(a);
  }
};