Data Cart

Your data extract

0 variables
0 samples
View Cart

LIVEAREA is a 3-digit numeric variable.

Codes

000 = NIU (not in universe)
999 = Unknown

Top codes:

Unless otherwise specified: 998+
Austria 1991-2001: 150+
Belarus 1999: 201+
Belarus 2009: 250+
Germany 1987: 361+
Hungary 2001: 260+
Hungary 2011: 301+
Iran 2006: 501+
Italy 2001: 150+
Italy 2011: 145+
Laos 2005: 200+
Philippines 1990-2010: 200+
Poland 2002: 200+
Romania 2002: 221+
Romania 2011: 500+
Slovenia 2002: 101+
Spain 1991: 181+
Spain 2001-2011: 900+
Switzerland 1980-1990: 400+
Switzerland 2000: 500+

Explore how IPUMS created this variable

Download


      class Livearea : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::de1981a: {
      a = DE1981A_0057(0) + DE1981A_0058(0) + DE1981A_0059(0);
      if (DE1981A_0057(0) == 230)
        a = 230;
      if (DE1981A_0057(0) == 999)
        a = 0;
    } break;
    case dataset_id::de1971a: {
      a = (int)(((float)DE1971A_0049(0) + (float)DE1971A_0050(0) +
                 (float)DE1971A_0053(0)) /
                    10.0 +
                0.5);
      if (DE1971A_0049(0) == 9999)
        a = 0;
      if (a > 998 || DE1971A_0049(0) == 9998 || DE1971A_0050(0) == 998 ||
          DE1971A_0053(0) == 9998)
        a = 999;
    } break;
    case dataset_id::id2010a: {
      if (ID2010A_0035(0) > 998 && ID2010A_0035(0) < 9999)
        a = 998;
    } break;
    }

    setData(a);
  }
};