Data Cart

Your data extract

0 variables
0 samples
View Cart
ESTABSZ
Size of work establishment

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

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

    long a = getRecoded();
    switch (dataSet) {
    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 numbwk = valueFromFirstAvailable(
          {IT2011H_0442_ref, IT2012H_0442_ref, IT2013H_0442_ref,
           IT2014H_0442_ref, IT2015H_0442_ref, IT2016H_0442_ref,
           IT2017H_0442_ref, IT2018H_0442_ref, IT2019H_0442_ref,
           IT2020H_0442_ref});
      long numbcat = valueFromFirstAvailable(
          {IT2011H_0443_ref, IT2012H_0443_ref, IT2013H_0443_ref,
           IT2014H_0443_ref, IT2015H_0443_ref, IT2016H_0443_ref,
           IT2017H_0443_ref, IT2018H_0443_ref, IT2019H_0443_ref,
           IT2020H_0443_ref});
      if (numbwk == 1 && numbcat < 6) {
        a = 2;
      }
    } break;
    }
    setData(a);
  }
};