Data Cart

Your data extract

0 variables
0 samples
View Cart

Codes and Frequencies



Can't find the category you are looking for? Try the Detailed codes

Explore how IPUMS created this variable

Download


      class Disorig : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::ug2002a: {
      if (UG2002A_0418() < 9)
        a = 70;
    } break;
    case dataset_id::rw2002a: {
      if (RW2002A_0416() == 9 && RW2002A_0415() == 98)
        a = 50;
      if (RW2002A_0416() == 8 && (RW2002A_0415() == 1 || RW2002A_0415() == 99))
        a = 99;
      if (RW2002A_0416() == 9 && RW2002A_0403() == 3)
        a = 0;
    } break;
    case dataset_id::mw2008a: {
      if (MW2008A_0419() == 9 && MW2008A_0418() == 0)
        a = 99;
    } break;
    case dataset_id::mx2010a: {
      if (MX2010A_0424() == 1 && (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) && MX2010A_0425() == 1 &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 1 &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 1 &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 1 &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 1 &&
              (MX2010A_0430() == 1 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 1 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 1 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 1 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 1 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 1 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 1 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 1)
        a = 10;
      if (MX2010A_0424() == 2 && (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) && MX2010A_0425() == 2 &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 2 &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 2 &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 2 &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 2 &&
              (MX2010A_0430() == 2 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 2 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 2 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 2 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 2 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 2 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 2 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 2)
        a = 20;
      if (MX2010A_0424() == 3 && (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) && MX2010A_0425() == 3 &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 3 &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 3 &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 3 &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 3 &&
              (MX2010A_0430() == 3 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 3 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 3 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 3 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 3 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 3 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 3 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 3)
        a = 30;
      if (MX2010A_0424() == 4 && (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) && MX2010A_0425() == 4 &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 4 &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 4 &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 4 &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 4 &&
              (MX2010A_0430() == 4 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 4 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 4 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 4 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 4 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 4 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 4 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 4)
        a = 41;
      if (MX2010A_0424() == 5 && (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) && MX2010A_0425() == 5 &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 5 &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 5 &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 5 &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 5 &&
              (MX2010A_0430() == 5 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 5 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 5 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 5 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 5 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 5 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 5 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 5)
        a = 49;
      if (MX2010A_0424() == 8 && (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) && MX2010A_0425() == 8 &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              MX2010A_0426() == 8 &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              MX2010A_0427() == 8 &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              MX2010A_0428() == 8 &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              MX2010A_0429() == 8 &&
              (MX2010A_0430() == 8 || MX2010A_0430() == 9) ||
          (MX2010A_0424() == 8 || MX2010A_0424() == 9) &&
              (MX2010A_0425() == 8 || MX2010A_0425() == 9) &&
              (MX2010A_0426() == 8 || MX2010A_0426() == 9) &&
              (MX2010A_0427() == 8 || MX2010A_0427() == 9) &&
              (MX2010A_0428() == 8 || MX2010A_0428() == 9) &&
              (MX2010A_0429() == 8 || MX2010A_0429() == 9) &&
              MX2010A_0430() == 8)
        a = 50;
      if (MX2010A_0424() == 9 && MX2010A_0425() == 9 && MX2010A_0426() == 9 &&
          MX2010A_0427() == 9 && MX2010A_0428() == 9 && MX2010A_0429() == 9 &&
          MX2010A_0430() == 9)
        a = 99;
    } break;
    case dataset_id::zm2010a: {
      if (ZM2010A_0473() == 99 && ZM2010A_0417() == 9)
        a = 0;
    } break;
    case dataset_id::sr2012a: {
      if ((SR2012A_0414() == 1 || SR2012A_0414() == 9) &&
          (SR2012A_0415() == 1 || SR2012A_0415() == 9) &&
          (SR2012A_0416() == 1 || SR2012A_0416() == 9) &&
          (SR2012A_0417() == 1 || SR2012A_0417() == 9) &&
          (SR2012A_0418() == 1 || SR2012A_0418() == 9) &&
          (SR2012A_0419() == 1 || SR2012A_0419() == 9) &&
          (SR2012A_0420() == 1 || SR2012A_0420() == 9))
        a = 10;
      if ((SR2012A_0414() == 2 || SR2012A_0414() == 9) &&
          (SR2012A_0415() == 2 || SR2012A_0415() == 9) &&
          (SR2012A_0416() == 2 || SR2012A_0416() == 9) &&
          (SR2012A_0417() == 2 || SR2012A_0417() == 9) &&
          (SR2012A_0418() == 2 || SR2012A_0418() == 9) &&
          (SR2012A_0419() == 2 || SR2012A_0419() == 9) &&
          (SR2012A_0420() == 2 || SR2012A_0420() == 9))
        a = 20;
      if ((SR2012A_0414() == 4 || SR2012A_0414() == 9) &&
          (SR2012A_0415() == 4 || SR2012A_0415() == 9) &&
          (SR2012A_0416() == 4 || SR2012A_0416() == 9) &&
          (SR2012A_0417() == 4 || SR2012A_0417() == 9) &&
          (SR2012A_0418() == 4 || SR2012A_0418() == 9) &&
          (SR2012A_0419() == 4 || SR2012A_0419() == 9) &&
          (SR2012A_0420() == 4 || SR2012A_0420() == 9))
        a = 30;
      if ((SR2012A_0414() == 3 || SR2012A_0414() == 9) &&
          (SR2012A_0416() == 3 || SR2012A_0416() == 9) &&
          (SR2012A_0419() == 3 || SR2012A_0419() == 9))
        a = 32;
      if ((SR2012A_0414() == 5 || SR2012A_0414() == 9) &&
          (SR2012A_0415() == 5 || SR2012A_0415() == 9) &&
          (SR2012A_0416() == 5 || SR2012A_0416() == 9) &&
          (SR2012A_0417() == 5 || SR2012A_0417() == 9) &&
          (SR2012A_0418() == 5 || SR2012A_0418() == 9) &&
          (SR2012A_0419() == 5 || SR2012A_0419() == 9) &&
          (SR2012A_0420() == 5 || SR2012A_0420() == 9))
        a = 40;
      if (SR2012A_0414() == 8 || SR2012A_0415() == 8 || SR2012A_0416() == 8 ||
          SR2012A_0417() == 8 || SR2012A_0418() == 8 || SR2012A_0419() == 8 ||
          SR2012A_0420() == 8)
        a = 99;
      if (SR2012A_0414() == 9 && SR2012A_0415() == 9 && SR2012A_0416() == 9 &&
          SR2012A_0417() == 9 && SR2012A_0418() == 9 && SR2012A_0419() == 9 &&
          SR2012A_0420() == 9)
        a = 90;
    } break;
    case dataset_id::sl2015a: {
      if (SL2015A_0420() == 9)
        a = 0;
      if (SL2015A_0420() == 8)
        a = 99;
    } break;
    }

    setData(a);
  }
};

    

Description

DISORIG indicates the cause or origin of a person's stated disability.

Comparability — Index

GENERAL
Cambodia
Dominican Republic
Ethiopia
Laos
Liberia
Malawi
Mexico
Mozambique
Panama
Paraguay
Rwanda
Sierra Leone
Suriname
Turkey
Uganda
Zambia

Comparability — General

DISORIG is comparable between samples at the first digit of the variable, except for Panama and Cambodia, which identified only congenital and non-congenital causes. Other samples have differing detailed categories.

Only permanent conditions were to be considered disabilities.

The Panama sample asked the question only of persons age 40 or younger.

Comparability — Cambodia [top]

The variable is constructed from responses from questions on disabilities since birth (congenital) and after birth. Reponses indicating a congenital disability in seeing, speech, hearing, movement, or mental are in the "Congenital" category, regardless of whether a second disability developed after birth is specified. Responses indicating only a disability developed after birth (non-congenital) are in the "Other" category.

Comparability — Dominican Republic [top]

The 2002 sample specifies physical and mental disabilities. The unharmonized variable indicates the origin of any disability and the respondent may have indicated one or multiple causes.

Comparability — Ethiopia [top]

Persons with a psychological disability were not asked this question regarding the cause and are coded with "no disability" for the purpose of DISORIG.

Comparability — Laos [top]

The variable indicates the cause of the respondent's main difficulty. The 2015 sample identifies limitations in sight, hearing, walking or climbing stairs, remembering or concentrating, washing or dressing, and communicating.

Comparability — Liberia [top]

The variable indicates the main cause of the respondent's disability. The 2008 sample identifies limitations in sight, hearing, speaking, physical disabilities, and mental disabilities.

Comparability — Malawi [top]

Disability is defined as a physical or mental handicap which "inhibits the ability to work or participate in normal activities". The variable indicates the origin of the first disability only (out of a potential three listed disabilities). Responses indicating "injury" as the cause of disability are in the "Accident" category.

Comparability — Mexico [top]

In the 2000 sample, only one cause or origin of a person's disability is reported. This corresponds to the disability that creates the most difficulties in carrying out daily life activities.

In the 2010 and 2020 samples, the variable is constructed from separate responses for disabilities in walking, seeing, speaking, hearing, taking care of oneself, learning, and mental capacities. Persons reporting multiple reasons for their disability status were coded as "Multiple causes", unless the cause was the same for all declared disabilities. Thus, more detailed information on the cause or origin of disability can be found in the unharmonized version of this variable for the 2010 and 2020 samples.

In the 2000 and 2010 samples, disabilities originated by accident include acts of violence. In the 2010 and 2020 samples, disabilities related to illness include addictions.

Comparability — Mozambique [top]

In 2007 the variable is constructed from separate responses for blind, deaf, mental and physical problems. The person could select more than one cause of disability.

Comparability — Panama [top]

The variable is constructed from separate responses for blind, deaf, mental retardation and physical. Only persons age 40 or younger were asked the question.

Comparability — Paraguay [top]

In 2002 the variable is constructed from three responses.

Comparability — Rwanda [top]

For the 2002 sample, the "genocide" response was intended for persons who were disabled through harassment due to race or political opinions. There was no such instruction for the 2012 sample.

The source variable code for "war injury" was "war" in the 2002 sample and "war or mines" in the 2012 sample.

Comparability — Sierra Leone [top]

The 2015 sample records the cause of the main disability. In the other harmonized disability variables, the 2015 sample records the person's main or second type of disability. Thus, the cause of disability reported in DISORIG does not necessarily equate with the responses in those other variables.

Comparability — Suriname [top]

In 2012, the variable is constructed from separate responses for disabilities in seeing, hearing, walking, remembering, personal care, lifting/reaching/carrying, and communicating. Persons reporting multiple reasons for their disability status were coded as "multiple causes", unless the cause was the same for all declared disabilities. Thus, more detailed information on cause or origin of disability can be found in the unharmonized source variables for the 2012 sample.

Comparability — Turkey [top]

In the 1985 sample, this variable corresponds to the cause of the most severe disability, given that multiple disabilities were not identified for this census sample.

Comparability — Uganda [top]

The 2001 sample stipulated that disabilities were conditions that were expected to last six months or more. More than one disability could be identified in 2001.

Comparability — Zambia [top]

In 2000 and 2010, a disability is defined as a limitation in the kind or amount of activities that a person can do because of the ongoing difficulties due to a long-term physical condition, mental condition or health problem. Short term disabilities due to temporary conditions are excluded. In 2000, it is specified that only disabilities lasting for more than six months should be included.

Causes coded as "other" include unsuccessful medical surgery, witchcraft, and wrongful application of traditional and conventional medicine. In 2010, "Other form of violence" indicates violence perpetrated by a person other than the spouse.

Universe

  • Cambodia 2008: All persons
  • Colombia 2005: All persons
  • Dominican Republic 2002: All persons
  • Ethiopia 2007: All persons
  • France 1962: All persons
  • Laos 2015: All persons
  • Lesotho 2006: All persons
  • Liberia 2008: All persons
  • Malawi 2008: Non-visitors
  • Mexico 2000: All persons
  • Mexico 2010: All persons
  • Mexico 2020: All persons
  • Mozambique 2007: Household residents
  • Panama 1980: Persons age 40 or less
  • Paraguay 2002: All persons
  • Rwanda 2002: Non-visitors
  • Rwanda 2012: All persons
  • Sierra Leone 2004: All persons
  • Sierra Leone 2015: Persons in private households
  • Suriname 2012: All persons
  • Turkey 1985: All persons
  • Uganda 1991: All persons
  • Uganda 2002: All persons
  • Zambia 2000: All persons
  • Zambia 2010: Present persons and visitors

Availability

  • Cambodia: 2008
  • Colombia: 2005
  • Dominican Republic: 2002
  • Ethiopia: 2007
  • France: 1962
  • Laos: 2015
  • Lesotho: 2006
  • Liberia: 2008
  • Malawi: 2008
  • Mexico: 2000, 2010, 2020
  • Mozambique: 2007
  • Panama: 1980
  • Paraguay: 2002
  • Rwanda: 2002, 2012
  • Sierra Leone: 2004, 2015
  • Suriname: 2012
  • Turkey: 1985
  • Uganda: 1991, 2002
  • Zambia: 2000, 2010