Data Cart

Your data extract

0 variables
0 samples
View Cart
OCCISCO
Occupation, ISCO general

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 Occisco : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::co1964a: {
      if (CO1964A_0417() == 999999)
        a = 99;
    } break;
    case dataset_id::mx1960a: {
      if (MX1960A_0415() == 0 && (MX1960A_0421() == 2 || MX1960A_0421() == 5)) {
        a = 6;
      }
    } break;
    case dataset_id::at1971a: {
      if (AT1971A_0416() == 3)
        a = 99;
    } break;
    case dataset_id::at1981a: {
      if (AT1981A_0416() == 3)
        a = 99;
    } break;
    case dataset_id::at1991a: {
      if (AT1991A_0421() == 2)
        a = 99;
    } break;
    case dataset_id::at2001a: {
      if (AT2001A_0422() == 3)
        a = 99;
    } break;
    case dataset_id::vn1999a: {
      if (VN1999A_0429() == 921)
        a = 6;
    } break;
    case dataset_id::it2011h:
    case dataset_id::it2012h:
    case dataset_id::it2013h:
    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 occcraft = valueFromFirstAvailable(
          {IT2011H_0690_ref, IT2012H_0690_ref, IT2013H_0690_ref,
           IT2014H_0690_ref, IT2015H_0690_ref, IT2016H_0690_ref,
           IT2017H_0690_ref, IT2018H_0690_ref, IT2019H_0690_ref,
           IT2020H_0690_ref});
      long indagri = valueFromFirstAvailable(
          {IT2011H_0729_ref, IT2012H_0729_ref, IT2013H_0729_ref,
           IT2014H_0729_ref, IT2015H_0729_ref, IT2016H_0729_ref,
           IT2017H_0729_ref, IT2018H_0729_ref, IT2019H_0729_ref,
           IT2020H_0729_ref});
      if (occcraft == 6 && indagri == 1) {
        a = 6;
      }
    } break;
    case dataset_id::sn2013a: {
      if (SN2013A_0479() == 98 && SN2013A_0470() >= 3 && SN2013A_0470() <= 8)
        a = 99;
    } break;
    }

    setData(a);
  }
};