Data Cart

Your data extract

0 variables
0 samples
View Cart
ONEROOM
Number of households sharing one room

Codes and Frequencies



An 'X' indicates the category is available for that sample

00Not sharingXX
011 householdXX
022 householdsXX
033 householdsXX
044 householdsXX
055 householdsXX
066 households·X
077 households·X
088 households·X
099 households·X
1010 or more households·X
98Unknown·X
99NIU (not in universe)XX

Explore how IPUMS created this variable

Download


      class Oneroom : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::gh2010a: {
      if (GH2010A_0056(0) == 0 && GH2010A_0055(0) == 2)
        a = 1;
      if (GH2010A_0056(0) == 0 && GH2010A_0055(0) == 3)
        a = 0;
    } break;
    }

    setData(a);
  }
};