Data Cart

Your data extract

0 variables
0 samples
View Cart
GQ
Group quarters (collective dwelling) status

Codes and Frequencies



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

Explore how IPUMS created this variable

Download


      class Gq : public Editor {

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

    long a = getRecoded();
    if (countPeople() < 1) {
      a = 0;
    } else {
      switch (dataSet) {
      case dataset_id::br1960a: {
        switch (BR1960A_0430(1)) {
        case 1:
        case 2:
        case 3:
        case 4:
          a = 10;
          break;
        case 5:
        case 9:
          a = 20;
          break;
        }
      } break;
      case dataset_id::br1970a: {
        if (BR1970A_0006() == 3)
          a = 10;
      } break;
      case dataset_id::mx1970a: {
        if (MX1970A_0029(0) != 0 && MX1970A_0030(0) != 0)
          a = 20;
        else {
          a = 10;
        }
      } break;
      case dataset_id::cl1970a: {
        if (CL1970A_0055(0) == 1 && CL1970A_0097(0) == 2)
          a = 29;
      } break;
      case dataset_id::cl1982a: {
        if (CL1982A_0057(0) <= 8 && CL1982A_0067(0) == 1)
          a = 29;
      } break;
      case dataset_id::cl1992a: {
        if (CL1992A_0034(0) <= 7 && CL1992A_0072(0) == 2)
          a = 29;
      } break;
      case dataset_id::cl2002a: {
        if (CL2002A_0026(0) <= 8 && CL2002A_0081(0) == 2)
          a = 29;
      } break;
      case dataset_id::cn1982a: {
        if (CN1982A_0009(0) == 1 && CN1982A_0026(0) == 2)
          a = 29;
      } break;
      case dataset_id::cr1973a: {
        if (CR1973A_0017(0) <= 4 && CR1973A_0053(0) == 1)
          a = 29;
      } break;
      case dataset_id::cr1984a: {
        if (CR1984A_0019(0) <= 4 && CR1984A_0073(0) == 2)
          a = 29;
      } break;
      case dataset_id::cr2000a: {
        if (CR2000A_0025(0) <= 4 && CR2000A_0076(0) == 1)
          a = 29;
      } break;
      case dataset_id::ec1974a: {
        if (EC1974A_0017(0) <= 8 && EC1974A_0043(0) == 2)
          a = 29;
      } break;
      case dataset_id::ec1982a: {
        if (EC1982A_0016(0) <= 9 && EC1982A_0043(0) == 1)
          a = 29;
      } break;
      case dataset_id::ec1990a: {
        if (EC1990A_0040(0) <= 8 && EC1990A_0059(0) == 2)
          a = 29;
      } break;
      case dataset_id::ec2001a: {
        if (EC2001A_0044(0) <= 8 && EC2001A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::ve1971a: {
        if (VE1971A_0030(0) <= 7 && VE1971A_0066(0) == 2)
          a = 29;
      } break;
      case dataset_id::ve1981a: {
        if (VE1981A_0021(0) <= 7 && VE1981A_0053(0) == 2)
          a = 29;
      } break;
      case dataset_id::ve1990a: {
        if (VE1990A_0039(0) <= 8 && VE1990A_0065(0) == 2)
          a = 29;
      } break;
      case dataset_id::za1996a: {
        if (ZA1996A_0026(0) <= 11 && ZA1996A_0060(0) == 2)
          a = 29;
        if (ZA1996A_0403(1) == 3 || ZA1996A_0403(1) == 4 ||
            ZA1996A_0403(1) == 5 || ZA1996A_0403(1) == 8 ||
            ZA1996A_0403(1) == 9 || ZA1996A_0403(1) == 10 ||
            ZA1996A_0403(1) == 12 || ZA1996A_0403(1) == 16 ||
            ZA1996A_0403(1) == 19)
          a = 21;
        if (ZA1996A_0060(0) == 2)
          a = 29;
      } break;
      case dataset_id::za2001a: {
        if (ZA2001A_0020(0) <= 10 && ZA2001A_0073(0) == 2)
          a = 29;
      } break;
      case dataset_id::es2001a: {
        if (ES2001A_0028(0) == 99 && ES2001A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::kh1998a: {
        if (KH1998A_0027(0) == 1 && KH1998A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ph1990a: {
        if (PH1990A_0026(0) <= 3 && PH1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ph1995a: {
        if (PH1995A_0035(0) == 10 && PH1995A_0018(0) == 2)
          a = 29;
      } break;
      case dataset_id::ug1991a: {
        if (UG1991A_0022(0) == 0 && UG1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ug2002a: {
        if (UG2002A_0124(0) == 1 && UG2002A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::ar1970a: {
        if (AR1970A_0042(0) != 0 && AR1970A_0018(0) == 2)
          a = 29;
      } break;
      case dataset_id::ar1980a: {
        if (AR1980A_0035(0) != 9 && AR1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ar1991a: {
        if (AR1991A_0046(0) == 99 && AR1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::hu2001a: {
        if (HU2001A_0027(0) != 4 && HU2001A_0027(0) != 9 &&
            HU2001A_0020(0) == 2)
          a = 29;
      } break;
      case dataset_id::il1972a: {
        if ((IL1972A_0034(0) == 1 || IL1972A_0034(0) == 4) &&
            IL1972A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::il1995a: {
        if (IL1995A_0401(1) == 1)
          a = 10;
        if (IL1995A_0401(1) == 2)
          a = 22;
        if (IL1995A_0401(1) == 3)
          a = 20;
      } break;
      case dataset_id::ps1997a: {
        if (PS1997A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::pt1981a: {
        if (PT1981A_0038(0) != 3 && PT1981A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::rw1991a: {
        if (RW1991A_0039(0) != 0 && RW1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::rw2002a: {
        if (RW2002A_0037(0) == 100 && RW2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tz1988a: {
        if (TZ1988A_0016(0) == 2)
          a = 29;
        else
          a = 10;
      } break;
      case dataset_id::at1971a: {
        if (AT1971A_0037(0) != 7 && AT1971A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::at1981a: {
        if (AT1981A_0037(0) != 7 && AT1981A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::at1991a: {
        if (AT1991A_0028(0) != 7 && AT1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::at2001a: {
        if (AT2001A_0037(0) != 7 && AT2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cn1990a: {
        if (CN1990A_0028(0) == 1 && CN1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::co2005a: {
        if (CO2005A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::eg1996a: {
        if (EG1996A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::gh2000a: {
        if (GH2000A_0036(0) == 1 && GH2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::iq1997a: {
        if (IQ1997A_0058(0) == 0 && IQ1997A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mx2005a: {
        if (MX2005A_0032(0) == 16 && MX2005A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::my1970a: {
        if (MY1970A_0051(0) <= 12 && MY1970A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::my1980a: {
        if (MY1980A_0072(0) <= 13 && MY1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::my1991a: {
        if (MY1991A_0033(0) <= 9 && MY1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::my2000a: {
        if (MY2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa1960a: {
        if (PA1960A_0038(0) == 99 && PA1960A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa1970a: {
        if (PA1970A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa1980a: {
        if (PA1980A_0043(0) != 9 && PA1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa1990a: {
        if (PA1990A_0080(0) <= 5 && PA1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa2000a: {
        if (PA2000A_0040(0) <= 31 && PA2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ve2001a: {
        if (VE2001A_0038(0) <= 9 && VE2001A_0038(0) != 8 &&
            VE2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bo1976a: {
        if (BO1976A_0029(0) <= 17 && BO1976A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bo1992a: {
        if (BO1992A_0035(0) <= 6 && BO1992A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bo2001a: {
        if (BO2001A_0045(0) <= 15 && BO2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fr1999a: {
        if ((FR1999A_0028(0) <= 2 || FR1999A_0028(0) == 5 ||
             FR1999A_0028(0) == 6 || FR1999A_0028(0) == 7) &&
            FR1999A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::gn1983a: {
        if (GN1983A_0047(0) == 1 &&
            (GN1983A_0016(0) == 2 || GN1983A_0021(0) > 0))
          a = 29;
      } break;
      case dataset_id::gn1996a: {
        if (GN1996A_0035(0) == 1 && GN1996A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::kg1999a: {
        if (KG1999A_0045(0) <= 4 && KG1999A_0016(0) == 1)
          a = 29;
      } break;
      case dataset_id::mn2000a: {
        if ((MN2000A_0032(0) <= 2 || MN2000A_0032(0) >= 5) &&
            MN2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cu2002a: {
        if (CU2002A_0024(0) == 1 && CU2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ml1987a: {
        if (ML1987A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pk1998a: {
        if (PK1998A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pe1993a: {
        if ((PE1993A_0047(0) <= 8 || PE1993A_0047(0) == 16) &&
            PE1993A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pe2007a: {
        if (PE2007A_0036(0) <= 8 && PE2007A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::lc1980a: {
        if (LC1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::lc1991a: {
        if (LC1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::sn1988a: {
        if (SN1988A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::sn2002a: {
        if (SN2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ch1970a: {
        if (CH1970A_0022(0) <= 3200 && CH1970A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ch1980a: {
        if (CH1980A_0022(0) <= 3200 && CH1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ch1990a: {
        if ((CH1990A_0022(0) <= 3200 || CH1990A_0022(0) == 9800) &&
            CH1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ch2000a: {
        if ((CH2000A_0022(0) <= 3200 || CH2000A_0022(0) == 9800) &&
            CH2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tz2002a: {
        if (TZ2002A_0052(0) == 2 && TZ2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::th1970a: {
        if (TH1970A_0040(0) == 1 && TH1970A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::th1980a: {
        if (TH1980A_0038(0) == 1 && TH1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::th1990a: {
        if (TH1990A_0042(0) <= 11 && TH1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::th2000a: {
        if (TH2000A_0027(0) == 1 && TH2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::sd2008a: {
        if (SD2008A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mw2008a: {
        if (MW2008A_0027(0) == 1 && MW2008A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mw1998a: {
        if (MW1998A_0027(0) == 1 && MW1998A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mw1987a: {
        if (MW1987A_0092(0) == 1 && MW1987A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::jm2001a: {
        if (JM2001A_0101(0) == 0 && JM2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::jm1982a: {
        if (JM1982A_0073(0) == 0 && JM1982A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ie1986a: {
        if (IE1986A_0025(0) == 0 && IE1986A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ie1981a: {
        if (IE1981A_0022(0) >= 1 && IE1981A_0022(0) <= 2 &&
            IE1981A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ie1979a: {
        if (IE1979A_0021(0) >= 1 && IE1979A_0021(0) <= 2 &&
            IE1979A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ie1971a: {
        if (IE1971A_0021(0) == 1 && IE1971A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ir2006a: {
        if (IR2006A_0027(0) == 1 && IR2006A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::de1987a: {
        if (DE1987A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::de1981a: {
        if (DE1981A_0027(0) == 1 && DE1981A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::de1971a: {
        if (DE1971A_0019(0) == 1 && DE1971A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::eg2006a: {
        if (EG2006A_0032(0) == 99 && EG2006A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::kh2008a: {
        if (KH2008A_0027(0) == 1 && KH2008A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fr2006a: {
        if (FR2006A_0029(0) == 0 && FR2006A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::sv1992a: {
        if (SV1992A_0036(0) <= 8 && SV1992A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::sv2007a: {
        if (SV2007A_0038(0) <= 9 && SV2007A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::id1971a: {
        if (ID1971A_0028(0) == 1 && ID1971A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::id1980a: {
        if (ID1980A_0028(0) == 1 && ID1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::id1990a: {
        if (ID1990A_0024(0) == 1 && ID1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::id2000a: {
        if (ID2000A_0030(0) == 1 && ID2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ni1995a: {
        if (NI1995A_0027(0) <= 7 && NI1995A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ni2005a: {
        if (NI2005A_0029(0) <= 7 && NI2005A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tr1985a: {
        if (TR1985A_0027(0) == 1 && TR1985A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tr1990a: {
        if (TR1990A_0027(0) == 1 && TR1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tr2000a: {
        if (TR2000A_0026(0) == 1 && TR2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1963a: {
        if (UY1963A_0042(0) <= 19 && UY1963A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1975a: {
        if (UY1975A_0043(0) <= 25 && UY1975A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1985a: {
        if (UY1985A_0038(0) == 0 && UY1985A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1996a: {
        if (UY1996A_0027(0) <= 6 && UY1996A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bf1985a: {
        if (BF1985A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bf1996a: {
        if (BF1996A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bf2006a: {
        if (BF2006A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bd1991a: {
        if (BD1991A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bd2001a: {
        if (BD2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bd2011a: {
        if (BD2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cm1976a: {
        if (CM1976A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cm1987a: {
        if (CM1987A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cm2005a: {
        if (CM2005A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ec2010a: {
        if (EC2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fj1966a: {
        if (FJ1966A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fj1976a: {
        if (FJ1976A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fj1986a: {
        if (FJ1986A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fj1996a: {
        if (FJ1996A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fj2007a: {
        if (FJ2007A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ht1971a: {
        if (HT1971A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ht1982a: {
        if (HT1982A_0041(0) == 2)
          a = 0;
        if (HT1982A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ke1969a: {
        if (KE1969A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pa2010a: {
        if (PA2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ss2008a: {
        if (SS2008A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::do2002a: {
        if (DO2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::do2010a: {
        if (DO2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::gh2010a: {
        if (GH2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ie2011a: {
        if (IE2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::lr2008a: {
        if (LR2008A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ua2001a: {
        if (UA2001A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy2011a: {
        if (UY2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ml2009a: {
        if (ML2009A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::zm1990a: {
        if (ZM1990A_0052(0) == 6)
          a = 22;
        if (ZM1990A_0052(0) == 7)
          a = 21;
        if (ZM1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::zm2000a: {
        if (ZM2000A_0039(0) == 8)
          a = 20;
        if (ZM2000A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::at2011a: {
        if (AT2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cr2011a: {
        if (CR2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::et1984a: {
        if (ET1984A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::et1994a: {
        if (ET1994A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::et2007a: {
        if (ET2007A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::fr2011a: {
        if (FR2011A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::gh1984a: {
        if (GH1984A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mz1997a: {
        if (MZ1997A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::mz2007a: {
        if (MZ2007A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::py1962a: {
        if (PY1962A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::py1972a: {
        if (PY1972A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::py1982a: {
        if (PY1982A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::py1992a: {
        if (PY1992A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::py2002a: {
        if (PY2002A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cn2000a: {
        if (CN2000A_0445(1) == 2)
          a = 20;
      } break;
      case dataset_id::bw1981a: {
        if (BW1981A_0016(0) == 2 && BW1981A_0044(0) != 2)
          a = 29;
      } break;
      case dataset_id::bw1991a: {
        if (BW1991A_0016(0) == 2 && BW1991A_0022(0) != 2)
          a = 29;
      } break;
      case dataset_id::bw2001a: {
        if (BW2001A_0016(0) == 2 && BW2001A_0040(0) != 99)
          a = 29;
      } break;
      case dataset_id::bw2011a: {
        if (BW2011A_0016(0) == 2 && BW2011A_0022(0) != 2)
          a = 29;
      } break;
      case dataset_id::hu2011a: {
        if (HU2011A_0016(0) == 2 && HU2011A_0022(0) != 4)
          a = 29;
      } break;
      case dataset_id::ir2011a: {
        if (IR2011A_0016(0) == 2 && IR2011A_0024(0) != 3)
          a = 29;
      } break;
      case dataset_id::tz2012a: {
        if (TZ2012A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::tt1970a: {
        if (TT1970A_0016(0) == 2 && TT1970A_0039(0) >= 6)
          a = 29;
      } break;
      case dataset_id::tt1980a: {
        if (TT1980A_0016(0) == 2 && TT1980A_0049(0) >= 8)
          a = 29;
      } break;
      case dataset_id::tt1990a: {
        if (TT1990A_0016(0) == 2 && TT1990A_0036(0) >= 9)
          a = 29;
      } break;
      case dataset_id::tt2000a: {
        if (TT2000A_0016(0) == 2 && TT2000A_0045(0) >= 9)
          a = 29;
      } break;
      case dataset_id::uy1963x: {
        if (UY1963X_0042(0) <= 19 && UY1963X_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1975x: {
        if (UY1975X_0043(0) <= 25 && UY1975X_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1985x: {
        if (UY1985X_0038(0) == 0 && UY1985X_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy1996x: {
        if (UY1996X_0027(0) <= 6 && UY1996X_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::uy2011x: {
        if (UY2011X_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::ca1891a:
      case dataset_id::ca1901a:
      case dataset_id::ca1911a:
      case dataset_id::dk1787a:
      case dataset_id::dk1801a:
      case dataset_id::is1703a:
      case dataset_id::is1729a:
      case dataset_id::is1801a:
      case dataset_id::is1901a:
      case dataset_id::is1910a:
      case dataset_id::no1801a:
      case dataset_id::no1865a:
      case dataset_id::no1875a:
      case dataset_id::no1900a:
      case dataset_id::no1910a:
      case dataset_id::us1850a:
      case dataset_id::us1850b:
      case dataset_id::us1860a:
      case dataset_id::us1870a:
      case dataset_id::us1880a:
      case dataset_id::us1880b:
      case dataset_id::us1900a:
      case dataset_id::us1910a:
      case dataset_id::uk1851a:
      case dataset_id::uk1851b:
      case dataset_id::uk1851c:
      case dataset_id::uk1861a:
      case dataset_id::uk1861b:
      case dataset_id::uk1871b:
      case dataset_id::uk1881a:
      case dataset_id::uk1881b:
      case dataset_id::uk1891a:
      case dataset_id::uk1891b:
      case dataset_id::uk1901a:
      case dataset_id::uk1901b:
      case dataset_id::uk1911a:
      case dataset_id::se1880a:
      case dataset_id::se1890a:
      case dataset_id::se1900a:
      case dataset_id::se1910a:
      case dataset_id::ie1901a:
      case dataset_id::ie1911a: {
        a = 10;
        int numperhousehold = PERSONS(0);
        int count_relate_gt5000 = 0;
        for (int i = 1; i <= countPeople(); i++) {
          if (RELATE(i) >= 5000)
            count_relate_gt5000++;
        }
        float ratio = (float)count_relate_gt5000 / (float)numperhousehold;
        if (count_relate_gt5000 > 9 && numperhousehold > 11 && ratio > 0.8)
          a = 20;
      } break;
      case dataset_id::it2011a: {
        a = 22;
        if (IT2011A_0403(1) == 99)
          a = 10;
        if ((IT2011A_0403(1) >= 2 && IT2011A_0403(1) <= 6) ||
            (IT2011A_0403(1) >= 9 && IT2011A_0403(1) <= 11))
          a = 21;
        if (IT2011A_0016(0) == 2 && IT2011A_0403(1) == 99)
          a = 29;
      } break;
      case dataset_id::hn1988a: {
        if (HN1988A_0016(0) == 2 && HN1988A_0031(0) <= 5)
          a = 29;
      } break;
      case dataset_id::hn2001a: {
        if (HN2001A_0016(0) == 2 && HN2001A_0028(0) <= 7)
          a = 29;
      } break;
      case dataset_id::pg1980a: {
        if (PG1980A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pg1990a: {
        if (PG1990A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::pg2000a: {
        if (PG2000A_0016(0) == 2 && PG2000A_0029(0) <= 10)
          a = 29;
      } break;
      case dataset_id::fj2014a: {
        if (FJ2014A_0030() >= 1 && FJ2014A_0030() <= 6 && FJ2014A_0016() == 2)
          a = 29;
      } break;
      case dataset_id::gt1981a: {
        if (GT1981A_0036() >= 1 && GT1981A_0036() <= 6 && GT1981A_0022() == 2)
          a = 29;
      } break;
      case dataset_id::gt1994a: {
        if (GT1994A_0030() >= 1 && GT1994A_0030() <= 6 && GT1994A_0016() == 2)
          a = 29;
      } break;
      case dataset_id::gt2002a: {
        if (GT2002A_0030() >= 1 && GT2002A_0030() <= 6 && GT2002A_0016() == 2)
          a = 29;
      } break;
      case dataset_id::ru2002a: {
        if (RU2002A_0016() == 2)
          a = 29;
      } break;
      case dataset_id::ru2010a: {
        if (RU2010A_0018() == 2)
          a = 29;
      } break;
      case dataset_id::la2005a: {
        if (LA2005A_0024() == 2 && LA2005A_0018() == 2)
          a = 29;
      } break;
      case dataset_id::tg2010a: {
        if (TG2010A_0044() == 1 && TG2010A_0016() == 2)
          a = 29;
      } break;
      case dataset_id::id2010a: {
        if ((ID2010A_0047(0) <= 3 || ID2010A_0047(0) == 6) &&
            ID2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::br2010a: {
        if (BR2010A_0034(0) <= 53 && BR2010A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::bo2012a: {
        if (BO2012A_0034(0) >= 1 && BO2012A_0034(0) <= 5 &&
            BO2012A_0020(0) == 2)
          a = 29;
      } break;
      case dataset_id::cu2012a: {
        if (CU2012A_0030(0) == 1 && CU2012A_0018(0) == 2)
          a = 29;
      } break;
      case dataset_id::mu1990a: {
        if (MU1990A_0032(0) >= 1 && MU1990A_0032(0) <= 2 &&
            MU1990A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::mu2000a: {
        if (MU2000A_0034(0) >= 1 && MU2000A_0034(0) <= 2 &&
            MU2000A_0020(0) == 2)
          a = 29;
      } break;
      case dataset_id::mu2011a: {
        if (MU2011A_0029(0) >= 1 && MU2011A_0029(0) <= 2 &&
            MU2011A_0020(0) == 2)
          a = 29;
      } break;
      case dataset_id::mm2014a: {
        if (MM2014A_0053(0) == 1 && MM2014A_0017(0) == 2)
          a = 29;
      } break;
      case dataset_id::ps2017a: {
        if (PS2017A_0025(0) == 1 && PS2017A_0018(0) == 2)
          a = 29;
      } break;
      case dataset_id::sn2013a: {
        if (SN2013A_0034(0) == 1 && SN2013A_0016(0) == 2)
          a = 29;
      } break;
      case dataset_id::cl2017a: {
        if (CL2017A_0036(0) <= 7 && CL2017A_0020(0) == 2)
          a = 29;
      } break;
      case dataset_id::sl2015a: {
        if (SL2015A_0047(0) == 1 && SL2015A_0018(0) == 2)
          a = 29;
      } break;
      }
    }

    setData(a);
  }
};

    

Description

GQ identifies households as vacant dwellings, group quarters, or private households. Group quarters -- collective dwellings -- are generally institutions and other group living arrangements such as rooming houses and boarding schools.

Institutions often retain persons under formal supervision or custody, such as correctional institutions, military barracks, asylums, or nursing homes. Educational and religious group dwellings (e.g., boarding schools, convents, monasteries, etc.) are also included in the institutional classification.

Group quarter designations are often useful for understanding the universe of households that answered questions about household characteristics. Censuses will often exclude group quarters from such questions.

Comparability — Index

GENERAL
Argentina
Armenia
Belarus
Bolivia
Botswana
Brazil
Burkina Faso
Cambodia
Cameroon
Canada
Chile
China
Colombia
Costa Rica
Cuba
Côte d'Ivoire
Dominican Republic
Ecuador
Egypt
El Salvador
Ethiopia
Fiji
France
Germany
Ghana
Greece
Guatemala
Guinea
Haiti
Hungary
Indonesia
Iran
Iraq
Ireland
Israel
Italy
Jamaica
Jordan
Kenya
Kyrgyzstan
Laos
Malawi
Malaysia
Mali
Mauritius
Mexico
Mongolia
Morocco
Mozambique
Myanmar
Nepal
Netherlands
Nicaragua
Pakistan
Palestine
Panama
Paraguay
Peru
Philippines
Poland
Portugal
Puerto Rico
Romania
Russia
Rwanda
Saint Lucia
Senegal
South Africa
South Sudan
Spain
Sudan
Switzerland
Tanzania
Thailand
Togo
Trinidad and Tobago
Turkey
Uganda
Ukraine
United Kingdom
United States
Uruguay
Venezuela
Vietnam
Zambia

Comparability — General

Group quarters are not consistently identified across samples. Many samples contain only private households. Others indicate group quarters status, but the concept may be ill-defined. Some samples do not give any clear way of identifying residents of group quarters.

In many samples large dwellings/households are broken up and sampled as 1-person units. The common threshold is 30 or more persons, but it can be larger. Some samples were produced by statistical agencies in this way. If IPUMS carried out this processing and the original unit was not already classified as a group quarters, the 1-person units are given a distinct code within "group quarters" in GQ.

The second digit of GQ distinguishes institutions from other types of group quarters for selected samples. The basis upon which a given sample distinguishes between institutions and other group quarters is not always known. In many cases it depends entirely upon the terminology used, rather than explicit definitions. When the division was especially unclear, institutional and non-institutional group quarters are coded together even when detail was available. Oftentimes, institutional group quarters and other group living arrangements are combined in a single category in the original source variable. For example, many samples do not distinguish institutions such as boarding schools from non-institutional university student housing. University dormitories, if identified separately, are not considered institutions and are categorized as other group quarters. When combined with institutional group quarters, individuals residing in these facilities are included in the institution category. See the unharmonized source variables for the full categorizations.

The variable UNREL counts the number of persons unrelated to the household head in each household. It can be used to impose a more consistent definition of group quarters across samples.

The variable GQTYPE provides additional detail about specific group quarter types for some samples.

Country-specific considerations are discussed below. Omitted countries are comparable across time.

Comparability — Argentina [top]

The 1970 and 1980 samples do not distinguish institutions from group quarters, but the 1991 and 2001 samples make this distinction. In both the latter samples, institutions include military bases, prisons, and homes for children and elderly.

Comparability — Armenia [top]

The 2001 sample does not include group quarters. Group quarters are identified in the 2011 sample.

Comparability — Belarus [top]

The 1999 sample distinguishes between normal households, institutional households and other collective dwellings. The 2009 sample combines institutions and non-institutional collectives.

Comparability — Bolivia [top]

The samples are generally consistent in their identification of institutions and other group quarters. Institutions are military installations and prisons in all years, but 2001 also includes retirement homes and orphanages that must be included among the other group quarters in earlier samples. The 2012 sample includes a grouped category for collective dwellings that is classified as "institutions", even though some of the dwelling types covered were coded to "other group quarters" in 1976-2001. In 2012, other group quarters only includes persons in transit and those living in the street.

Comparability — Botswana [top]

All samples identify collective dwellings, combining institutions and non-institutions, such as hotels.

Comparability — Brazil [top]

The Brazilian samples distinguish regular households from improvised households, which include structures not intended for residential habitation to homeless persons. Group quarters are consistently defined as institutions and living arrangements determined by business or other non-domestic relations.

The 2010 sample provides additional detail about the type of collective housing unit, so distinctions are made between institutional and other types of group quarters.

Comparability — Burkina Faso [top]

The sample does not include group quarters.

Comparability — Cambodia [top]

The 1998 and 2008 samples distinguish between normal households, institutional households and other group quarters. The other group quarters includes homeless households, transient population and the boat population. The 2004, 2013, and 2019 samples do not identify group quarters.

Comparability — Cameroon [top]

In 1976 and 1987, censuses distinguish only between collective and non-collective households. The 2005 sample includes additional information about the type of collective housing.

Comparability — Canada [top]

The 2011 sample is the only census year that does not include group quarters.

Comparability — Chile [top]

Institutions are only differentiated from other group quarters in 1982 and 1992. Among the specified types of units qualifying as institutions are: hospitals, boarding schools, convents, and military barracks.

Comparability — China [top]

All samples identify normal households and collective households.

Comparability — Colombia [top]

The current samples for Colombia 1973-2005 contain only ordinary households, not group quarters. Vacant dwellings are included in 1985 and 1993. Group quarters status is not known for the 1964 data, which samples individuals rather than households. The indigenous population is excluded from all datasets.

Comparability — Costa Rica [top]

Institutions are only identified separately from other group quarters in 2000 and 2011. The types of collective dwellings identified vary from 2000 to 2011. See the unharmonized source variables for more detail.

Comparability — Cuba [top]

Collective dwellings are identified in the data, but the only distinction made among them is whether they were work locations. This information is available in the unharmonized source variable. Collectives include both institutions with permanent residents and hotels, hospitals, guest houses and the like.

Comparability — Côte d'Ivoire [top]

Both the 1988 and 1998 samples identify ordinary households and collective households. Collective households include boarding schools and university residences, barracks, orphanages, hotels, prisons, temporary construction sites, hospitals and other health facilities (psychiatric hospitals), monasteries, convents, and other religious institutions.

Comparability — Dominican Republic [top]

There are no group quarters identified in the 1960 or 1970 samples of individuals. Individuals from group quarters are not included in the 1981 sample. In in the 1987 sample, except for those created by breaking up very large units.

In sample from 2002 and 2010, institutions are listed by type and include military quarters, prisons, religious institutions, boarding schools and barracks. Collective dwellings include hotels and other lodging quarters.

Comparability — Ecuador [top]

The 1962 sample is a sample of individuals, not households. Only "households" composed of a head have a known group quarters status.

In 1974 and 1982 prisons are not identified and are therefore included among "other group quarters"; in other years they are coded as institutions. In all years, military barracks, hospitals, and religious institutions are included among "institutions."

The 1974 sample oversamples individuals in group quarters, and this is compensated for in the weight variable, PERWT.

Comparability — Egypt [top]

There are no group quarters in the 1986 and 1996 samples. The 2006 sample includes private households, institutions (orphanages, prisons, homes for the elderly) and other group quarters.

Comparability — El Salvador [top]

Both samples identify institutional dwellings; 1992 identifies other types of collectives as well.

Comparability — Ethiopia [top]

The 1984 and 1994 samples do not identify institutions but do distinguish persons living in hotels and other group quarters from homeless and nomadic persons in the unharmonized source variables. The 2007 sample further distinguishes among persons living in institutions, persons living in hotels and other group quarters, and homeless and nomadic persons. University student housing is grouped with boarding schools and is included in the institution category.

Comparability — Fiji [top]

The 1986, 1996, 2007 and 2014 samples are roughly comparable, but only separate hotels and lodging houses from regular households. The 1966 sample distinguishes between institutional and non-institutional collective dwellings. The 1976 sample makes no distinction.

Comparability — France [top]

The French samples consistently distinguish between "ordinary households" and group quarters, which include persons in institutions, members of the armed forces, and persons enumerated away from their households.

The 1990 French sample separately distinguishes persons in institutions from those in other forms of non-household living arrangements.

Comparability — Germany [top]

The 1970-1981 samples distinguish between private and collective dwellings. The 1981 sample identifies more group quarters than the earlier German samples.

There are no group quarters in the 1987 sample, except for those created by breaking up very large units.

Comparability — Ghana [top]

The samples are comparable across time. Institutions include educational and religious living quarters, orphanages, prisons, and army and refugee camps. University student housing is grouped with boarding schools and orphanages and is included in the institution category.

Comparability — Greece [top]

The samples for Greece do not contain group quarters.

Comparability — Guatemala [top]

The 1964 sample does not identify collective dwellings. The 1973 and 1994 samples separate institutions from other group quarters, while these are grouped in 1981 and 2002.

In 1973, institutions include military housing, reformatories, penitentiaries, prisons, convents, seminaries, other religious housing, hospitals, and boarding schools. The 1994 sample includes a category for "institutions", in addition to hospitals and boarding schools that are also classified as institutional group quarters. In 1973 and 1994, the "other group quarters" category comprises hotels, guest houses, camps, and other (non-institutional) collective dwellings.

Comparability — Guinea [top]

The 1983 and 1996 samples distinguish between private and collective households, but these are not identified in 2014.

The 1983 sample distinguishes between types of group quarters, but there are very few cases. There were many households with zero or multiple heads which appeared structurally corrupt. These are broken up into 1-person units and identified as a group quarters household.

Comparability — Haiti [top]

The 1971 and 1982 samples identify institutions and the 2003 sample identifies collective households.

Comparability — Hungary [top]

The variable is consistent across samples.

Comparability — Indonesia [top]

All of the census samples (1971, 1980, 1990, 2000 and 2010) identify collective dwellings; the survey-based samples do not (1976, 1985, 1995, 2005).

Not all group quarters are identified as such in the 2010 sample. Some group quarters are included with "households" because they filled out the same form as regular households.

Comparability — Iran [top]

Both samples include data on group quarters and private households but offer no detail on the type of group quarters.

Comparability — Iraq [top]

Institutions include orphanages and similar facilities, prisons, and jails.

Comparability — Ireland [top]

The samples consistently distinguish private and collective households.

Comparability — Israel [top]

Households in Kibbutzim are coded as "other group quarters". In 1983, there is a category for regular household residing in a Kibbutzim. This indicates families that are not members of the Kibbutz. The 2008 sample does not distinguish households in Kibbutzim.

Comparability — Italy [top]

Comparability — Jamaica [top]

The 1982 sample provides more detail about types of institutions and group quarters; see the unharmonized source variable.

Comparability — Jordan [top]

Private households include those living in public housing units.

Comparability — Kenya [top]

The 1989 sample identifies persons who received the short questionnaire (travelers and some persons living in group quarters). The 1999 sample identifies persons living in institutions, but it does not currently include other people in group quarters/special populations (including travelers and persons in hotels), who received a different questionnaire. The 2009 sample refers to (ordinary) households as "conventional households" and group quarters as "non-conventional households"; only the category of "refugee camp" is separately identified in the data (from non-conventional households) and classified as other group quarters.

The 1969 sample does not identify group quarters, while the 1979 data is a sample of individuals.

Comparability — Kyrgyzstan [top]

Group quarter status is comparable across samples.

Comparability — Laos [top]

In 1995 and 2005, collective households are defined to include enterprises, factories, schools, temples, hospitals, and similar accommodations, where the enumerated person is registered in a common registration book. Persons in tied accommodation are usually considered to be private not collective households. The 2015 sample only contains private households.

Comparability — Malawi [top]

The 1987 and 1998 samples only distinguished between private households and group quarters. The 2008 sample provides slightly more detail in the unharmonized source, but it still does not separate institutions from other collectives.

Comparability — Malaysia [top]

Institutions were not consistently separable from other group quarters in any census year. The 2000 sample does not include group quarters.

Comparability — Mali [top]

The 1987 sample does not identify group quarters, though there are some very large dwellings/compounds which were broken up into 1-person units for sampling.

The 1998 sample identifies collective dwellings, but they are very few in number, and some have normal family relationships among the inhabitants. Non-institutionalized persons within collectivities, such as directors and their families, were to have been enumerated as normal households. Institutions include hospitals, homes of the elderly, boarding schools, hotels, convents, barracks, etc.

The 2009 sample does not identify group quarters, though a small number of large dwellings or compounds were divided into 1-person units for sampling.

Comparability — Mauritius [top]

The 1990, 2000, and 2011 consistently identify private, institutional, and hotel population. The 2000 and 2011 also identify "collective quarters", which refer to foreign workers living together and that are classified as "other group quarters."

Comparability — Mexico [top]

There is no indication of group quarters status in 1960. "Collective" households are identified in 1970, but there is no indication of their type. The 1990-2020 samples include only private households.

Comparability — Mongolia [top]

We interpreted "other public apartments" as households in 2000 for consistency with 1989. In both samples institutions included public and student dormitories.

Comparability — Morocco [top]

None of the samples contain group quarters.

Comparability — Mozambique [top]

In both samples, university student housing is grouped with boarding schools and is included in the institution category. Homeless persons are included in the other group quarters category.

Comparability — Myanmar [top]

The 2014 sample includes the difference between conventional households and institutions. The enumeration instructions define "institutions" as retirement homes, orphanages, hospitals, boarding schools, hotels, prisons, worker camps, among other collective quarters.

Comparability — Nepal [top]

The 2001 and 2011 samples do not include group quarters.

Comparability — Netherlands [top]

None of the samples contain group quarters.

Comparability — Nicaragua [top]

All of the samples identify group quarters. Institutions can be separately identified from other collective dwellings in 1995 and 2005.

Comparability — Pakistan [top]

The samples do not include group quarters. Large dwellings in 1998 were samples as 1-person units. The "other group quarters" in 1973 are actually multi-headed households that we broke up into one-person units, because their rosters were compromised. The 1973 sample also has many households with no head identified, but no action was taken in those cases.

Comparability — Palestine [top]

There are no group quarters in 1997, 2007, or 2017, except for those created by breaking up very large units in 1997.

Comparability — Panama [top]

The 1960, 2000, and 2010 samples differentiate between institutions (prisons, barracks, reformatories, boarding schools, convents) and other group quarters. The 1980 and 1990 samples do not specify type of group quarters. There are no group quarters in the 1970 sample, except for those created by breaking up very large units.

Comparability — Paraguay [top]

The 1962 sample distinguishes group quarters from private households but offers no detail on type of group quarters. The 1972, 1982, 1992, and 2002 samples identify type of group quarters allowing distinction between institutions and other group quarters. In the 1972, 1982, and 2002 samples, hospitals are grouped with asylums and other health care facilities and are included in the institution category. The 1992 sample identifies hospitals separately; they are categorized as institutions to facilitate comparison across time. Prisons, religious communities, orphanages, and retirement homes are identified separately in the 1992 and 2002 samples and included in the institutions category. These facilities are not identified separately in the 1972 and 1982 samples are likely included in the other group quarters category. In the 2002 sample, homeless persons are included in the other group quarters category. See the unharmonized source variables for more detail.

Comparability — Peru [top]

The 1993, 2007, and 2017 samples distinguish between institutions and other group quarters.

Comparability — Philippines [top]

For the 1990 and 2000 samples, group quarters status is provided indirectly via variables for building type, the categories of which do not always speak directly to the distinction underlying GQ. As a result, the unknown category for GQ is relatively large for these samples.

Comparability — Poland [top]

The 2000 sample distinguishes institutions from other types of group quarters. The 2011 sample does not include group quarters.

Comparability — Portugal [top]

The 1981, 1991, and 2001 samples distinguish group quarters from private households but offer no detail on type of group quarters. The 2011 sample identifies type of group quarters allowing distinction between institutions and other group quarters. See the unharmonized source variable for more detail.

Comparability — Puerto Rico [top]

The 2005 sample does not include group quarters. All other samples distinguish between institutions and other group quarters. Institutions include prisons, orphanages, nursing homes, military barracks and similar places.

Comparability — Romania [top]

The samples for Romania do not contain group quarters.

Comparability — Russia [top]

The 2002 and 2010 Russia samples do not include group quarters.

Comparability — Rwanda [top]

Institutions include prisons, military camps, and orphanages.

Comparability — Saint Lucia [top]

Both samples include a small number of group quarters but they are not identified.

Comparability — Senegal [top]

The 1998 and 2002 samples do not include group quarters. The 2013 sample distinguishes ordinary and collective households.

Comparability — South Africa [top]

The identification of institutions is fairly consistent in the 1996, 2001, and 2007 samples. They include orphanages, prisons, homes for the aged and disabled, military barracks, and boarding schools. The 2011 sample distinguishes group quarters from private households but offers no detail on type of group quarters. The 2016 sample does not distinguish group quarters.

Comparability — South Sudan [top]

The sample does not include group quarters.

Comparability — Spain [top]

The 1981 and 2011 samples consist entirely of persons from private households. The 1991 sample does not contain a variable identifying group quarter status, so it is assumed that all persons in the sample are from private households. The 2001 sample contains both private households and group quarters.

Comparability — Sudan [top]

The sample does not include group quarters.

Comparability — Switzerland [top]

The 2011 sample only includes private households.

Comparability — Tanzania [top]

The 1988 and 2012 samples do not include group quarters; the 2002 sample includes group quarters, but does not identify the type.

Comparability — Thailand [top]

All samples distinguish between institutions and other group quarters. Institutions include military barracks and prisons.

Comparability — Togo [top]

The 1960 and 1970 samples do not include group quarters. The sample from 2010 identifies prisons, convents or monasteries, and boarding schools or orphanages as institutions.

Comparability — Trinidad and Tobago [top]

All samples distinguish group quarters from private households but offer no detail on type of group quarters.

Comparability — Turkey [top]

All of the samples identify group quarters, but they do not separate institutions from other types of collectives.

Comparability — Uganda [top]

Group quarters status is not directly available for 1991. The value of GQ for this sample is based on information computed by the IPUMS-International staff (see UG1991A_0022). The 2014 sample does not distinguish group quarters.

Comparability — Ukraine [top]

The data identify institutions, collective dwellings and the homeless population, but do not list specific types of institutions or facilities.

Comparability — United Kingdom [top]

The 1991 sample does not contain group quarters. The 1961, 1971, and 2001 samples identify group quarters but do not specify their nature.

Comparability — United States [top]

There are two slightly different definitions of group quarters in the U.S. samples. For 1960-1970, group quarters are units with five or more individuals unrelated to the householder. For 1980, 1990, 2000, 2010, 2015, and 2020 units with ten or more persons unrelated to the householder are considered group quarters. The 2005 U.S. sample does not contain persons from group quarters.

Comparability — Uruguay [top]

The 1963 sample identifies both institutions and other group quarters. The 1975-1996 identify group quarters, but do not have sufficient detail to separate institutions consistently. The 2006 survey data do not include group quarters. 2011 data include a variety of institutional and collective dwellings by type of institution or facility.

Comparability — Venezuela [top]

All group quarters are combined into one category in 1971 and 1981. The 1990-2001 samples identify group quarters by type: institutions include prisons, military barracks, psychiatric care centers, and homes for the disabled.

Comparability — Vietnam [top]

The 1989 sample distinguishes between private and collective households. There is no information available on group quarters status in the 1999, 2009, and 2019 samples.

Comparability — Zambia [top]

Samples from 1990 and 2000 identify hospitals and prisons within institutions and hotels or hostels within other collective dwellings. The 2010 sample groups all collective or institutional quarters into one category.

Universe

  • All households

Availability

  • Argentina: 1970, 1980, 1991, 2001, 2010
  • Armenia: 2001, 2011
  • Austria: 1971, 1981, 1991, 2001, 2011
  • Bangladesh: 1991, 2001, 2011
  • Belarus: 1999, 2009
  • Benin: 1979, 1992, 2002, 2013
  • Bolivia: 1976, 1992, 2001, 2012
  • Botswana: 1981, 1991, 2001, 2011
  • Brazil: 1960, 1970, 1980, 1991, 2000, 2010
  • Burkina Faso: 1985, 1996, 2006
  • Cambodia: 1998, 2004, 2008, 2013, 2019
  • Cameroon: 1976, 1987, 2005
  • Canada: 1852, 1871, 1881, 1891, 1901, 1911, 1971, 1981, 1991, 2001, 2011
  • Chile: 1960, 1970, 1982, 1992, 2002, 2017
  • China: 1982, 1990, 2000
  • Colombia: 1964, 1973, 1985, 1993, 2005
  • Costa Rica: 1963, 1973, 1984, 2000, 2011
  • Cuba: 2002, 2012
  • Côte d'Ivoire: 1988, 1998
  • Denmark: 1787, 1801, 1845, 1880, 1885
  • Dominican Republic: 1960, 1970, 1981, 2002, 2010
  • Ecuador: 1962, 1974, 1982, 1990, 2001, 2010
  • Egypt: 1848, 1868, 1986, 1996, 2006
  • El Salvador: 1992, 2007
  • Ethiopia: 1984, 1994, 2007
  • Fiji: 1966, 1976, 1986, 1996, 2007, 2014
  • Finland: 2010
  • France: 1962, 1968, 1975, 1982, 1990, 1999, 2006, 2011
  • Germany: 1819, 1970, 1971, 1981, 1987
  • Ghana: 1984, 2000, 2010
  • Greece: 1971, 1981, 1991, 2001, 2011
  • Guatemala: 1964, 1973, 1981, 1994, 2002
  • Guinea: 1983, 1996, 2014
  • Haiti: 1971, 1982, 2003
  • Honduras: 1961, 1974, 1988, 2001
  • Hungary: 1970, 1980, 1990, 2001, 2011
  • Iceland: 1703, 1729, 1801, 1901, 1910
  • India: 1983, 1987, 1993, 1999, 2004, 2009
  • Indonesia: 1971, 1976, 1980, 1985, 1990, 1995, 2000, 2005, 2010
  • Iran: 2006, 2011
  • Iraq: 1997
  • Ireland: 1901, 1911, 1971, 1979, 1981, 1986, 1991, 1996, 2002, 2006, 2011, 2016
  • Israel: 1972, 1983, 1995, 2008
  • Italy: 2001, 2011, 2011Q1, 2012Q1, 2013Q1, 2014Q1, 2015Q1, 2016Q1, 2017Q1, 2018Q1, 2019Q1, 2020Q1
  • Jamaica: 1982, 1991, 2001
  • Jordan: 2004
  • Kenya: 1969, 1979, 1989, 1999, 2009
  • Kyrgyzstan: 1999, 2009
  • Laos: 1995, 2005, 2015
  • Lesotho: 1996, 2006
  • Liberia: 1974, 2008
  • Malawi: 1987, 1998, 2008
  • Malaysia: 1970, 1980, 1991, 2000
  • Mali: 1987, 1998, 2009
  • Mauritius: 1990, 2000, 2011
  • Mexico: 1960, 1970, 1990, 1995, 2000, 2005, 2005Q1, 2005Q2, 2005Q3, 2005Q4, 2006Q1, 2006Q2, 2006Q3, 2006Q4, 2007Q1, 2007Q2, 2007Q3, 2007Q4, 2008Q1, 2008Q2, 2008Q3, 2008Q4, 2009Q1, 2009Q2, 2009Q3, 2009Q4, 2010, 2010Q1, 2010Q2, 2010Q3, 2010Q4, 2011Q1, 2011Q2, 2011Q3, 2011Q4, 2012Q1, 2012Q2, 2012Q3, 2012Q4, 2013Q1, 2013Q2, 2013Q3, 2013Q4, 2014Q1, 2014Q2, 2014Q3, 2014Q4, 2015, 2015Q1, 2015Q2, 2015Q3, 2015Q4, 2016Q1, 2016Q2, 2016Q3, 2016Q4, 2017Q1, 2017Q2, 2017Q3, 2017Q4, 2018Q1, 2018Q2, 2018Q3, 2018Q4, 2019Q1, 2019Q2, 2019Q3, 2019Q4, 2020, 2020Q1, 2020Q3
  • Mongolia: 1989, 2000
  • Morocco: 1982, 1994, 2004, 2014
  • Mozambique: 1997, 2007
  • Myanmar: 2014
  • Nepal: 2001, 2011
  • Netherlands: 1960, 1971, 2001, 2011
  • Nicaragua: 1971, 1995, 2005
  • Nigeria: 2006, 2007, 2008, 2009, 2010
  • Norway: 1801, 1865, 1875, 1900, 1910
  • Pakistan: 1973, 1981, 1998
  • Palestine: 1997, 2007, 2017
  • Panama: 1960, 1970, 1980, 1990, 2000, 2010
  • Papua New Guinea: 1980, 1990, 2000
  • Paraguay: 1962, 1972, 1982, 1992, 2002
  • Peru: 1993, 2007, 2017
  • Philippines: 1990, 1995, 2000, 2010
  • Poland: 1978, 1988, 2002, 2011
  • Portugal: 1981, 1991, 2001, 2011
  • Puerto Rico: 1970, 1980, 1990, 2000, 2005, 2010, 2015, 2020
  • Romania: 1977, 1992, 2002, 2011
  • Russia: 2002, 2010
  • Rwanda: 1991, 2002, 2012
  • Saint Lucia: 1980, 1991
  • Senegal: 1988, 2002, 2013
  • Sierra Leone: 2004, 2015
  • Slovakia: 1991, 2001, 2011
  • Slovenia: 2002
  • South Africa: 1996, 2001, 2007, 2011, 2016
  • South Sudan: 2008
  • Spain: 1981, 1991, 2001, 2005Q1, 2005Q2, 2005Q3, 2005Q4, 2006Q1, 2006Q2, 2006Q3, 2006Q4, 2007Q1, 2007Q2, 2007Q3, 2007Q4, 2008Q1, 2008Q2, 2008Q3, 2008Q4, 2009Q1, 2009Q2, 2009Q3, 2009Q4, 2010Q1, 2010Q2, 2010Q3, 2010Q4, 2011, 2011Q1, 2011Q2, 2011Q3, 2011Q4, 2012Q1, 2012Q2, 2012Q3, 2012Q4, 2013Q1, 2013Q2, 2013Q3, 2013Q4, 2014Q1, 2014Q2, 2014Q3, 2014Q4, 2015Q1, 2015Q2, 2015Q3, 2015Q4, 2016Q1, 2016Q2, 2016Q3, 2016Q4, 2017Q1, 2017Q2, 2017Q3, 2017Q4, 2018Q1, 2018Q2, 2018Q3, 2018Q4, 2019Q1, 2019Q2, 2019Q3, 2019Q4, 2020Q1, 2020Q2, 2020Q3, 2020Q4
  • Sudan: 2008
  • Suriname: 2004, 2012
  • Sweden: 1880, 1890, 1900, 1910
  • Switzerland: 1970, 1980, 1990, 2000, 2011
  • Tanzania: 1988, 2002, 2012
  • Thailand: 1970, 1980, 1990, 2000
  • Togo: 1960, 1970, 2010
  • Trinidad and Tobago: 1970, 1980, 1990, 2000, 2011
  • Turkey: 1985, 1990, 2000
  • Uganda: 1991, 2002, 2014
  • Ukraine: 2001
  • United Kingdom: 1851a, 1851b, 1851c, 1861a, 1861b, 1871b, 1881a, 1881b, 1891a, 1891b, 1901a, 1901b, 1911, 1961, 1971, 1991, 2001
  • United States: 1850a, 1850b, 1860, 1870, 1880a, 1880b, 1900, 1910, 1960, 1970, 1980, 1990, 2000, 2005, 2010, 2015, 2020
  • Uruguay: 1963, 1975, 1985, 1996, 2006, 2011
  • Venezuela: 1971, 1981, 1990, 2001
  • Vietnam: 1989, 1999, 2009, 2019
  • Zambia: 1990, 2000, 2010
  • Zimbabwe: 2012