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 Sex : public Editor {

public:
  Sex(VarPointer varInfo) : Editor(varInfo) {}

  // TODO check isMarried for correctness
  //    bool isMarried(int p) {
  //        return MARST(p) == 200;

  //    }

  void edit() {

    long a = getRecoded();

    switch (dataSet) {
    case dataset_id::co1985a: {

      if (countPeople() > 1) {

        if ((PERNUM() == 1 || PERNUM() == 2) &&
            CO1985A_0402(1) == CO1985A_0402(2) && CO1985A_0401(2) == 2 &&
            CO1985A_0401(1) == 1 && isMarried(1) && isMarried(2) &&
            labs(AGE(1) - AGE(2)) < 12) {
          if (PERNUM() == 2)
            a = 2;
          if (PERNUM() == 1)
            a = 1;
        }
      }
    } break;
    }

    setData(a);
  }
};

    

Description

SEX reports the sex (gender) of the respondent.

Comparability — Index

GENERAL
Mexico

Comparability — General

The variable is fully comparable for all samples.

Comparability — Mexico [top]

Universe

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

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