Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_1_IT
Region 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 Mig1_1_it : public Editor {

public:
  Mig1_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 regionone = valueFromFirstAvailable(
          {IT2014H_0733_ref, IT2015H_0733_ref, IT2016H_0733_ref,
           IT2017H_0733_ref, IT2018H_0733_ref, IT2019H_0733_ref,
           IT2020H_0733_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 (regionone == 99 && munione == 4) {
        a = 380097;
      }
      if (regionone == 99 && munione == 99) {
        a = GEO1_IT(0);
      }
    } break;
    }
    setData(a);
  }
};