Data Cart

Your data extract

0 variables
0 samples
View Cart
PHONE
Telephone availability

Codes and Frequencies



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

0NIU (not in universe)X····X·XXXXXXXX0NIU (not in universe)·X··XXXX·XXXXXX0NIU (not in universe)XXXXXXXXXX···XX0NIU (not in universe)X·XX·XXX·X·XXXX0NIU (not in universe)XXXXXXX··X·XX··0NIU (not in universe)XXX·X·XX·X·XXXX0NIU (not in universe)XXXXXX···XXXXXX0NIU (not in universe)XXX····X··XXXX·0NIU (not in universe)·XX··X·XXX··XX·0NIU (not in universe)XXXXXXXXXXX·XXX0NIU (not in universe)XX····
1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXXXXXXXXXXX1NoXXXXXX
2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXXXXXXXXXXX2YesXXXXXX
9Unknown/missing··XXXXX··X·X···9Unknown/missingX······XX····X·9Unknown/missingX···X·XXX···XX·9Unknown/missing········X·XXXXX9Unknown/missingXXXXX·X·····XXX9Unknown/missingXXX·XX··XXXX···9Unknown/missing·XXX···········9Unknown/missing··XX·X··X·X···X9Unknown/missing····X··XXX·XX··9Unknown/missing·······XXXX·X··9Unknown/missingX·XX··

Explore how IPUMS created this variable

Download


      class Phone : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::de1970a: {
      a = 1;
      for (int i = 1; i <= countPeople(); i++) {
        if (DE1970A_0469(i) == 1)
          a = 2;
      }
    } break;
    case dataset_id::ng2008a: {
      if (NG2008A_0046(0) == 2 && NG2008A_0052(0) == 1)
        a = 2;
    } break;
    case dataset_id::ng2009a: {
      if (NG2009A_0050(0) == 2 && NG2009A_0056(0) == 1)
        a = 2;
    } break;
    }

    setData(a);
  }
};