Educational expansion and homogamy
Analysis of Swiss census data 1970–2000

Rolf Becker and Ben Jann

December 09, 2016

Contents

Data preparation

. // required ssc packages: fre, estout, coefplot
. about

Stata/MP 14.2 for Mac (64-bit Intel)
Revision 16 Nov 2016
Copyright 1985-2015 StataCorp LP

Total physical memory:    8.01 GB

30-user 2-core Stata network perpetual license:
       Serial number:  501406208640
         Licensed to:  Ben Jann
                       University of Bern

. version 14.2

. clear all

. set linesize 100

. set type double

. set scheme s2mono_plain

Open data, check stability of household type definitions within households, generate person ID within household.

. use ../data/VZ_1970-2000.dta

. describe

Contains data from ../data/VZ_1970-2000.dta
  obs:    21,460,091                          
 vars:            15                          8 Apr 2016 11:53
 size:   515,042,184                          
----------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
----------------------------------------------------------------------------------------------------
ZJHR            int     %8.0g                 Zaehljahr
KANT            byte    %8.0g      kant       Kanton
HHNR            double  %25.0g                Haushaltsnummer
HMAT            byte    %9.0g      hmat       Nationalitaet
ALTJ            byte    %8.0g                 Altersjahr
GESL            byte    %8.0g      gesl       Geschlecht
ZIVL            byte    %25.0g     zivl       Zivilstand
RPHH            byte    %29.0g     rphh       Referenzperson im Haushalt
STHH            byte    %47.0g     sthh       Stellung im Haushalt
HHTP            int     %59.0g     hhtp       Haushaltstyp
KAMS            byte    %12.0g     kams       Arbeitsmarktstatus (agreggiert)
HABGH           byte    %51.0g     habgh      Hoechster Abschluss
HABAG           byte    %37.0g     habag      Hoechster Abschluss, aggregiert
HABGB           byte    %51.0g     habgb      Chaze-Variable zum hoechsten Abschluss, brutto
HABGN           byte    %48.0g     habgn      Chaze-Variable zum hoechsten Abschluss, netto
----------------------------------------------------------------------------------------------------
Sorted by: 

. drop KANT HMAT KAMS HABGH HABAG HABGN

. sort ZJHR HHNR RPHH STHH

. by ZJHR HHNR: assert(HHTP==HHTP[1]) // stable household definition

. by ZJHR HHNR: generate byte ID = _n

. assert (ID<.)

. lab var ID "Person ID"

Check consistency of data and prepare partnership type (PTYPE) variable.

. fre RPHH

RPHH -- Referenzperson im Haushalt
-------------------------------------------------------------------------------------
                                        |      Freq.    Percent      Valid       Cum.
----------------------------------------+--------------------------------------------
Valid   1 Reference person in household |   1.05e+07      48.74      48.74      48.74
        2 Partner of reference person   |    6336008      29.52      29.52      78.26
        3 Other person                  |    4665458      21.74      21.74     100.00
        Total                           |   2.15e+07     100.00     100.00           
-------------------------------------------------------------------------------------

. by ZJHR HHNR: assert ((RPHH==1) == (_n==1)) // first row always reference person

. by ZJHR HHNR: assert (_n==2) if (RPHH==2)   // partner always on second row

. fre STHH

STHH -- Stellung im Haushalt
---------------------------------------------------------------------------------------------
                                                |      Freq.    Percent      Valid       Cum.
------------------------------------------------+--------------------------------------------
Valid   1 Head of household, Partner of head of |   1.68e+07      78.47      78.47      78.47
          household                             |                                            
        2 Son / Daughter (in-law)               |    3538688      16.49      16.49      94.96
        3 Father / Mother (in-law)              |     182301       0.85       0.85      95.81
        4 Other relatives                       |     253570       1.18       1.18      96.99
        5 Other members of the household        |     645546       3.01       3.01     100.00
        Total                                   |   2.15e+07     100.00     100.00           
---------------------------------------------------------------------------------------------

. by ZJHR HHNR: assert STHH==1 if inlist(RPHH,1,2)

. capt n by ZJHR HHNR: assert inlist(RPHH,1,2) if STHH==1 // STHH not fully consistent
45,353 contradictions in 16,839,986 observations
assertion is false

. fre HHTP

HHTP -- Haushaltstyp
---------------------------------------------------------------------------------------------------
                                                      |      Freq.    Percent      Valid       Cum.
------------------------------------------------------+--------------------------------------------
Valid   1000 single-person household                  |    3154437      14.70      14.70      14.70
        2111 Married couple without children          |    4469392      20.83      20.83      35.53
        2112 Consensual couple without children       |     627362       2.92       2.92      38.45
        2121 Married couple without children, with    |     424654       1.98       1.98      40.43
             other persons                            |                                            
        2122 Consensual couple without children, with |      21619       0.10       0.10      40.53
             other persons                            |                                            
        2211 Married couple with children             |    9251814      43.11      43.11      83.64
        2212 Consensual couple with children          |     183593       0.86       0.86      84.50
        2221 Married couple with children and other   |    1162591       5.42       5.42      89.91
             persons                                  |                                            
        2222 Consensual couple with children and      |      10457       0.05       0.05      89.96
             other persons                            |                                            
        2310 Single parent with children              |     961314       4.48       4.48      94.44
        2320 Single parent with children and other    |     203005       0.95       0.95      95.39
             persons                                  |                                            
        2411 Single-person household with both        |       5093       0.02       0.02      95.41
             parents                                  |                                            
        2412 Single-person household with one parent  |      78574       0.37       0.37      95.78
        2421 Single-person household with both        |       3161       0.01       0.01      95.79
             parents and other persons                |                                            
        2422 Single-person household with one parent  |      27598       0.13       0.13      95.92
             and other persons                        |                                            
        3110 Non-familial household with relatives    |     200581       0.93       0.93      96.86
        3120 Non-familial househild with relatives    |      28784       0.13       0.13      96.99
             and other persons                        |                                            
        3200 Household of non-related persons         |     646062       3.01       3.01     100.00
        Total                                         |   2.15e+07     100.00     100.00           
---------------------------------------------------------------------------------------------------

. generate byte PTYPE = 1 if inlist(HHTP,2111,2121,2211,2221)
(6,151,640 missing values generated)

. replace       PTYPE = 2 if inlist(HHTP,2112,2122,2212,2222)
(843,031 real changes made)

. replace       PTYPE = 3 if inlist(HHTP,1000,2310,2320,2411,2412,2421,2422,3110,3120,3200)
(5,308,609 real changes made)

. lab def PTYPE 1 "married couple" 2 "consensual couple" 3 "other/no partner"

. lab val PTYPE PTYPE

. lab var PTYPE "Partnership type"

. fre PTYPE

PTYPE -- Partnership type
-------------------------------------------------------------------------
                            |      Freq.    Percent      Valid       Cum.
----------------------------+--------------------------------------------
Valid   1 married couple    |   1.53e+07      71.33      71.33      71.33
        2 consensual couple |     843031       3.93       3.93      75.26
        3 other/no partner  |    5308609      24.74      24.74     100.00
        Total               |   2.15e+07     100.00     100.00           
-------------------------------------------------------------------------

. by ZJHR HHNR: assert (RPHH[1]==1 & RPHH[2]==2) if inlist(PTYPE,1,2) // ok

. capt n by ZJHR HHNR: assert inlist(PTYPE,1,2) if RPHH[1]==1 & RPHH[2]==2 // inconsistent
9,455 contradictions in 16,160,937 observations
assertion is false

. // => recode to married couple if ref.person and partner and both married
. by ZJHR HHNR: replace PTYPE = 1 if !inlist(PTYPE,1,2) & RPHH[1]==1 & RPHH[2]==2 ///
>     & ZIVL[1]==2 & ZIVL[2]==2
(210 real changes made)

. // => recode to consensual couple if ref.person and partner and not both married
. by ZJHR HHNR: replace PTYPE = 2 if !inlist(PTYPE,1,2) & RPHH[1]==1 & RPHH[2]==2
(9,245 real changes made)

. by ZJHR HHNR: assert inlist(PTYPE,1,2) if RPHH[1]==1 & RPHH[2]==2

Get partner ID for households with a “reference person” and a “partner of reference person”.

. generate byte PID = .
(21,460,091 missing values generated)

. by ZJHR HHNR: replace PID = 2 if _n==1 & RPHH[2]==2
(6,336,008 real changes made)

. by ZJHR HHNR: replace PID = 1 if _n==2 & RPHH==2
(6,336,008 real changes made)

. lab var PID "Partner ID"

Get partner IDs for married parents of reference person (labeled "grand parents" below although need not strictly be grand parents, i.e. ref.person may not have children). Build couple only if exactly two grand parents in household, if they are both married, and have different sex.

(Further possibility could be that child of ref.person lives with his/her spouse in the household; cannot identify these.)

. by ZJHR HHNR: gen byte GRANDP = sum(STHH==3)

. by ZJHR HHNR: replace GRANDP = GRANDP[_N] // n. of grand parents in household
(378,277 real changes made)

. by ZJHR HHNR: replace PID = ID[_n+1] if GRANDP==2 & ///
>     STHH==3 & STHH[_n+1]==3 & ZIVL==2 & ZIVL[_n+1]==2 & GESL!=GESL[_n+1]
(14,620 real changes made)

. by ZJHR HHNR: replace PID = ID[_n-1] if GRANDP==2 & ///
>     STHH==3 & STHH[_n-1]==3 & ZIVL==2 & ZIVL[_n-1]==2 & GESL!=GESL[_n-1]
(14,620 real changes made)

. replace PTYPE = 1 if STHH==3 & PID<.
(6,768 real changes made)

. drop GRANDP

Update PTYPE.

. assert inlist(PTYPE,1,2) if PID<.

. replace PTYPE = 3 if PID>=. & ZIVL==1
(3,238,557 real changes made)

. replace PTYPE = 4 if PID>=. & ZIVL==2
(546,840 real changes made)

. replace PTYPE = 5 if PID>=. & ZIVL==3
(1,353,077 real changes made)

. replace PTYPE = 6 if PID>=. & ZIVL==4
(802,521 real changes made)

. lab def PTYPE ///
>     1 "partner in HH: married" ///
>     2 "partner in HH: consensual" ///
>     3 "no partner: single" ///
>     4 "no partner: married" ///
>     5 "no partner: widowed" ///
>     6 "no partner: divorced" ///
>     , modify

. fre PTYPE

PTYPE -- Partnership type
---------------------------------------------------------------------------------
                                    |      Freq.    Percent      Valid       Cum.
------------------------------------+--------------------------------------------
Valid   1 partner in HH: married    |   1.19e+07      55.47      55.47      55.47
        2 partner in HH: consensual |     796414       3.71       3.71      59.19
        3 no partner: single        |    6056397      28.22      28.22      87.41
        4 no partner: married       |     546840       2.55       2.55      89.96
        5 no partner: widowed       |    1353077       6.31       6.31      96.26
        6 no partner: divorced      |     802521       3.74       3.74     100.00
        Total                       |   2.15e+07     100.00     100.00           
---------------------------------------------------------------------------------

Copy values of partner variables:

. foreach v in ALTJ GESL HABGB {
  2.     by ZJHR HHNR: gen byte P`v' = `v'[PID] if PID<.
  3. }
(8,758,850 missing values generated)
(8,758,835 missing values generated)
(8,758,835 missing values generated)

Highest education: Comparability of educational variables across censuses is questionable due to changes in original categories and because in 1970 and 1980 no information on highest education was collected for people who were in education. There seem to be severe problems with the default variable for the highest educational degree (HABGH). For example, in 1970 there is an unreasonably high proportion of women with higher vocational education (much more than in 1980!). Therefore, the analysis below will be based on the “Chaze brutto” variable (HABGB; Chaze, Jean-Paul. 2005: Recensements fédéraux de la population 1970-2000. Harmonisation de la plus haute formation achevée. Laboratoire d’économie appliquée, Université de Genève). The distribution of this variable appears to make much more sense. For comparisons across time including all age groups the “Chaze netto” variable (HABGN) would be most appropriate, but results for HABGB and HABGN are almost identical for the age groups analyzed below.

. fre HABGB

HABGB -- Chaze-Variable zum hoechsten Abschluss, brutto
-------------------------------------------------------------------------------------------------
                                                    |      Freq.    Percent      Valid       Cum.
----------------------------------------------------+--------------------------------------------
Valid   1 Did not complete compulsory schooling     |     347866       1.62       1.62       1.62
        2 Compulsory schooling, vocational          |    7155376      33.34      33.34      34.96
          preparation school                        |                                            
        3 Vocational training, full-time vocational |    7849072      36.58      36.58      71.54
          school                                    |                                            
        4 Grammar school, teacher seminar           |    1513858       7.05       7.05      78.59
        5 Higher vocational training, technical     |    1376258       6.41       6.41      85.01
          college                                   |                                            
        6 University (of applied science)           |    1008078       4.70       4.70      89.70
        7 No information on education               |     996014       4.64       4.64      94.34
        8 Censored due to ongoing education         |     533849       2.49       2.49      96.83
        9 Under age 15                              |     679720       3.17       3.17     100.00
        Total                                       |   2.15e+07     100.00     100.00           
-------------------------------------------------------------------------------------------------

. gen byte EDUC = 0 if inlist(HABGB, 7, 8, 9) // no info, censored, under 15
(19,250,508 missing values generated)

. replace  EDUC = 1 if inlist(HABGB, 1, 2) // max compulsory or other
(7,503,242 real changes made)

. replace  EDUC = 2 if HABGB==3 // VET
(7,849,072 real changes made)

. replace  EDUC = 3 if HABGB==4 // Highschool
(1,513,858 real changes made)

. replace  EDUC = 4 if HABGB==5 // higher VET
(1,376,258 real changes made)

. replace  EDUC = 5 if HABGB==6 // University
(1,008,078 real changes made)

. assert (EDUC<.)

. gen byte PEDUC = 0 if inlist(PHABGB, 7, 8, 9) // no info, censored, under 15
(20,966,959 missing values generated)

. replace  PEDUC = 1 if inlist(PHABGB, 1, 2) // max compulsory or other
(4,357,392 real changes made)

. replace  PEDUC = 2 if PHABGB==3 // VET
(5,262,240 real changes made)

. replace  PEDUC = 3 if PHABGB==4 // Highschool
(877,886 real changes made)

. replace  PEDUC = 4 if PHABGB==5 // higher VET
(1,006,571 real changes made)

. replace  PEDUC = 5 if PHABGB==6 // University
(704,035 real changes made)

. assert (PEDUC<.) if PID<.

. lab def EDUC ///
>     0 "No information/under 15" ///
>     1 "Secondary I or less/other" ///
>     2 "Secondary II vocational" ///
>     3 "Secondary II general" ///
>     4 "Higher vocational" ///
>     5 "University"

. lab val EDUC EDUC

. lab val PEDUC EDUC

. lab var EDUC "Highest education (Chaze brutto)"

. lab var PEDUC "Highest education of partner (Chaze brutto)"

. fre EDUC PEDUC

EDUC -- Highest education (Chaze brutto)
---------------------------------------------------------------------------------
                                    |      Freq.    Percent      Valid       Cum.
------------------------------------+--------------------------------------------
Valid   0 No information/under 15   |    2209583      10.30      10.30      10.30
        1 Secondary I or less/other |    7503242      34.96      34.96      45.26
        2 Secondary II vocational   |    7849072      36.58      36.58      81.84
        3 Secondary II general      |    1513858       7.05       7.05      88.89
        4 Higher vocational         |    1376258       6.41       6.41      95.30
        5 University                |    1008078       4.70       4.70     100.00
        Total                       |   2.15e+07     100.00     100.00           
---------------------------------------------------------------------------------

PEDUC -- Highest education of partner (Chaze brutto)
---------------------------------------------------------------------------------
                                    |      Freq.    Percent      Valid       Cum.
------------------------------------+--------------------------------------------
Valid   0 No information/under 15   |     493132       2.30       3.88       3.88
        1 Secondary I or less/other |    4357392      20.30      34.31      38.19
        2 Secondary II vocational   |    5262240      24.52      41.43      79.62
        3 Secondary II general      |     877886       4.09       6.91      86.53
        4 Higher vocational         |    1006571       4.69       7.92      94.46
        5 University                |     704035       3.28       5.54     100.00
        Total                       |   1.27e+07      59.19     100.00           
Missing .                           |    8758835      40.81                      
Total                               |   2.15e+07     100.00                      
---------------------------------------------------------------------------------

Drop observations outside age 25-64. Generate age categories.

. keep if inrange(ALTJ,25,64)
(7,599,719 observations deleted)

. generate byte ALTC = trunc(ALTJ/5)*5

. forv i=25(5)60 {
  2.     lab def ALTC `i' "`i'-`=`i'+4'", add
  3. }

. lab val ALTC ALTC

. lab var ALTC "Age categorized"

. fre ALTC

ALTC -- Age categorized
--------------------------------------------------------------
                 |      Freq.    Percent      Valid       Cum.
-----------------+--------------------------------------------
Valid   25 25-29 |    1999829      14.43      14.43      14.43
        30 30-34 |    2052875      14.81      14.81      29.24
        35 35-39 |    1999837      14.43      14.43      43.67
        40 40-44 |    1846882      13.32      13.32      56.99
        45 45-49 |    1716353      12.38      12.38      69.38
        50 50-54 |    1543070      11.13      11.13      80.51
        55 55-59 |    1451296      10.47      10.47      90.98
        60 60-64 |    1250230       9.02       9.02     100.00
        Total    |   1.39e+07     100.00     100.00           
--------------------------------------------------------------

Drop variables that are no longer needed, contract, and backup working data.

. drop ZIVL RPHH STHH HHTP ALTJ HHNR HABGB ID PID PALTJ PGESL PHABGB

. ds _all
ZJHR   GESL   PTYPE  EDUC   PEDUC  ALTC

. local vlist "`r(varlist)'"

. sort `vlist'

. by `vlist': generate POP = _N

. by `vlist': keep if _n==1
(13,854,832 observations deleted)

. lab var POP "Number of observations"

. compress POP
  variable POP was double now long
  (22,160 bytes saved)

. save work, replace
file work.dta saved

. describe

Contains data from work.dta
  obs:         5,540                          
 vars:             7                          5 Dec 2016 15:00
 size:        60,940                          
----------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
----------------------------------------------------------------------------------------------------
ZJHR            int     %8.0g                 Zaehljahr
GESL            byte    %8.0g      gesl       Geschlecht
PTYPE           byte    %25.0g     PTYPE      Partnership type
EDUC            byte    %25.0g     EDUC       Highest education (Chaze brutto)
PEDUC           byte    %25.0g     EDUC       Highest education of partner (Chaze brutto)
ALTC            byte    %8.0g      ALTC       Age categorized
POP             long    %10.0g                Number of observations
----------------------------------------------------------------------------------------------------
Sorted by: ZJHR  GESL  PTYPE  EDUC  PEDUC  ALTC

Educational expansion

Educational distribution over time using a 3-level educational variable to keep things simple.

. tab EDUC ZJHR [fw=POP], col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

    Highest education |                  Zaehljahr
       (Chaze brutto) |      1970       1980       1990       2000 |     Total
----------------------+--------------------------------------------+----------
No information/under  |   134,620    129,355     45,236    225,687 |   534,898 
                      |      4.45       4.04       1.23       5.71 |      3.86 
----------------------+--------------------------------------------+----------
Secondary I or less/o | 1,311,073  1,208,926  1,026,176    899,079 | 4,445,254 
                      |     43.33      37.76      27.88      22.75 |     32.07 
----------------------+--------------------------------------------+----------
Secondary II vocation | 1,081,603  1,211,540  1,812,978  1,660,886 | 5,767,007 
                      |     35.75      37.84      49.25      42.03 |     41.61 
----------------------+--------------------------------------------+----------
 Secondary II general |   256,243    283,306    210,380    308,400 | 1,058,329 
                      |      8.47       8.85       5.71       7.80 |      7.64 
----------------------+--------------------------------------------+----------
    Higher vocational |   144,777    208,219    358,857    466,594 | 1,178,447 
                      |      4.78       6.50       9.75      11.81 |      8.50 
----------------------+--------------------------------------------+----------
           University |    97,487    160,226    227,630    391,094 |   876,437 
                      |      3.22       5.00       6.18       9.90 |      6.32 
----------------------+--------------------------------------------+----------
                Total | 3,025,803  3,201,572  3,681,257  3,951,740 |13,860,372 
                      |    100.00     100.00     100.00     100.00 |    100.00 


. generate byte EDUC3 = 0 if EDUC==0 // no information
(4,625 missing values generated)

. replace       EDUC3 = 1 if EDUC==1 // Secondary I (low)
(928 real changes made)

. replace       EDUC3 = 2 if inlist(EDUC,2,3) // Secondary II (medium)
(1,853 real changes made)

. replace       EDUC3 = 3 if inlist(EDUC,4,5) // Tertiary (high)
(1,844 real changes made)

. lab def EDUC3 0 "no information" 1 "low" 2 "medium" 3 "high"

. lab val EDUC3 EDUC3

. tab EDUC3 ZJHR [fw=POP]

               |                  Zaehljahr
         EDUC3 |      1970       1980       1990       2000 |     Total
---------------+--------------------------------------------+----------
no information |   134,620    129,355     45,236    225,687 |   534,898 
           low | 1,311,073  1,208,926  1,026,176    899,079 | 4,445,254 
        medium | 1,337,846  1,494,846  2,023,358  1,969,286 | 6,825,336 
          high |   242,264    368,445    586,487    857,688 | 2,054,884 
---------------+--------------------------------------------+----------
         Total | 3,025,803  3,201,572  3,681,257  3,951,740 |13,860,372 


. tab EDUC3 ZJHR [fw=POP], col nofreq

               |                  Zaehljahr
         EDUC3 |      1970       1980       1990       2000 |     Total
---------------+--------------------------------------------+----------
no information |      4.45       4.04       1.23       5.71 |      3.86 
           low |     43.33      37.76      27.88      22.75 |     32.07 
        medium |     44.21      46.69      54.96      49.83 |     49.24 
          high |      8.01      11.51      15.93      21.70 |     14.83 
---------------+--------------------------------------------+----------
         Total |    100.00     100.00     100.00     100.00 |    100.00 

Results for age 25-64, by sex. Including a “no information” category (missings, people in education for whom no highest educational level was recorded, etc.). The results are displayed in figure 1.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate EDUC3 ALTC if GESL==1 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  4.     eststo m`y'
  5.     estpost tabulate EDUC3 ALTC if GESL==2 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  6.     eststo f`y'
  7. }

=> 1970

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     18078   1.202934   7.098124   28.50835 
           1 |     71776   4.776069   28.18204   14.68094 
           2 |    134966   8.980813   52.99289   17.46009 
           3 |     29867   1.987389   11.72694   16.82553 
-------------+--------------------------------------------
30           |                                            
           0 |     10503   .6988833   4.687479   16.56285 
           1 |     74168   4.935235   33.10111    15.1702 
           2 |    109621   7.294324   48.92375    14.1813 
           3 |     29773   1.981134   13.28766   16.77258 
-------------+--------------------------------------------
35           |                                            
           0 |      8458   .5628063   4.065799   13.33796 
           1 |     71044    4.72736   34.15117   14.53122 
           2 |    102939   6.849695   49.48324   13.31687 
           3 |     25587   1.702592   12.29979    14.4144 
-------------+--------------------------------------------
40           |                                            
           0 |      6754     .44942   3.557339   10.65081 
           1 |     62566   4.163223   32.95358   12.79714 
           2 |     95415   6.349038   50.25519   12.34351 
           3 |     25126   1.671917   13.23389    14.1547 
-------------+--------------------------------------------
45           |                                            
           0 |      5769   .3838768   3.206746   9.097504 
           1 |     61119   4.066938    33.9735   12.50118 
           2 |     89925   5.983727   49.98555   11.63329 
           3 |     23089   1.536372   12.83421   13.00715 
-------------+--------------------------------------------
50           |                                            
           0 |      4419    .294046   2.906778   6.968603 
           1 |     49739   3.309698   32.71786   10.17353 
           2 |     80515   5.357573   52.96203   10.41595 
           3 |     17351   1.154558   11.41333   9.774661 
-------------+--------------------------------------------
55           |                                            
           0 |      4601   .3061565   3.010062    7.25561 
           1 |     49945   3.323405   32.67497   10.21567 
           2 |     83420   5.550875   54.57495   10.79176 
           3 |     14888   .9906669   9.740013   8.387133 
-------------+--------------------------------------------
60           |                                            
           0 |      4831    .321461   3.416428   7.618312 
           1 |     48549   3.230514    34.3333    9.93013 
           2 |     76196   5.070181   53.88494   9.857218 
           3 |     11829   .7871171   8.365334    6.66385 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     11863   .7789349   4.888149   16.65988 
           1 |    109789   7.208842   45.23856   13.35361 
           2 |    107330   7.047382   44.22533   19.00154 
           3 |     13707   .9000136   5.647969    21.1678 
-------------+--------------------------------------------
30           |                                            
           0 |      9854   .6470222   4.657142   13.83853 
           1 |    108026   7.093082   51.05464   13.13918 
           2 |     83375   5.474475   39.40422   14.76058 
           3 |     10334   .6785395   4.883997   15.95886 
-------------+--------------------------------------------
35           |                                            
           0 |      9011   .5916701   4.489115   12.65465 
           1 |    110786   7.274306   55.19155   13.47488 
           2 |     72680   4.772232   36.20784   12.86716 
           3 |      8253   .5418992   4.111493   12.74516 
-------------+--------------------------------------------
40           |                                            
           0 |      8346   .5480056   4.307724   11.72076 
           1 |    105408   6.921181   54.40553   12.82075 
           2 |     71817   4.715567    37.0678   12.71437 
           3 |      8174    .536712   4.218948   12.62316 
-------------+--------------------------------------------
45           |                                            
           0 |      7843   .5149782   4.177074   11.01437 
           1 |    103511   6.796623   55.12854   12.59002 
           2 |     68016    4.46599   36.22439   12.04145 
           3 |      8393   .5510917   4.469997   12.96136 
-------------+--------------------------------------------
50           |                                            
           0 |      6843   .4493174   4.351393    9.61001 
           1 |     87416   5.739811   55.58693   10.63239 
           2 |     56799   3.729472   36.11789   10.05561 
           3 |      6202   .4072287   3.943787   9.577787 
-------------+--------------------------------------------
55           |                                            
           0 |      8147   .5349391   4.945368   11.44129 
           1 |     96554    6.33982   58.60993   11.74384 
           2 |     54631   3.587119   33.16195   9.671788 
           3 |      5408    .355094   3.282749   8.351608 
-------------+--------------------------------------------
60           |                                            
           0 |      9300   .6106461   5.654836   13.06051 
           1 |    100677    6.61054   61.21634   12.24532 
           2 |     50201   3.296242   30.52456   8.887508 
           3 |      4283   .2812255   2.604265   6.614263 

=> 1980

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     21344   1.344483   9.227364   33.95266 
           1 |     49108   3.093369    21.2302    10.3936 
           2 |    125951   7.933796    54.4507   16.28865 
           3 |     34909   2.198957   15.09174   12.51515 
-------------+--------------------------------------------
30           |                                            
           0 |     10556   .6649344   4.175088    16.7918 
           1 |     60134   3.787909   23.78408   12.72723 
           2 |    131236   8.266704    51.9062   16.97213 
           3 |     50907    3.20669   20.13463   18.25055 
-------------+--------------------------------------------
35           |                                            
           0 |      7139   .4496937   2.945411   11.35626 
           1 |     59909   3.773736   24.71728   12.67961 
           2 |    122338   7.706209   50.47426    15.8214 
           3 |     52991   3.337963   21.86305   18.99768 
-------------+--------------------------------------------
40           |                                            
           0 |      5881   .3704509   2.904226   9.355116 
           1 |     61204   3.855309    30.2245   12.95369 
           2 |     96409   6.072912   47.60985   12.46812 
           3 |     39004   2.456906   19.26142   13.98324 
-------------+--------------------------------------------
45           |                                            
           0 |      5239   .3300106   2.735585   8.333864 
           1 |     63461    3.99748   33.13665   13.43138 
           2 |     90899   5.725831   47.46362   11.75554 
           3 |     31914   2.010299   16.66414   11.44142 
-------------+--------------------------------------------
50           |                                            
           0 |      4550   .2866097   2.609154   7.237847 
           1 |     62601   3.943308   35.89795   13.24937 
           2 |     79128   4.984362    45.3752   10.23325 
           3 |     28107   1.770492   16.11769   10.07658 
-------------+--------------------------------------------
55           |                                            
           0 |      4126   .2599014   2.555084   6.563375 
           1 |     63548   4.002961   39.35299    13.4498 
           2 |     69934   4.405222   43.30761   9.044234 
           3 |     23874    1.50385   14.78431   8.559014 
-------------+--------------------------------------------
60           |                                            
           0 |      4029   .2537913   3.072664   6.409074 
           1 |     52518   3.308168   40.05216   11.11532 
           2 |     57349   3.612479   43.73646   7.416676 
           3 |     17228   1.085211   13.13871   6.176371 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     13460   .8339286   5.841532   20.24334 
           1 |     70780    4.38525   30.71795   9.611063 
           2 |    130805   8.104163   56.76832   18.12703 
           3 |     15374   .9525125   6.672193   17.17554 
-------------+--------------------------------------------
30           |                                            
           0 |      9309    .576749     3.7845   14.00039 
           1 |     87180    5.40133   35.44234   11.83798 
           2 |    131543   8.149887   53.47776    18.2293 
           3 |     17945   1.111802   7.295398   20.04782 
-------------+--------------------------------------------
35           |                                            
           0 |      7941   .4919931    3.41202   11.94297 
           1 |     89605   5.551573    38.5007   12.16727 
           2 |    118946   7.369426   51.10769    16.4836 
           3 |     16244   1.006414   6.979582   18.14749 
-------------+--------------------------------------------
40           |                                            
           0 |      6729   .4169024   3.357969   10.12017 
           1 |     93038   5.764268    46.4287   12.63343 
           2 |     89061   5.517869   44.44406   12.34212 
           3 |     11561   .7162741   5.769279   12.91573 
-------------+--------------------------------------------
45           |                                            
           0 |      6646     .41176   3.441419   9.995338 
           1 |    101051   6.260722   52.32604    13.7215 
           2 |     76924   4.765908   39.83264   10.66017 
           3 |      8497   .5264407   4.399901   9.492688 
-------------+--------------------------------------------
50           |                                            
           0 |      6491   .4021568   3.485194   9.762223 
           1 |    103864   6.435005    55.7674   14.10347 
           2 |     68220   4.226643   36.62917   9.453965 
           3 |      7670    .475203   4.118231   8.568779 
-------------+--------------------------------------------
55           |                                            
           0 |      7315   .4532086   4.098338   11.00149 
           1 |    103527   6.414125   58.00254   14.05771 
           2 |     60330   3.737809   33.80078   8.360564 
           3 |      7315   .4532086   4.098338    8.17218 
-------------+--------------------------------------------
60           |                                            
           0 |      8600   .5328222   5.863263   12.93408 
           1 |     87398   5.414836   59.58575   11.86759 
           2 |     45773   2.835915   31.20688   6.343247 
           3 |      4905   .3038945   3.344105   5.479773 

=> 1990

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |      3424   .1850644    1.15299   17.27984 
           1 |     54312   2.935519    18.2889   13.73805 
           2 |    183767   9.932455   61.88129   18.22425 
           3 |     55464   2.997783   18.67682   12.99997 
-------------+--------------------------------------------
30           |                                            
           0 |      3248   .1755517   1.151263   16.39162 
           1 |     55970   3.025132   19.83872   14.15743 
           2 |    153751   8.310115   54.49747   15.24755 
           3 |     69156   3.737825   24.51254   16.20918 
-------------+--------------------------------------------
35           |                                            
           0 |      2893   .1563643   1.127849   14.60005 
           1 |     51388   2.777479   20.03384   12.99843 
           2 |    136094   7.355768   53.05685    13.4965 
           3 |     66131   3.574326   25.78146   15.50017 
-------------+--------------------------------------------
40           |                                            
           0 |      2524   .1364201   .9791979   12.73782 
           1 |     51475   2.782181   19.96997   13.02044 
           2 |    137871   7.451814   53.48771   13.67273 
           3 |     65892   3.561408   25.56312   15.44415 
-------------+--------------------------------------------
45           |                                            
           0 |      2055   .1110711   .8619026   10.37093 
           1 |     47230   2.552743   19.80908   11.94668 
           2 |    127530   6.892891   53.48829   12.64721 
           3 |     61611   3.330024   25.84072   14.44074 
-------------+--------------------------------------------
50           |                                            
           0 |      1820   .0983695   .9442136   9.184961 
           1 |     46617    2.51961   24.18484   11.79162 
           2 |    100582   5.436374   52.18181   9.974761 
           3 |     43734   2.363787   22.68914   10.25063 
-------------+--------------------------------------------
55           |                                            
           0 |      1835   .0991802   1.046658   9.260661 
           1 |     45887   2.480154   26.17328   11.60697 
           2 |     92387   4.993441   52.69621   9.162059 
           3 |     35211   1.903126   20.08385   8.252959 
-------------+--------------------------------------------
60           |                                            
           0 |      2016   .1089631   1.341246   10.17411 
           1 |     42461   2.294982   28.24933   10.74038 
           2 |     76383   4.128438   50.81765   7.574936 
           3 |     29448    1.59164   19.59177   6.902193 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |      3101   .1693527   1.095059   12.19858 
           1 |     62516   3.414141   22.07634   9.910024 
           2 |    189764   10.36344   67.01156   18.69609 
           3 |     27800   1.518221   9.817043   17.39239 
-------------+--------------------------------------------
30           |                                            
           0 |      3065   .1673866   1.149167   12.05696 
           1 |     69176   3.777859    25.9363   10.96577 
           2 |    163671   8.938446    61.3655   16.12533 
           3 |     30803   1.682222   11.54903   19.27115 
-------------+--------------------------------------------
35           |                                            
           0 |      3037   .1658575   1.227939   11.94682 
           1 |     72130   3.939184   29.16406   11.43403 
           2 |    144783    7.90693   58.53957   14.26443 
           3 |     27375   1.495011   11.06843    17.1265 
-------------+--------------------------------------------
40           |                                            
           0 |      2804   .1531328    1.11929   11.03025 
           1 |     81628   4.457891   32.58395   12.93965 
           2 |    141909   7.749974   56.64668   13.98128 
           3 |     24175   1.320252   9.650082    15.1245 
-------------+--------------------------------------------
45           |                                            
           0 |      2637   .1440126    1.13452   10.37331 
           1 |     81564   4.454396    35.0914   12.92951 
           2 |    128181   7.000257    55.1475   12.62876 
           3 |     20051   1.095031   8.626572   12.54442 
-------------+--------------------------------------------
50           |                                            
           0 |      2704   .1476716   1.387093   10.63688 
           1 |     83314   4.549968   42.73828   13.20692 
           2 |     95622   5.222135   49.05202   9.420952 
           3 |     13300   .7263433   6.822612   8.320821 
-------------+--------------------------------------------
55           |                                            
           0 |      3207   .1751416   1.745582   12.61555 
           1 |     89704    4.89894   48.82621   14.21986 
           2 |     81781   4.466247   44.51369   8.057297 
           3 |      9029   .4930943   4.914517   5.648774 
-------------+--------------------------------------------
60           |                                            
           0 |      4866   .2657434   2.824816   19.14165 
           1 |     90804   4.959013   52.71365   14.39423 
           2 |     69282   3.783648   40.21967    6.82586 
           3 |      7307   .3990519   4.241868   4.571446 

=> 2000

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     12726   .6464151   5.563765   11.53062 
           1 |     31905   1.620609   13.94876   9.120196 
           2 |    127464   6.474513   55.72684   13.65171 
           3 |     56635   2.876766   24.76063   9.852581 
-------------+--------------------------------------------
30           |                                            
           0 |     15251   .7746721   5.410631   13.81844 
           1 |     41602   2.113167   14.75923   11.89213 
           2 |    133649   6.788679   47.41495   14.31414 
           3 |     91369   4.641074   32.41518   15.89513 
-------------+--------------------------------------------
35           |                                            
           0 |     17548   .8913478   5.709786   15.89968 
           1 |     50195   2.549647    16.3325   14.34848 
           2 |    140037   7.113157   45.56538   14.99831 
           3 |     99552   5.056728   32.39233   17.31869 
-------------+--------------------------------------------
40           |                                            
           0 |     16269   .8263812   5.844863   14.74082 
           1 |     49655   2.522218   17.83924   14.19412 
           2 |    126912   6.446474   45.59489   13.59259 
           3 |     85511   4.343517   30.72101   14.87603 
-------------+--------------------------------------------
45           |                                            
           0 |     14047   .7135151   5.688104   12.72754 
           1 |     46858   2.380145   18.97438   13.39458 
           2 |    113782   5.779538   46.07417   12.18634 
           3 |     72267   3.670791   29.26334   12.57202 
-------------+--------------------------------------------
50           |                                            
           0 |     12760   .6481421    5.25172   11.56143 
           1 |     47808     2.4284   19.67667   13.66614 
           2 |    114536   5.817838   47.14036   12.26709 
           3 |     67864   3.447141   27.93125   11.80605 
-------------+--------------------------------------------
55           |                                            
           0 |     10942   .5557971   5.050146   9.914195 
           1 |     42580   2.162844   19.65228    12.1717 
           2 |    102332   5.197937   47.23008   10.96001 
           3 |     60813   3.088986    28.0675   10.57941 
-------------+--------------------------------------------
60           |                                            
           0 |     10824   .5498033    6.52697   9.807279 
           1 |     39225   1.992428   23.65303   11.21265 
           2 |     74973   3.808241   45.20939   8.029796 
           3 |     40813    2.07309   24.61061   7.100086 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           0 |     12945   .6527869   5.583496   11.22529 
           1 |     40344   2.034456   17.40136   7.345276 
           2 |    139256   7.022364   60.06453   13.44688 
           3 |     39299   1.981759   16.95062   13.89325 
-------------+--------------------------------------------
30           |                                            
           0 |     15654   .7893957   5.441084    13.5744 
           1 |     56820   2.865304   19.74974     10.345 
           2 |    161223    8.13011   56.03858   15.56806 
           3 |     54003   2.723249   18.77059   19.09151 
-------------+--------------------------------------------
35           |                                            
           0 |     17084   .8615073   5.604932   14.81443 
           1 |     71050    3.58289   23.31014    12.9358 
           2 |    164902   8.315633   54.10117   15.92331 
           3 |     51767   2.610492   16.98376   18.30102 
-------------+--------------------------------------------
40           |                                            
           0 |     14940   .7533903   5.457255   12.95525 
           1 |     73346   3.698672   26.79169   13.35382 
           2 |    144169   7.270115   52.66178   13.92129 
           3 |     41309   2.083119   15.08927   14.60384 
-------------+--------------------------------------------
45           |                                            
           0 |     13179    .664587   5.352009    11.4282 
           1 |     74432   3.753437   30.22693   13.55155 
           2 |    125558   6.331605   50.98926   12.12417 
           3 |     33075   1.667897    13.4318    11.6929 
-------------+--------------------------------------------
50           |                                            
           0 |     12867   .6488536   5.306111   11.15765 
           1 |     80941   4.081671   33.37856   14.73661 
           2 |    120661    6.08466   49.75834    11.6513 
           3 |     28025   1.413237   11.55699   9.907588 
-------------+--------------------------------------------
55           |                                            
           0 |     12884   .6497108   5.909414   11.17239 
           1 |     78119   3.939364   35.83029   14.22282 
           2 |    105289   5.309485   48.29217   10.16695 
           3 |     21733   1.095946   9.968123   7.683198 
-------------+--------------------------------------------
60           |                                            
           0 |     15767    .795094   8.849811   13.67239 
           1 |     74199   3.741687   41.64693   13.50912 
           2 |     74543   3.759034   41.84001   7.198042 
           3 |     13653   .6884898    7.66325   4.826701 

. global xlab 

. forv i = 25(5)60 {
  2.     local i1 = `i'+5-1
  3.     global xlab $xlab `i' "`i'-`i1'"
  4. }

. local plots

. foreach s in m f {
  2.     foreach o in 3 2 1 0 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)70, angle(hor)) ///
>       bylabels("High" "Medium" "Low" "No information" ///
>                "High" "Medium" "Low" "No information") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7) 

. addplot 2: , norescaling text(179 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(179 42.5 "Women", size(medlarge))
Figure 1: Educational level by age (including missings)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 High Medium Low No information High Medium Low No information 2000 1990 1980 1970

Here is a version without the “no information” category. The results are displayed in figure 2.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate EDUC3 ALTC if GESL==1 & ZJHR==`y' & EDUC3!=0 ///
>         [fw=POP], nolabel nototal
  4.     eststo m`y'
  5.     estpost tabulate EDUC3 ALTC if GESL==2 & ZJHR==`y' & EDUC3!=0 ///
>         [fw=POP], nolabel nototal
  6.     eststo f`y'
  7. }

=> 1970

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     71776   4.986477   30.33528   14.68094 
           2 |    134966   9.376461   57.04179   17.46009 
           3 |     29867   2.074943   12.62293   16.82553 
-------------+--------------------------------------------
30           |                                            
           1 |     74168   5.152656   34.72902    15.1702 
           2 |    109621   7.615674   51.32982    14.1813 
           3 |     29773   2.068413   13.94115   16.77258 
-------------+--------------------------------------------
35           |                                            
           1 |     71044   4.935623   35.59854   14.53122 
           2 |    102939   7.151457    51.5804   13.31687 
           3 |     25587     1.7776   12.82107    14.4144 
-------------+--------------------------------------------
40           |                                            
           1 |     62566   4.346633   34.16909   12.79714 
           2 |     95415   6.628744   52.10888   12.34351 
           3 |     25126   1.745573   13.72203    14.1547 
-------------+--------------------------------------------
45           |                                            
           1 |     61119   4.246106   35.09903   12.50118 
           2 |     89925   6.247338   51.64156   11.63329 
           3 |     23089   1.604057   13.25941   13.00715 
-------------+--------------------------------------------
50           |                                            
           1 |     49739   3.455506   33.69737   10.17353 
           2 |     80515     5.5936   54.54761   10.41595 
           3 |     17351   1.205422   11.75502   9.774661 
-------------+--------------------------------------------
55           |                                            
           1 |     49945   3.469817   33.68903   10.21567 
           2 |     83420   5.795418   56.26868   10.79176 
           3 |     14888   1.034311   10.04229   8.387133 
-------------+--------------------------------------------
60           |                                            
           1 |     48549   3.372833   35.54776    9.93013 
           2 |     76196   5.293547     55.791   9.857218 
           3 |     11829   .8217933   8.661239    6.66385 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |    109789   7.562424   47.56353   13.35361 
           2 |    107330   7.393044   46.49823   19.00154 
           3 |     13707   .9441578   5.938239    21.1678 
-------------+--------------------------------------------
30           |                                            
           1 |    108026   7.440986   53.54847   13.13918 
           2 |     83375    5.74299   41.32897   14.76058 
           3 |     10334   .7118207   5.122562   15.95886 
-------------+--------------------------------------------
35           |                                            
           1 |    110786   7.631099   57.78561   13.47488 
           2 |     72680   5.006303   37.90965   12.86716 
           3 |      8253   .5684785   4.304738   12.74516 
-------------+--------------------------------------------
40           |                                            
           1 |    105408   7.260654   56.85468   12.82075 
           2 |     71817   4.946858   38.73645   12.71437 
           3 |      8174   .5630368    4.40887   12.62316 
-------------+--------------------------------------------
45           |                                            
           1 |    103511   7.129986   57.53168   12.59002 
           2 |     68016    4.68504   37.80347   12.04145 
           3 |      8393   .5781219   4.664851   12.96136 
-------------+--------------------------------------------
50           |                                            
           1 |     87416   6.021339   58.11577   10.63239 
           2 |     56799   3.912397   37.76102   10.05561 
           3 |      6202   .4272027   4.123204   9.577787 
-------------+--------------------------------------------
55           |                                            
           1 |     96554   6.650778   61.65921   11.74384 
           2 |     54631   3.763062   34.88726   9.671788 
           3 |      5408   .3725108   3.453539   8.351608 
-------------+--------------------------------------------
60           |                                            
           1 |    100677   6.934776   64.88551   12.24532 
           2 |     50201   3.457917   32.35414   8.887508 
           3 |      4283   .2950192   2.760359   6.614263 

=> 1980

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     49108   3.220913   23.38833    10.3936 
           2 |    125951   8.260918   59.98581   16.28865 
           3 |     34909   2.289624   16.62587   12.51515 
-------------+--------------------------------------------
30           |                                            
           1 |     60134    3.94409   24.82035   12.72723 
           2 |    131236   8.607553   54.16775   16.97213 
           3 |     50907   3.338906    21.0119   18.25055 
-------------+--------------------------------------------
35           |                                            
           1 |     59909   3.929332    25.4674   12.67961 
           2 |    122338   8.023948   52.00605    15.8214 
           3 |     52991   3.475592   22.52655   18.99768 
-------------+--------------------------------------------
40           |                                            
           1 |     61204   4.014269   31.12854   12.95369 
           2 |     96409   6.323307   49.03391   12.46812 
           3 |     39004   2.558208   19.83755   13.98324 
-------------+--------------------------------------------
45           |                                            
           1 |     63461   4.162302   34.06863   13.43138 
           2 |     90899   5.961915   48.79854   11.75554 
           3 |     31914   2.093187   17.13283   11.44142 
-------------+--------------------------------------------
50           |                                            
           1 |     62601   4.105896   36.85968   13.24937 
           2 |     79128   5.189875   46.59083   10.23325 
           3 |     28107   1.843492   16.54949   10.07658 
-------------+--------------------------------------------
55           |                                            
           1 |     63548   4.168008   40.38486    13.4498 
           2 |     69934   4.586856   44.44317   9.044234 
           3 |     23874   1.565856   15.17197   8.559014 
-------------+--------------------------------------------
60           |                                            
           1 |     52518   3.444569   41.32185   11.11532 
           2 |     57349   3.761426   45.12294   7.416676 
           3 |     17228   1.129956   13.55521   6.176371 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     70780   4.573663   32.62368   9.611063 
           2 |    130805    8.45236   60.29019   18.12703 
           3 |     15374   .9934374   7.086131   17.17554 
-------------+--------------------------------------------
30           |                                            
           1 |     87180   5.633399   36.83641   11.83798 
           2 |    131543   8.500048   55.58124    18.2293 
           3 |     17945    1.15957   7.582352   20.04782 
-------------+--------------------------------------------
35           |                                            
           1 |     89605   5.790097   39.86076   12.16727 
           2 |    118946   7.686055    52.9131    16.4836 
           3 |     16244   1.049655   7.226139   18.14749 
-------------+--------------------------------------------
40           |                                            
           1 |     93038   6.011931   48.04193   12.63343 
           2 |     89061   5.754945   45.98833   12.34212 
           3 |     11561   .7470489   5.969741   12.91573 
-------------+--------------------------------------------
45           |                                            
           1 |    101051   6.529715   54.19098    13.7215 
           2 |     76924   4.970676   41.25231   10.66017 
           3 |      8497   .5490593   4.556716   9.492688 
-------------+--------------------------------------------
50           |                                            
           1 |    103864   6.711486   57.78119   14.10347 
           2 |     68220   4.408241   37.95187   9.453965 
           3 |      7670   .4956202   4.266943   8.568779 
-------------+--------------------------------------------
55           |                                            
           1 |    103527   6.689709   60.48127   14.05771 
           2 |     60330   3.898405   35.24525   8.360564 
           3 |      7315   .4726808   4.273479    8.17218 
-------------+--------------------------------------------
60           |                                            
           1 |     87398   5.647485   63.29702   11.86759 
           2 |     45773    2.95776   33.15058   6.343247 
           3 |      4905   .3169514   3.552391   5.479773 

=> 1990

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     54312   2.967298   18.50223   13.73805 
           2 |    183767   10.03998   62.60309   18.22425 
           3 |     55464   3.030237   18.89468   12.99997 
-------------+--------------------------------------------
30           |                                            
           1 |     55970   3.057882   20.06978   14.15743 
           2 |    153751   8.400078   55.13219   15.24755 
           3 |     69156    3.77829   24.79803   16.20918 
-------------+--------------------------------------------
35           |                                            
           1 |     51388   2.807547   20.26237   12.99843 
           2 |    136094     7.4354   53.66208    13.4965 
           3 |     66131   3.613021   26.07556   15.50017 
-------------+--------------------------------------------
40           |                                            
           1 |     51475   2.812301   20.16745   13.02044 
           2 |    137871   7.532486   54.01664   13.67273 
           3 |     65892   3.599963   25.81591   15.44415 
-------------+--------------------------------------------
45           |                                            
           1 |     47230   2.580378    19.9813   11.94668 
           2 |    127530   6.967512   53.95332   12.64721 
           3 |     61611   3.366074   26.06538   14.44074 
-------------+--------------------------------------------
50           |                                            
           1 |     46617   2.546887   24.41537   11.79162 
           2 |    100582   5.495227   52.67921   9.974761 
           3 |     43734   2.389376   22.90542   10.25063 
-------------+--------------------------------------------
55           |                                            
           1 |     45887   2.507004   26.45013   11.60697 
           2 |     92387   5.047499    53.2536   9.162059 
           3 |     35211   1.923728   20.29628   8.252959 
-------------+--------------------------------------------
60           |                                            
           1 |     42461   2.319827   28.63337   10.74038 
           2 |     76383   4.173132   51.50851   7.574936 
           3 |     29448   1.608871   19.85812   6.902193 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     62516   3.462207   22.32077   9.910024 
           2 |    189764   10.50935    67.7535   18.69609 
           3 |     27800   1.539596   9.925736   17.39239 
-------------+--------------------------------------------
30           |                                            
           1 |     69176   3.831045   26.23782   10.96577 
           2 |    163671   9.064286   62.07889   16.12533 
           3 |     30803   1.705905   11.68329   19.27115 
-------------+--------------------------------------------
35           |                                            
           1 |     72130   3.994641   29.52662   11.43403 
           2 |    144783   8.018247   59.26734   14.26443 
           3 |     27375   1.516059   11.20604    17.1265 
-------------+--------------------------------------------
40           |                                            
           1 |     81628   4.520651   32.95278   12.93965 
           2 |    141909   7.859082    57.2879   13.98128 
           3 |     24175   1.338839   9.759317    15.1245 
-------------+--------------------------------------------
45           |                                            
           1 |     81564   4.517107   35.49409   12.92951 
           2 |    128181   7.098809   55.78034   12.62876 
           3 |     20051   1.110447   8.725565   12.54442 
-------------+--------------------------------------------
50           |                                            
           1 |     83314   4.614024   43.33944   13.20692 
           2 |     95622   5.295655   49.74198   9.420952 
           3 |     13300   .7365691   6.918579   8.320821 
-------------+--------------------------------------------
55           |                                            
           1 |     89704   4.967909   49.69365   14.21986 
           2 |     81781   4.529125   45.30452   8.057297 
           3 |      9029   .5000363   5.001828   5.648774 
-------------+--------------------------------------------
60           |                                            
           1 |     90804   5.028829     54.246   14.39423 
           2 |     69282   3.836916   41.38883    6.82586 
           3 |      7307     .40467   4.365177   4.571446 

=> 2000

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     31905   1.716858   14.77056   9.120196 
           2 |    127464   6.859036   59.01002   13.65171 
           3 |     56635   3.047617   26.21942   9.852581 
-------------+--------------------------------------------
30           |                                            
           1 |     41602   2.238668   15.60348   11.89213 
           2 |    133649    7.19186   50.12715   14.31414 
           3 |     91369   4.916708   34.26937   15.89513 
-------------+--------------------------------------------
35           |                                            
           1 |     50195   2.701071   17.32152   14.34848 
           2 |    140037   7.535608   48.32461   14.99831 
           3 |     99552   5.357048   34.35386   17.31869 
-------------+--------------------------------------------
40           |                                            
           1 |     49655   2.672013   18.94665   14.19412 
           2 |    126912   6.829332   48.42528   13.59259 
           3 |     85511    4.60148   32.62807   14.87603 
-------------+--------------------------------------------
45           |                                            
           1 |     46858   2.521502   20.11876   13.39458 
           2 |    113782   6.122786   48.85298   12.18634 
           3 |     72267     3.8888   31.02826   12.57202 
-------------+--------------------------------------------
50           |                                            
           1 |     47808   2.572623   20.76731   13.66614 
           2 |    114536    6.16336   49.75327   12.26709 
           3 |     67864   3.651867   29.47943   11.80605 
-------------+--------------------------------------------
55           |                                            
           1 |     42580   2.291296   20.69753    12.1717 
           2 |    102332   5.506644   49.74213   10.96001 
           3 |     60813   3.272442   29.56034   10.57941 
-------------+--------------------------------------------
60           |                                            
           1 |     39225   2.110758   25.30466   11.21265 
           2 |     74973   4.034414   48.36624   8.029796 
           3 |     40813   2.196211    26.3291   7.100086 

ALTC         |                                            
       EDUC3 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     40344   2.160071   18.43042   7.345276 
           2 |    139256   7.455952   63.61655   13.44688 
           3 |     39299   2.104121   17.95303   13.89325 
-------------+--------------------------------------------
30           |                                            
           1 |     56820   3.042218   20.88617     10.345 
           2 |    161223   8.632094   59.26314   15.56806 
           3 |     54003   2.891392   19.85069   19.09151 
-------------+--------------------------------------------
35           |                                            
           1 |     71050   3.804112   24.69423    12.9358 
           2 |    164902   8.829073   57.31356   15.92331 
           3 |     51767   2.771674   17.99221   18.30102 
-------------+--------------------------------------------
40           |                                            
           1 |     73346   3.927042   28.33818   13.35382 
           2 |    144169      7.719   55.70156   13.92129 
           3 |     41309   2.211739   15.96027   14.60384 
-------------+--------------------------------------------
45           |                                            
           1 |     74432   3.985188   31.93616   13.55155 
           2 |    125558   6.722542   53.87252   12.12417 
           3 |     33075    1.77088   14.19132    11.6929 
-------------+--------------------------------------------
50           |                                            
           1 |     80941   4.333689    35.2489   14.73661 
           2 |    120661   6.460351   52.54652    11.6513 
           3 |     28025   1.500496   12.20458   9.907588 
-------------+--------------------------------------------
55           |                                            
           1 |     78119   4.182595   38.08064   14.22282 
           2 |    105289   5.637313   51.32519   10.16695 
           3 |     21733   1.163614   10.59418   7.683198 
-------------+--------------------------------------------
60           |                                            
           1 |     74199   3.972713   45.69045   13.50912 
           2 |     74543   3.991131   45.90228   7.198042 
           3 |     13653   .7309998   8.407279   4.826701 

. local plots

. foreach s in m f {
  2.     foreach o in 3 2 1 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)70, angle(hor)) ///
>       bylabels("High" "Medium" "Low" ///
>                "High" "Medium" "Low") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(167.5 42.5 "Men"  , size(medlarge))

. addplot 5: , norescaling text(167.5 42.5 "Women", size(medlarge))
Figure 2: Educational level by age (excluding missings)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 High Medium Low High Medium Low 2000 1990 1980 1970

Distribution of partnerships

Some descriptives:

. tab PTYPE ZJHR [fw=POP]

                      |                  Zaehljahr
     Partnership type |      1970       1980       1990       2000 |     Total
----------------------+--------------------------------------------+----------
partner in HH: marrie | 2,337,463  2,368,757  2,506,111  2,512,991 | 9,725,322 
partner in HH: consen |         0     78,886    220,397    321,696 |   620,979 
   no partner: single |   411,919    445,394    562,272    641,271 | 2,060,856 
  no partner: married |    88,538     76,500    123,218    167,027 |   455,283 
  no partner: widowed |    98,465     90,079     81,552     64,288 |   334,384 
 no partner: divorced |    89,418    141,956    187,707    244,467 |   663,548 
----------------------+--------------------------------------------+----------
                Total | 3,025,803  3,201,572  3,681,257  3,951,740 |13,860,372 


. tab PTYPE ZJHR [fw=POP], col nofreq

                      |                  Zaehljahr
     Partnership type |      1970       1980       1990       2000 |     Total
----------------------+--------------------------------------------+----------
partner in HH: marrie |     77.25      73.99      68.08      63.59 |     70.17 
partner in HH: consen |      0.00       2.46       5.99       8.14 |      4.48 
   no partner: single |     13.61      13.91      15.27      16.23 |     14.87 
  no partner: married |      2.93       2.39       3.35       4.23 |      3.28 
  no partner: widowed |      3.25       2.81       2.22       1.63 |      2.41 
 no partner: divorced |      2.96       4.43       5.10       6.19 |      4.79 
----------------------+--------------------------------------------+----------
                Total |    100.00     100.00     100.00     100.00 |    100.00 

In 1970, consensual partnerships were either not recorded or not distinguished from married partnerships. Probably the former applies, so that the increase in the proportion of people without partner between 1970 and 1980 may have been somewhat stronger than our results suggest.

Figure 3 displays the distribution of partnership status by sex and age over time.

. generate byte PTYPE2 = PTYPE

. replace PTYPE2 = 5 if PTYPE==6 // flip widowed and divorced
(384 real changes made)

. replace PTYPE2 = 6 if PTYPE==5
(383 real changes made)

. capt prog drop cumpct_PTYPE

. prog cumpct_PTYPE
  1.     tempname C
  2.     mat `C' = e(colpct)
  3.     local c = colsof(`C')
  4.     local coln: coln `C'
  5.     local cat .
  6.     forv i = 1/`c' {
  7.         local cat0 `cat'
  8.         gettoken cat coln : coln
  9.         if (`cat'<`cat0') continue
 10.         mat `C'[1,`i'] = `C'[1,`i'-1] + `C'[1,`i']
 11.     }
 12.     qui estadd matrix cumpct = `C'
 13. end

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate PTYPE2 ALTC if GESL==1 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  4.     cumpct_PTYPE
  5.     eststo m`y'
  6.     estpost tabulate PTYPE2 ALTC if GESL==2 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  7.     cumpct_PTYPE
  8.     eststo f`y'
  9. }

=> 1970

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |    151865   10.10529   59.62809   12.92571 
           3 |     89574   5.960371   35.17023   40.54957 
           4 |     10380   .6906987   4.075591   17.74784 
           5 |      2739   .1822566   1.075438   8.116037 
           6 |       129   .0085838   .0506504   .8724469 
-------------+--------------------------------------------
30           |                                            
           1 |    173484   11.54385   77.42575   14.76578 
           3 |     35443   2.358423   15.81818   16.04482 
           4 |     10781   .7173818    4.81155   18.43347 
           5 |      4087   .2719543   1.824024   12.11035 
           6 |       270   .0179662   .1205007   1.826052 
-------------+--------------------------------------------
35           |                                            
           1 |    170516   11.34636   81.96781   14.51316 
           3 |     22460   1.494518   10.79662    10.1675 
           4 |      9932   .6608882   4.774357   16.98184 
           5 |      4634   .3083524   2.227585   13.73118 
           6 |       486   .0323391   .2336224   3.286893 
-------------+--------------------------------------------
40           |                                            
           1 |    157833   10.50241   83.13082   13.43367 
           3 |     17686   1.176849   9.315236   8.006338 
           4 |      8644    .575183   4.552804   14.77961 
           5 |      4922   .3275163   2.592423   14.58457 
           6 |       776   .0516361   .4087201   5.248208 
-------------+--------------------------------------------
45           |                                            
           1 |    150624   10.02272   83.72558   12.82009 
           3 |     15787   1.050488   8.775333   7.146673 
           4 |      7224   .4806944    4.01552   12.35167 
           5 |      4894   .3256531    2.72037    14.5016 
           6 |      1373   .0913612   .7631933   9.285811 
-------------+--------------------------------------------
50           |                                            
           1 |    127538   8.486545   83.89333   10.85517 
           3 |     13482   .8971098   8.868337   6.103214 
           4 |      4572   .3042268    3.00742   7.817255 
           5 |      4399   .2927152   2.893622   13.03485 
           6 |      2033   .1352785   1.337289   13.74949 
-------------+--------------------------------------------
55           |                                            
           1 |    126913   8.444956    83.0289   10.80197 
           3 |     13666   .9093534   8.940558    6.18651 
           4 |      4249    .282734   2.779777   7.264986 
           5 |      4300   .2861276   2.813142    12.7415 
           6 |      3726   .2479329    2.43762   25.19951 
-------------+--------------------------------------------
60           |                                            
           1 |    116133   7.727641   82.12793    9.88445 
           3 |     12802   .8518618   9.053428   5.795383 
           4 |      2704   .1799277   1.912238   4.623329 
           5 |      3773   .2510603   2.668222   11.17992 
           6 |      5993    .398782   4.238181   40.53158 

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |    182092   11.95632   75.03101   15.66306 
           3 |     48200   3.164854   19.86081   25.23309 
           4 |      6993   .4591665   2.881466   23.26967 
           5 |      4705   .3089344   1.938695    8.45159 
           6 |       699    .045897   .2880229    .835335 
-------------+--------------------------------------------
30           |                                            
           1 |    175386     11.516   82.88994   15.08623 
           3 |     24143    1.58525   11.41033   12.63906 
           4 |      4963   .3258749   2.345585   16.51471 
           5 |      5832   .3829342   2.756287   10.47602 
           6 |      1265    .083061   .5978572   1.511729 
-------------+--------------------------------------------
35           |                                            
           1 |    167697   11.01113   83.54357   14.42484 
           3 |     19781   1.298838   9.854531   10.35551 
           4 |      3964   .2602797   1.974792   13.19047 
           5 |      6894   .4526661   3.434464   12.38369 
           6 |      2394   .1571921   1.192647   2.860933 
-------------+--------------------------------------------
40           |                                            
           1 |    158332   10.39622   81.72185   13.61929 
           3 |     19312   1.268043   9.967741   10.10999 
           4 |      3598   .2362478    1.85708   11.97258 
           5 |      7833   .5143216   4.042943   14.07041 
           6 |      4670   .3066363   2.410385   5.580851 
-------------+--------------------------------------------
45           |                                            
           1 |    147312   9.672635   78.45635   12.67138 
           3 |     20043   1.316041   10.67463   10.49267 
           4 |      3531   .2318485   1.880562   11.74963 
           5 |      8398     .55142    4.47266   15.08532 
           6 |      8479   .5567385   4.515799   10.13277 
-------------+--------------------------------------------
50           |                                            
           1 |    117473    7.71338   74.69986   10.10471 
           3 |     17637   1.158061   11.21519   9.233113 
           4 |      2621   .1720971   1.666667   8.721549 
           5 |      7385   .4849056   4.696045   13.26567 
           6 |     12144   .7973856   7.722243    14.5126 
-------------+--------------------------------------------
55           |                                            
           1 |    114136   7.494269   69.28251   9.817669 
           3 |     19551   1.283736   11.86779   10.23511 
           4 |      2288   .1502321   1.388855    7.61347 
           5 |      7399   .4858248    4.49132   13.29082 
           6 |     21366    1.40291   12.96953   25.53329 
-------------+--------------------------------------------
60           |                                            
           1 |    100129   6.574558   60.88313   8.612825 
           3 |     22352   1.467652   13.59106   11.70145 
           4 |      2094   .1374939    1.27325   6.967922 
           5 |      7224   .4743341   4.392531   12.97647 
           6 |     32662   2.144615   19.86003   39.03249 

=> 1980

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     99575   6.272342   43.04792   8.488975 
           2 |     15919   1.002756   6.882047   36.28345 
           3 |    104453   6.579613   45.15676   41.80227 
           4 |      8098   .5101022   3.500899   16.10453 
           5 |      3171   .1997449   1.370876   5.558282 
           6 |        96   .0060471   .0415024   .7137016 
-------------+--------------------------------------------
30           |                                            
           1 |    175784   11.07283   69.52573   14.98595 
           2 |      9516   .5994236   3.763749   21.68938 
           3 |     49682   3.129526   19.65012   19.88282 
           4 |      9051   .5701328   3.579833   17.99976 
           5 |      8552   .5387002    3.38247   14.99036 
           6 |       248   .0156218   .0980885   1.843729 
-------------+--------------------------------------------
35           |                                            
           1 |    188561   11.87767   77.79657   16.07522 
           2 |      6198    .390419   2.557173   14.12682 
           3 |     27988   1.762996    11.5473   11.20085 
           4 |      8082   .5090943   3.334475   16.07271 
           5 |     11083   .6981307   4.572629   19.42682 
           6 |       465   .0292909   .1918499   3.456992 
-------------+--------------------------------------------
40           |                                            
           1 |    163375   10.29118   80.67981   13.92806 
           2 |      3952    .248941   1.951624   9.007613 
           3 |     17798   1.121116   8.789223    7.12279 
           4 |      7343   .4625439   3.626209   14.60305 
           5 |      9248    .582542   4.566959   16.21034 
           6 |       782   .0492591   .3861767   5.813694 
-------------+--------------------------------------------
45           |                                            
           1 |    157397   9.914616   82.18607   13.41842 
           2 |      2966   .1868317    1.54872   6.760268 
           3 |     14916   .9395758   7.788505   5.969409 
           4 |      6689   .4213477   3.492713   13.30244 
           5 |      8241   .5191099   4.303102   14.44522 
           6 |      1304   .0821404   .6808937   9.694447 
-------------+--------------------------------------------
50           |                                            
           1 |    144828    9.12288   83.05024   12.34689 
           2 |      2208   .1390844   1.266157   5.032593 
           3 |     13130   .8270736   7.529274   5.254648 
           4 |      5117   .3223256   2.934295    10.1762 
           5 |      6911   .4353317   3.963047   12.11394 
           6 |      2192   .1380766   1.256982   16.29619 
-------------+--------------------------------------------
55           |                                            
           1 |    134741   8.487488   83.44026   11.48695 
           2 |      1834   .1155257    1.13573   4.180152 
           3 |     12005   .7562086   7.434265   4.804421 
           4 |      3712   .2338231   2.298708    7.38207 
           5 |      5672   .3572857   3.512466   9.942156 
           6 |      3518   .2216028   2.178571   26.15419 
-------------+--------------------------------------------
60           |                                            
           1 |    108731   6.849089   82.92227   9.269543 
           2 |      1281   .0806916   .9769379   2.919725 
           3 |      9902   .6237382   7.551631   3.962797 
           4 |      2192   .1380766     1.6717    4.35924 
           5 |      4172    .262799   3.181721   7.312883 
           6 |      4846    .305255   3.695738   36.02706 

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |    144843   8.973902    62.8607     12.113 
           2 |     13119   .8128016   5.693541   37.47001 
           3 |     61640   3.818972   26.75127   31.52619 
           4 |      3808   .2359287   1.652641   14.52548 
           5 |      6479   .4014133   2.811834   7.630792 
           6 |       530   .0328367   .2300158   .6916532 
-------------+--------------------------------------------
30           |                                            
           1 |    189920    11.7667   77.21047   15.88272 
           2 |      7306    .452651   2.970196   20.86713 
           3 |     30818   1.909362   12.52881   15.76207 
           4 |      4180   .2589763   1.699346   15.94446 
           5 |     12445   .7710432   5.059416   14.65739 
           6 |      1308   .0810385    .531757   1.706948 
-------------+--------------------------------------------
35           |                                            
           1 |    185722    11.5066   79.79943   15.53165 
           2 |      4784   .2963978   2.055548   13.66389 
           3 |     21352   1.322886   9.174343   10.92062 
           4 |      3889   .2409471   1.670992   14.83445 
           5 |     14616   .9055498   6.280077   17.21433 
           6 |      2373   .1470217    1.01961   3.096779 
-------------+--------------------------------------------
40           |                                            
           1 |    161011   9.975608   80.34922    13.4651 
           2 |      3025   .1874171   1.509564   8.639895 
           3 |     16077   .9960676   8.022895   8.222688 
           4 |      3568   .2210592   1.780537   13.61001 
           5 |     12654    .783992   6.314718   14.90354 
           6 |      4054   .2511699   2.023065   5.290494 
-------------+--------------------------------------------
45           |                                            
           1 |    153065   9.483305   79.25983   12.80059 
           2 |      2353   .1457826   1.218426   6.720553 
           3 |     15611   .9671961   8.083659   7.984349 
           4 |      3279   .2031539   1.697926   12.50763 
           5 |     11457   .7098306   5.932642   13.49375 
           6 |      7353   .4555629   3.807517   9.595709 
-------------+--------------------------------------------
50           |                                            
           1 |    141657    8.77651   76.05949   11.84656 
           2 |      1797    .111335   .9648581   5.132526 
           3 |     16554   1.025621   8.888292   8.466653 
           4 |      3008   .1863638   1.615077   11.47391 
           5 |     10428   .6460778   5.599076   12.28182 
           6 |     12801   .7930996   6.873205   16.70538 
-------------+--------------------------------------------
55           |                                            
           1 |    126200   7.818855   70.70543   10.55391 
           2 |      1558   .0965275   .8728927   4.449903 
           3 |     17737   1.098915   9.937418   9.071706 
           4 |      2662    .164927   1.491425    10.1541 
           5 |      9479   .5872815   5.310751   11.16411 
           6 |     20851   1.291846   11.68208   27.21068 
-------------+--------------------------------------------
60           |                                            
           1 |     93347   5.783413   63.64163   7.806467 
           2 |      1070    .066293    .729499   3.056095 
           3 |     15731   .9746309     10.725   8.045724 
           4 |      1822   .1128839   1.242194   6.949954 
           5 |      7348   .4552532   5.009681   8.654276 
           6 |     27358   1.694994   18.65199   35.70235 

=> 1990

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     97707   5.280983   32.90164    7.90836 
           2 |     39515   2.135753   13.30619   33.31956 
           3 |    143548   7.758651   48.33803   43.66107 
           4 |     13268   .7171245   4.467836   16.49182 
           5 |      2734   .1477704    .920641   3.689907 
           6 |       195   .0105396   .0656639   1.528333 
-------------+--------------------------------------------
30           |                                            
           1 |    168280   9.095395   59.64732   13.62051 
           2 |     23526   1.271561   8.338857   19.83743 
           3 |     67789    3.66394     24.028   20.61847 
           4 |     15623   .8444103   5.537616   19.41903 
           5 |      6616   .3575893    2.34506   8.929198 
           6 |       291   .0157283   .1031458   2.280743 
-------------+--------------------------------------------
35           |                                            
           1 |    180488   9.755228   70.36405   14.60862 
           2 |     15282   .8259795   5.957755   12.88598 
           3 |     36871   1.992847   14.37432   11.21456 
           4 |     13553   .7325285   5.283697   16.84607 
           5 |      9879   .5339518   3.851372   13.33306 
           6 |       433   .0234033    .168807   3.393683 
-------------+--------------------------------------------
40           |                                            
           1 |    192320   10.39474   74.61146   15.56629 
           2 |     13255   .7164218   5.142341   11.17679 
           3 |     26133   1.412467   10.13842   7.948525 
           4 |     11291   .6102692   4.380397   14.03446 
           5 |     13941   .7534995   5.408478   18.81529 
           6 |       822   .0444284   .3188988   6.442511 
-------------+--------------------------------------------
45           |                                            
           1 |    182647    9.87192   76.60532   14.78337 
           2 |     11028   .5960543   4.625334   9.298953 
           3 |     19279   1.042014   8.085947   5.863835 
           4 |      9440   .5102242     3.9593    11.7337 
           5 |     14737   .7965227   6.180953    19.8896 
           6 |      1295   .0699937   .5431455    10.1497 
-------------+--------------------------------------------
50           |                                            
           1 |    151158   8.169965   78.42057   12.23466 
           2 |      7156   .3867759   3.712523   6.034032 
           3 |     13712   .7411223   7.113767   4.170595 
           4 |      7459   .4031528   3.869719   9.271367 
           5 |     11297   .6105935   5.860869   15.24685 
           6 |      1971   .1065309   1.022552   15.44792 
-------------+--------------------------------------------
55           |                                            
           1 |    140828   7.611637   80.32626   11.39855 
           2 |      5166    .279218   2.946612   4.356038 
           3 |     11635   .6288622   6.636436   3.538862 
           4 |      5837    .315485   3.329341   7.255258 
           5 |      8754   .4731465   4.993155   11.81472 
           6 |      3100   .1675524   1.768195   24.29657 
-------------+--------------------------------------------
60           |                                            
           1 |    122062    6.59735   81.20792   9.879643 
           2 |      3666   .1981443   2.438992   3.091219 
           3 |      9811   .5302765   6.527264    2.98408 
           4 |      3981   .2151698   2.648562   4.948292 
           5 |      6136   .3316457   4.082284   8.281372 
           6 |      4652   .2514368   3.094978   36.46054 

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |    149389   8.158474   52.75389   11.75716 
           2 |     36869     2.0135   13.01959   36.21603 
           3 |     85724   4.681583    30.2718   36.71358 
           4 |      5393    .294524   1.904436   12.61048 
           5 |      5283   .2885167   1.865591   4.649996 
           6 |       523   .0285622   .1846875   .7602518 
-------------+--------------------------------------------
30           |                                            
           1 |    189246   10.33516   70.95439   14.89398 
           2 |     18726    1.02267   7.020977   18.39435 
           3 |     41827   2.284268   15.68228   17.91352 
           4 |      5694   .3109623   2.134863   13.31432 
           5 |     10240   .5592297   3.839304   9.013053 
           6 |       982   .0536293   .3681833   1.427471 
-------------+--------------------------------------------
35           |                                            
           1 |    185116   10.10961   74.84727   14.56894 
           2 |     13150   .7181515   5.316891    12.9171 
           3 |     26121   1.426527   10.56141   11.18701 
           4 |      5607   .3062111   2.267058   13.11088 
           5 |     15470    .844852   6.254928    13.6164 
           6 |      1861   .1016335   .7524512   2.705217 
-------------+--------------------------------------------
40           |                                            
           1 |    187555   10.24281   74.86747   14.76089 
           2 |     11457   .6256929   4.573361   11.25409 
           3 |     20288   1.107974   8.098485   8.688874 
           4 |      6387   .3488086   2.549538   14.93476 
           5 |     21262   1.161166   8.487282   18.71441 
           6 |      3567    .194802   1.423861   5.185121 
-------------+--------------------------------------------
45           |                                            
           1 |    172156   9.401832   74.06694   13.54897 
           2 |      8550    .466935   3.678479   8.398574 
           3 |     17221   .9404781   7.409017    7.37535 
           4 |      6597   .3602772   2.838237   15.42581 
           5 |     21679    1.18394   9.326989   19.08144 
           6 |      6230   .3402345   2.680342   9.056154 
-------------+--------------------------------------------
50           |                                            
           1 |    143700   7.847785   73.71499   11.30943 
           2 |      5552   .3032074   2.848056    5.45367 
           3 |     13768   .7519019   7.062686   5.896511 
           4 |      5369   .2932133   2.754181   12.55437 
           5 |     16307   .8905625   8.365138   14.35311 
           6 |     10244   .5594482    5.25495   14.89105 
-------------+--------------------------------------------
55           |                                            
           1 |    130875   7.147382   71.23573   10.30008 
           2 |      4189   .2287708   2.280088    4.11481 
           3 |     13915   .7599299   7.573984   5.959468 
           4 |      4423   .2415501   2.407455   10.34233 
           5 |     12891   .7040069   7.016618   11.34641 
           6 |     17428   .9517828   9.486123   25.33397 
-------------+--------------------------------------------
60           |                                            
           1 |    112584   6.148469    65.3574   8.860549 
           2 |      3310   .1807666   1.921525   3.251378 
           3 |     14630   .7989777   8.493025   6.265686 
           4 |      3296   .1800021   1.913398   7.707057 
           5 |     10481   .5723913   6.084443   9.225177 
           6 |     27958    1.52685   16.23021   40.64076 

=> 2000

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     54886   2.787925   23.99598   4.461457 
           2 |     36353   1.846545   15.89341   21.67133 
           3 |    129310    6.56828    56.5339   34.45024 
           4 |      6635   .3370237     2.9008   7.500141 
           5 |      1484   .0753795   .6487999   1.546284 
           6 |        62   .0031493   .0271062   .5666758 
-------------+--------------------------------------------
30           |                                            
           1 |    139128   7.066984   49.35875   11.30914 
           2 |     36679   1.863104   13.01269   21.86567 
           3 |     88279   4.484117   31.31894   23.51893 
           4 |     11180   .5678863   3.966353   12.63777 
           5 |      6454   .3278299     2.2897   6.724878 
           6 |       151     .00767   .0535706    1.38013 
-------------+--------------------------------------------
35           |                                            
           1 |    195798   9.945528   63.70895   15.91561 
           2 |     26614   1.351854    8.65969   15.86556 
           3 |     57254   2.908208   18.62936   15.25337 
           4 |     14648   .7440428   4.766181   16.55796 
           5 |     12655   .6428087   4.117697   13.18614 
           6 |       363   .0184385   .1181133   3.317795 
-------------+--------------------------------------------
40           |                                            
           1 |    193390   9.823214   69.47803   15.71988 
           2 |     19229   .9767339   6.908284    11.4631 
           3 |     34926    1.77406   12.54765   9.304841 
           4 |     14632   .7432301   5.256748   16.53987 
           5 |     15551   .7899105   5.586911   16.20368 
           6 |       619    .031442   .2223843   5.657618 
-------------+--------------------------------------------
45           |                                            
           1 |    176867   8.983931   71.61941   14.37679 
           2 |     15877   .8064696   6.429133   9.464849 
           3 |     23497   1.193526   9.514727   6.259974 
           4 |     13191   .6700347   5.341481   14.91098 
           5 |     16480   .8370989   6.673308   17.17168 
           6 |      1042   .0529282   .4219409    9.52381 
-------------+--------------------------------------------
50           |                                            
           1 |    177792   9.030916   73.17507   14.45198 
           2 |     14639   .7435856   6.025073   8.726833 
           3 |     18716   .9506762   7.703072    4.98624 
           4 |     12095   .6143636   4.978022   13.67207 
           5 |     17903     .90938    7.36846    18.6544 
           6 |      1823    .092599   .7503046    16.6621 
-------------+--------------------------------------------
55           |                                            
           1 |    163586   8.309324   75.50111   13.29723 
           2 |     11392   .5786548   5.257838    6.79118 
           3 |     13844   .7032037   6.389529   3.688261 
           4 |      9617    .488494   4.438609   10.87097 
           5 |     15368   .7806151   7.092912     16.013 
           6 |      2860   .1452732   1.319998   26.14021 
-------------+--------------------------------------------
60           |                                            
           1 |    128779   6.541308    77.6549   10.46791 
           2 |      6964   .3537352   4.199355    4.15149 
           3 |      9527   .4839224   5.744867   2.538144 
           4 |      6467   .3284902   3.899659   7.310236 
           5 |     10077   .5118596   6.076522   10.49994 
           6 |      4021    .204246   2.424699   36.75167 

ALTC         |                                            
      PTYPE2 |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     95288   4.805157   41.10005   7.428329 
           2 |     40562    2.04545   17.49538   26.34769 
           3 |     84516    4.26195   36.45382   31.78273 
           4 |      7654   .3859738   3.301358   9.742624 
           5 |      3551   .1790689   1.531633   2.391326 
           6 |       273   .0137668   .1177516   .5117439 
-------------+--------------------------------------------
30           |                                            
           1 |    178888   9.020915   62.17866    13.9455 
           2 |     31545   1.590743   10.96455   20.49055 
           3 |     54438   2.745185   18.92179   20.47172 
           4 |     11171   .5633281   3.882864   14.21934 
           5 |     10929   .5511246   3.798749   7.359844 
           6 |       729   .0367618   .2533889   1.366525 
-------------+--------------------------------------------
35           |                                            
           1 |    211582    10.6696   69.41598   16.49421 
           2 |     22805   1.150004   7.481882   14.81335 
           3 |     37933   1.912875   12.44509   14.26492 
           4 |     12486   .6296406   4.096416   15.89318 
           5 |     18305   .9230796   6.005518   12.32701 
           6 |      1692   .0853237   .5551126   3.171687 
-------------+--------------------------------------------
40           |                                            
           1 |    193130   9.739107   70.54616   15.05576 
           2 |     17478   .8813758   6.384331   11.35311 
           3 |     26054   1.313844   9.516956   9.797757 
           4 |     11710   .5905087   4.277407   14.90543 
           5 |     22497   1.134473   8.217662   15.15001 
           6 |      2895   .1459883    1.05748   5.426734 
-------------+--------------------------------------------
45           |                                            
           1 |    171184    8.63242   69.51804   13.34492 
           2 |     14297   .7209652    5.80603   9.286842 
           3 |     19845   1.000738    8.05908   7.462827 
           4 |     10992   .5543016   4.463865    13.9915 
           5 |     25085    1.26498   10.18705   16.89282 
           6 |      4841   .2441206   1.965936    9.07455 
-------------+--------------------------------------------
50           |                                            
           1 |    167739   8.458697   69.17243   13.07636 
           2 |     12283   .6194038    5.06528   7.978616 
           3 |     16750   .8446644   6.907387   6.298934 
           4 |     10247   .5167329   4.225672    13.0432 
           5 |     27042   1.363667   11.15162   18.21071 
           6 |      8433    .425257   3.477612   15.80782 
-------------+--------------------------------------------
55           |                                            
           1 |    148174   7.472078   67.96193   11.55114 
           2 |      9132    .460506    4.18851   5.931835 
           3 |     14610   .7367491   6.701066   5.494175 
           4 |      8350   .4210715   3.829836   10.62855 
           5 |     24089   1.214754   11.04873    16.2221 
           6 |     13670    .689347   6.269923   25.62468 
-------------+--------------------------------------------
60           |                                            
           1 |    116780    5.88895   65.54709   9.103772 
           2 |      5847   .2948509   3.281845   3.798011 
           3 |     11772   .5936352    6.60747   4.426929 
           4 |      5952   .3001458    3.34078   7.576182 
           5 |     16997   .8571201   9.540194   11.44618 
           6 |     20814   1.049603   11.68263   39.01625 

. drop PTYPE2

. local plots

. foreach y in 2000 1990 1980 1970 {
  2.     foreach s in m f {
  3.         local plots `plots' ///
>             (`s'`y', keep(*:1)) ///
>             (`s'`y', keep(*:2)) ///
>             (`s'`y', keep(*:3)) ///
>             (`s'`y', keep(*:4)) ///
>             (`s'`y', keep(*:5)) ///
>             (`s'`y', keep(*:6)), bylab(`y') ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(cumpct) recast(line) noci xti("") yti("") ///
>          xlabel($xlab, angle(45) grid) ylabel(0(10)100, angle(hor) gmin) ///
>          byopts(scale(*.8) cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>          legend(order(- "{bf:No partner}" 6 "widowed" 5 "divorced" 4 "separated" 3 "single" ///
>              - - - "{bf:Partner}" 2 "consensual" 1 "married") ///
>              size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>          ysize(7)
(m1970: no coefficients found, all dropped, or none kept)
(f1970: no coefficients found, all dropped, or none kept)

. addplot 3: , norescaling text(255 42.5 "Men"  , size(medlarge))

. addplot 4: , norescaling text(255 42.5 "Women", size(medlarge))
Figure 3: Distribution of partnership status by age
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 2000 2000 1990 1990 1980 1980 1970 1970 No partner widowed divorced separated single Partner consensual married

Educational homogamy

Using 5 levels: same educational level, partner has lower level, partner has higher level, undetermined (educational level unknown at least for one of the partners), no partner. Basis for comparison is the “detailed” highest educational degree as constructed above; “Secondary II general” is treated higher than “Secondary II vocational”.

. gen byte HOM = 1 if (EDUC >PEDUC) & inlist(PTYPE,1,2) & EDUC!=0 & PEDUC!=0
(4,424 missing values generated)

. replace  HOM = 2 if (EDUC==PEDUC) & inlist(PTYPE,1,2) & EDUC!=0 & PEDUC!=0
(560 real changes made)

. replace  HOM = 3 if (EDUC <PEDUC) & inlist(PTYPE,1,2) & EDUC!=0 & PEDUC!=0
(1,120 real changes made)

. replace  HOM = 4 if                 inlist(PTYPE,1,2) & (EDUC==0 | PEDUC==0)
(1,209 real changes made)

. replace  HOM = 5 if inlist(PTYPE,3,4,5,6)
(1,535 real changes made)

. lab var HOM "Educational homogamy"

. lab def HOM ///
>     1 "higher than partner" ///
>     2 "same level as partner" ///
>     3 "lower than partner" ///
>     4 "undetermined" ///
>     5 "no partner"

. lab val HOM HOM

. tab HOM ZJHR [fw=POP]

                      |                  Zaehljahr
 Educational homogamy |      1970       1980       1990       2000 |     Total
----------------------+--------------------------------------------+----------
  higher than partner |   588,919    584,968    659,795    668,844 | 2,502,526 
same level as partner | 1,035,105  1,163,763  1,353,435  1,300,349 | 4,852,652 
   lower than partner |   589,065    592,714    671,219    682,413 | 2,535,411 
         undetermined |   124,374    106,198     42,059    183,081 |   455,712 
           no partner |   688,340    753,929    954,749  1,117,053 | 3,514,071 
----------------------+--------------------------------------------+----------
                Total | 3,025,803  3,201,572  3,681,257  3,951,740 |13,860,372 


. tab HOM ZJHR [fw=POP], col nofreq

                      |                  Zaehljahr
 Educational homogamy |      1970       1980       1990       2000 |     Total
----------------------+--------------------------------------------+----------
  higher than partner |     19.46      18.27      17.92      16.93 |     18.06 
same level as partner |     34.21      36.35      36.77      32.91 |     35.01 
   lower than partner |     19.47      18.51      18.23      17.27 |     18.29 
         undetermined |      4.11       3.32       1.14       4.63 |      3.29 
           no partner |     22.75      23.55      25.94      28.27 |     25.35 
----------------------+--------------------------------------------+----------
                Total |    100.00     100.00     100.00     100.00 |    100.00 

4.1  Overall results

The development of homogamy over time using the 5-category homogamy variable is displayed in figure 4.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate HOM ALTC if GESL==1 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  4.     eststo m`y'
  5.     estpost tabulate HOM ALTC if GESL==2 & ZJHR==`y' ///
>         [fw=POP], nolabel nototal
  6.     eststo f`y'
  7. }

=> 1970

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     57997   3.859196   22.77187   12.04082 
           2 |     66848   4.448153   26.24712   12.82662 
           3 |     17008   1.131734   6.678001   15.56739 
           4 |     10012   .6662115     3.9311   15.93861 
           5 |    102822    6.84191   40.37191   31.35582 
-------------+--------------------------------------------
30           |                                            
           1 |     68055   4.528468   30.37288   14.12897 
           2 |     77672   5.168396   34.66494    14.9035 
           3 |     17557   1.168266   7.835673   16.06989 
           4 |     10200   .6787213    4.55225    16.2379 
           5 |     50581   3.365726   22.57425    15.4248 
-------------+--------------------------------------------
35           |                                            
           1 |     68822   4.579506   33.08305   14.28821 
           2 |     76524   5.092007   36.78543   14.68323 
           3 |     16126   1.073045   7.751841    14.7601 
           4 |      9044   .6017995   4.347492   14.39761 
           5 |     37512   2.496097   18.03219   11.43938 
-------------+--------------------------------------------
40           |                                            
           1 |     67100   4.464921   35.34164    13.9307 
           2 |     69151   4.601398   36.42191   13.26852 
           3 |     13802   .9184031   7.269529   12.63295 
           4 |      7780   .5176913   4.097735   12.38538 
           5 |     32028   2.131185   16.86918   9.767016 
-------------+--------------------------------------------
45           |                                            
           1 |     63062   4.196228   35.05353   13.09237 
           2 |     67139   4.467517   37.31976   12.88246 
           3 |     13502   .8984407   7.505197   12.35836 
           4 |      6921   .4605324   3.847095   11.01789 
           5 |     29278   1.948196   16.27442   8.928397 
-------------+--------------------------------------------
50           |                                            
           1 |     54483    3.62537   35.83842   11.31127 
           2 |     56185   3.738623   36.95798   10.78063 
           3 |     11099   .7385419   7.300821    10.1589 
           4 |      5771   .3840099   3.796111    9.18715 
           5 |     24486    1.62933   16.10667   7.467065 
-------------+--------------------------------------------
55           |                                            
           1 |     53837   3.582384   35.22119   11.17715 
           2 |     56053    3.72984   36.67094   10.75531 
           3 |     10741   .7147201   7.026967   9.831219 
           4 |      6282   .4180125   4.109804   10.00064 
           5 |     25941   1.726148    16.9711   7.910771 
-------------+--------------------------------------------
60           |                                            
           1 |     48314   3.214877   34.16711   10.03052 
           2 |     51594   3.433132   36.48669   9.899725 
           3 |      9419   .6267525   6.661009   8.621195 
           4 |      6806   .4528801   4.813125   10.83482 
           5 |     25272   1.681632   17.87207   7.706758 

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     20343   1.335739   8.382333   18.96801 
           2 |     80142   5.262194   33.02251   15.59368 
           3 |     70403   4.622722   29.00956   14.67307 
           4 |     11204   .7356644   4.616608   18.20072 
           5 |     60597   3.978852   24.96899   16.81288 
-------------+--------------------------------------------
30           |                                            
           1 |     17127   1.124574   8.094466   15.96938 
           2 |     77622   5.096728   36.68527   15.10335 
           3 |     71108   4.669013   33.60666      14.82 
           4 |      9529   .6256825   4.503542   15.47971 
           5 |     36203   2.377121   17.11006   10.04467 
-------------+--------------------------------------------
35           |                                            
           1 |     14721   .9665937   7.333732     13.726 
           2 |     73362   4.817013    36.5476   14.27446 
           3 |     71142   4.671246   35.44164   14.82709 
           4 |      8472   .5562789   4.220595   13.76263 
           5 |     33033   2.168976   16.45643   9.165141 
-------------+--------------------------------------------
40           |                                            
           1 |     13962   .9167571    7.20638    13.0183 
           2 |     70066   4.600595   36.16403   13.63314 
           3 |     66762   4.383651    34.4587   13.91423 
           4 |      7542   .4952143   3.892746   12.25186 
           5 |     35413   2.325249   18.27815   9.825481 
-------------+--------------------------------------------
45           |                                            
           1 |     13099   .8600918   6.976348   12.21363 
           2 |     64788   4.254037    34.5052   12.60617 
           3 |     62747   4.120023   33.41819   13.07744 
           4 |      6678   .4384833   3.556611   10.84831 
           5 |     40451   2.656048   21.54365    11.2233 
-------------+--------------------------------------------
50           |                                            
           1 |     10817   .7102537   6.878418   10.08587 
           2 |     52250   3.430781   33.22523   10.16658 
           3 |     48829   3.206155   31.04985   10.17672 
           4 |      5577   .3661907   3.546356   9.059749 
           5 |     39787   2.612449   25.30014   11.03907 
-------------+--------------------------------------------
55           |                                            
           1 |      9653   .6338244   5.859536    9.00055 
           2 |     50539   3.318435   30.67804   9.833657 
           3 |     47732   3.134125   28.97414   9.948084 
           4 |      6212   .4078853    3.77079    10.0913 
           5 |     50604   3.322703   30.71749   14.04029 
-------------+--------------------------------------------
60           |                                            
           1 |      7527   .4942294   4.576769   7.018247 
           2 |     45170   2.965902   27.46548   8.788981 
           3 |     41088   2.697874   24.98343   8.563372 
           4 |      6344   .4165526   3.857449   10.30573 
           5 |     64332   4.224095   39.11687   17.84918 

=> 1980

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     36087   2.273161   15.60101   7.751693 
           2 |     55536   3.498276   24.00913   9.594427 
           3 |     15338    .966158   6.630871   12.76805 
           4 |      8533   .5375033   3.688957   16.29524 
           5 |    115818   7.295507   50.07004   31.24651 
-------------+--------------------------------------------
30           |                                            
           1 |     68677   4.326042   27.16299   14.75221 
           2 |     86585   5.454087   34.24593   14.95847 
           3 |     21361   1.345554    8.44866   17.78187 
           4 |      8677   .5465741    3.43191   16.57023 
           5 |     67533    4.25398   26.71052   18.21971 
-------------+--------------------------------------------
35           |                                            
           1 |     78656   4.954631   32.45192   16.89576 
           2 |     88635   5.583219   36.56906   15.31263 
           3 |     20279   1.277397   8.366718   16.88116 
           4 |      7189   .4528433   2.966041   13.72864 
           5 |     47618   2.999512   19.64625   12.84685 
-------------+--------------------------------------------
40           |                                            
           1 |     66451   4.185824   32.81563   14.27405 
           2 |     78530   4.946694   38.78063   13.56688 
           3 |     15858   .9989134   7.831188   13.20092 
           4 |      6488   .4086865   3.203982   12.38996 
           5 |     35171   2.215461   17.36857   9.488775 
-------------+--------------------------------------------
45           |                                            
           1 |     63709   4.013102   33.26615   13.68506 
           2 |     76537   4.821152   39.96439   13.22257 
           3 |     14077   .8867262   7.350415   11.71833 
           4 |      6040   .3804664   3.153833   11.53442 
           5 |     31150   1.962174   16.26521   8.403951 
-------------+--------------------------------------------
50           |                                            
           1 |     58452   3.681958   33.51875   12.55582 
           2 |     70559   4.444591   40.46139   12.18981 
           3 |     12669   .7980347   7.264918   10.54625 
           4 |      5356   .3373805   3.071347   10.22821 
           5 |     27350   1.722808    15.6836    7.37875 
-------------+--------------------------------------------
55           |                                            
           1 |     51877   3.267791   32.12556   11.14348 
           2 |     67854     4.2742   42.01954   11.72249 
           3 |     11759   .7407127   7.281926   9.788725 
           4 |      5085   .3203099   3.148958   9.710685 
           5 |     24907    1.56892   15.42401   6.719653 
-------------+--------------------------------------------
60           |                                            
           1 |     41628   2.622195   31.74705   8.941932 
           2 |     54600   3.439316   41.63997   9.432724 
           3 |      8787   .5535031    6.70129   7.314698 
           4 |      4997   .3147667   3.810897   9.542633 
           5 |     21112   1.329869   16.10079   5.695801 

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     20219    1.25269   8.774884   16.92944 
           2 |     75424   4.672974   32.73341    12.8946 
           3 |     52632   3.260872   22.84187   11.13702 
           4 |      9687   .6001684    4.20408   17.99454 
           5 |     72457   4.489151   31.44576   18.90495 
-------------+--------------------------------------------
30           |                                            
           1 |     22072   1.367494   8.973197   18.48096 
           2 |     91268   5.654606   37.10428   15.60331 
           3 |     75601    4.68394   30.73499    15.9973 
           4 |      8285    .513306   3.368201   15.39019 
           5 |     48751    3.02042   19.81933   12.71975 
-------------+--------------------------------------------
35           |                                            
           1 |     19392   1.201452   8.332188   16.23699 
           2 |     86758   5.375184   37.27743   14.83228 
           3 |     77328   4.790939   33.22563   16.36274 
           4 |      7028   .4354272   3.019731   13.05519 
           5 |     42230   2.616405   18.14502   11.01834 
-------------+--------------------------------------------
40           |                                            
           1 |     14801   .9170117   7.386134   12.39293 
           2 |     77305   4.789514   38.57747   13.21618 
           3 |     65933   4.084949    32.9025   13.95153 
           4 |      5997   .3715505   2.992679   11.14001 
           5 |     36353   2.252289   18.14122   9.484958 
-------------+--------------------------------------------
45           |                                            
           1 |     13272   .8222809   6.872482   11.11269 
           2 |     74455   4.612939   38.55415   12.72894 
           3 |     61942   3.837683   32.07469   13.10703 
           4 |      5749   .3561854   2.976936   10.67932 
           5 |     37700   2.335744   19.52174   9.836408 
-------------+--------------------------------------------
50           |                                            
           1 |     12055   .7468804   6.472657   10.09369 
           2 |     69754   4.321683   37.45282   11.92525 
           3 |     56317    3.48918   30.23813   11.91677 
           4 |      5328   .3301019   2.860748   9.897275 
           5 |     42791   2.651162   22.97565   11.16471 
-------------+--------------------------------------------
55           |                                            
           1 |     10271   .6363507   5.754481   8.599945 
           2 |     62650   3.881547    35.1006   10.71074 
           3 |     49100   3.042043   27.50901   10.38964 
           4 |      5737   .3554419    3.21424   10.65703 
           5 |     50729   3.142969   28.42168   13.23584 
-------------+--------------------------------------------
60           |                                            
           1 |      7349   .4553151   5.010363   6.153344 
           2 |     47313   2.931327   32.25681   8.088702 
           3 |     33733   2.089964   22.99831    7.13796 
           4 |      6022   .3730994   4.105648   11.18645 
           5 |     52259   3.237762   35.62887   13.63504 

=> 1990

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     39389   2.128943   13.26376   7.495214 
           2 |     78172   4.225132   26.32346    11.5926 
           3 |     18037    .974885   6.073739   13.44199 
           4 |      1624   .0877759   .5468621   8.099347 
           5 |    159745   8.634085   53.79217   32.20126 
-------------+--------------------------------------------
30           |                                            
           1 |     66287   3.582758   23.49561   12.61355 
           2 |     99684   5.387838   35.33327   14.78274 
           3 |     23383   1.263832    8.28817   17.42607 
           4 |      2452   .1325286   .8691183   12.22882 
           5 |     90319   4.881667   32.01382   18.20643 
-------------+--------------------------------------------
35           |                                            
           1 |     73308   3.962237   28.57945   13.94956 
           2 |     97848   5.288604   38.14648   14.51047 
           3 |     21851   1.181029   8.518709   16.28436 
           4 |      2763   .1493379   1.077168   13.77986 
           5 |     60736   3.282731    23.6782   12.24311 
-------------+--------------------------------------------
40           |                                            
           1 |     81835   4.423114   31.74828   15.57214 
           2 |    100202   5.415835   38.87384   14.85956 
           3 |     20708    1.11925   8.033768   15.43254 
           4 |      2830   .1529592   1.097912   14.11401 
           5 |     52187   2.820664    20.2462   10.51981 
-------------+--------------------------------------------
45           |                                            
           1 |     81291   4.393711   34.09486   15.46862 
           2 |     92357    4.99182   38.73613   13.69617 
           3 |     17502   .9459687   7.340642   13.04328 
           4 |      2525   .1364742   1.059029   12.59289 
           5 |     44751   2.418755   18.76935   9.020869 
-------------+--------------------------------------------
50           |                                            
           1 |     66446   3.591351    34.4721   12.64381 
           2 |     76512    4.13541   39.69432   11.34642 
           3 |     12970   .7010178   6.728819   9.665832 
           4 |      2386   .1289613   1.237854   11.89966 
           5 |     34439     1.8614   17.86691   6.942185 
-------------+--------------------------------------------
55           |                                            
           1 |     62532   3.379803   35.66735   11.89903 
           2 |     70047   3.785983    39.9538   10.38769 
           3 |     10845   .5861633   6.185832   8.082186 
           4 |      2570   .1389064   1.465891   12.81732 
           5 |     29326   1.585046   16.72713   5.911511 
-------------+--------------------------------------------
60           |                                            
           1 |     54434   2.942113   36.21497   10.35808 
           2 |     59505   3.216196   39.58871   8.824354 
           3 |      8888   .4803891   5.913192   6.623741 
           4 |      2901   .1567967   1.930037   14.46811 
           5 |     24580   1.328529   16.35309   4.954816 

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     23946   1.307746   8.456076   17.83382 
           2 |    101597   5.548444   35.87705   14.96036 
           3 |     58339   3.186026   20.60131   10.86317 
           4 |      2376   .1297588   .8390393   10.79607 
           5 |     96923   5.293186   34.22652    21.1315 
-------------+--------------------------------------------
30           |                                            
           1 |     25560    1.39589   9.583263   19.03584 
           2 |    105696     5.7723   39.62882   15.56395 
           3 |     74014   4.042073   27.75022   13.78197 
           4 |      2702   .1475624   1.013066   12.27735 
           5 |     58743   3.208089   22.02463   12.80736 
-------------+--------------------------------------------
35           |                                            
           1 |     22061   1.204802   8.919842   16.42996 
           2 |     97763    5.33906   39.52815    14.3958 
           3 |     75564   4.126722   30.55251   14.07059 
           4 |      2878   .1571741   1.163651   13.07706 
           5 |     49059   2.679224   19.83584   10.69602 
-------------+--------------------------------------------
40           |                                            
           1 |     18985   1.036814   7.578358    14.1391 
           2 |     95814   5.232621   38.24666    14.1088 
           3 |     81568   4.454614      32.56   15.18858 
           4 |      2645   .1444495   1.055821   12.01836 
           5 |     51504   2.812751   20.55917   11.22909 
-------------+--------------------------------------------
45           |                                            
           1 |     15499   .8464357   6.668158    11.5429 
           2 |     86033   4.698458   37.01411   12.66853 
           3 |     76803   4.194387   33.04307    14.3013 
           4 |      2371   .1294857   1.020079   10.77336 
           5 |     51727   2.824929   22.25459   11.27771 
-------------+--------------------------------------------
50           |                                            
           1 |     11293   .6167365   5.793065   8.410477 
           2 |     71764   3.919196   36.81338   10.56739 
           3 |     63752   3.481642    32.7034   11.87111 
           4 |      2443   .1334178   1.253206   11.10051 
           5 |     45688   2.495126   23.43695   9.961061 
-------------+--------------------------------------------
55           |                                            
           1 |      9494    .518489   5.167618   7.070669 
           2 |     64450   3.519761   35.08037    9.49039 
           3 |     58289   3.183295   31.72691   10.85385 
           4 |      2831   .1546074   1.540923    12.8635 
           5 |     48657    2.65727   26.48418   10.60837 
-------------+--------------------------------------------
60           |                                            
           1 |      7435   .4060423   4.316175   5.537226 
           2 |     55991   3.057796   32.50396   8.244786 
           3 |     48706   2.659946   28.27487   9.069428 
           4 |      3762   .2054514   2.183921   17.09378 
           5 |     56365   3.078221   32.72108    12.2889 

=> 2000

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     24616   1.250366   10.76203   4.886289 
           2 |     45741   2.323407   19.99781   7.126498 
           3 |     14729   .7481572    6.43947   9.049966 
           4 |      6153   .3125406   2.690071   6.867187 
           5 |    137491   6.983833   60.11061   24.09033 
-------------+--------------------------------------------
30           |                                            
           1 |     56684   2.879255   20.10991    11.2518 
           2 |     83717   4.252391   29.70047    13.0432 
           3 |     24770   1.258188   8.787708   15.21948 
           4 |     10636   .5402539   3.773357   11.87054 
           5 |    106064   5.387504   37.62856   18.58389 
-------------+--------------------------------------------
35           |                                            
           1 |     76677   3.894796   24.94924   15.22042 
           2 |    102440   5.203423   33.33203   15.96026 
           3 |     28756   1.460656   9.356657    17.6686 
           4 |     14539   .7385061   4.730715   16.22656 
           5 |     84920   4.313498   27.63136   14.87916 
-------------+--------------------------------------------
40           |                                            
           1 |     75725   3.846439   27.20525   15.03145 
           2 |     96943   4.924204   34.82811   15.10383 
           3 |     25881   1.314621   9.298106   15.90211 
           4 |     14070   .7146834   5.054842   15.70313 
           5 |     65728   3.338643   23.61369   11.51646 
-------------+--------------------------------------------
45           |                                            
           1 |     70906   3.601659   28.71223   14.07488 
           2 |     87422   4.440586   35.40012   13.62044 
           3 |     22058   1.120433   8.932028   13.55314 
           4 |     12358   .6277226   5.004171   13.79241 
           5 |     54210   2.753588   21.95146   9.498345 
-------------+--------------------------------------------
50           |                                            
           1 |     74090    3.76339   30.49373    14.7069 
           2 |     87009   4.419608   35.81089    13.5561 
           3 |     19767   1.004062   8.135639   12.14547 
           4 |     11565   .5874423   4.759886   12.90737 
           5 |     50537   2.567019   20.79986   8.854784 
-------------+--------------------------------------------
55           |                                            
           1 |     71197    3.61644    32.8601   14.13264 
           2 |     77680   3.945743   35.85225   12.10263 
           3 |     15996   .8125142   7.382758   9.828451 
           4 |     10105   .5132818   4.663839    11.2779 
           5 |     41689   2.117586   19.24105   7.304492 
-------------+--------------------------------------------
60           |                                            
           1 |     53882   2.736927   32.49133   10.69561 
           2 |     60892   3.092999   36.71842    9.48704 
           3 |     10795   .5483303   6.509482   6.632791 
           4 |     10174   .5167867   6.135014   11.35491 
           5 |     30092   1.528518   18.14575   5.272536 

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     20592   1.038408   8.881834   12.47493 
           2 |     66348   3.345779   28.61752   10.07555 
           3 |     39513   1.992551   17.04293   7.603611 
           4 |      9397   .4738694   4.053156   10.05231 
           5 |     95994   4.840759   41.40457   17.57096 
-------------+--------------------------------------------
30           |                                            
           1 |     29236   1.474305   10.16197    17.7116 
           2 |     99524   5.018769   34.59298   15.11363 
           3 |     68328   3.445626   23.74974   13.14857 
           4 |     13345    .672958   4.638512   14.27563 
           5 |     77267   3.896399    26.8568   14.14312 
-------------+--------------------------------------------
35           |                                            
           1 |     30577   1.541929   10.03173   18.52399 
           2 |    107331   5.412458   35.21324   16.29919 
           3 |     81381   4.103859   26.69954    15.6604 
           4 |     15098   .7613578   4.953363   16.15088 
           5 |     70416   3.550919   23.10213    12.8891 
-------------+--------------------------------------------
40           |                                            
           1 |     25775   1.299775   9.415044   15.61487 
           2 |     95680   4.824925   34.94981   14.52988 
           3 |     76099     3.8375    27.7973   14.64397 
           4 |     13054   .6582836   4.768341   13.96433 
           5 |     63156   3.184814   23.06951   11.56022 
-------------+--------------------------------------------
45           |                                            
           1 |     20443   1.030894   8.301928   12.38467 
           2 |     84575   4.264925   34.34601   12.84349 
           3 |     69342    3.49676   28.15987    13.3437 
           4 |     11121   .5608068   4.516252   11.89654 
           5 |     60763    3.06414   24.67593    11.1222 
-------------+--------------------------------------------
50           |                                            
           1 |     17049   .8597423   7.030689   10.32853 
           2 |     81319   4.100732   33.53444   12.34903 
           3 |     71231   3.592017   29.37434   13.70721 
           4 |     10423   .5256082   4.298251   11.14986 
           5 |     62472   3.150321   25.76229   11.43501 
-------------+--------------------------------------------
55           |                                            
           1 |     12940   .6525348   5.935099   7.839241 
           2 |     69817   3.520713   32.02247   10.60235 
           3 |     64591   3.257177    29.6255   12.42945 
           4 |      9958   .5021593   4.567366   10.65243 
           5 |     60719   3.061921   27.84956   11.11414 
-------------+--------------------------------------------
60           |                                            
           1 |      8455   .4263664   4.745681   5.122163 
           2 |     53911   2.718609   30.25954   8.186878 
           3 |     49176   2.479834   27.60185   9.463092 
           4 |     11085   .5589914   6.221865   11.85802 
           5 |     55535   2.800504   31.17107   10.16525 

. local plots

. foreach s in m f {
  2.     foreach o in 1 2 3 4 5 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)60, angle(hor)) ///
>       bylabels("Higher than partner" "Same as partner" "Lower than partner" "Undetermined" "No par
> tner" ///
>                "Higher than partner" "Same as partner" "Lower than partner" "Undetermined" "No par
> tner") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=3))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(150 42.5 "Men"  , size(medlarge))

. addplot 7: , norescaling text(150 42.5 "Women", size(medlarge))
Figure 4: Educational homogamy by age (including people without partner and missings)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 0 10 20 30 40 50 60 0 10 20 30 40 50 60 0 10 20 30 40 50 60 0 10 20 30 40 50 60 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Higher than partner Same as partner Lower than partner Undetermined No partner Higher than partner Same as partner Lower than partner Undetermined No partner 2000 1990 1980 1970

For sake of simplicity, we want to get rid of the “undetermined” category. In order to preserve the share of people without partner we need to rescale the results. The assumption is that the “undetermined” category is non-systematic (i.e. homogeneity among couples with missing information on education for at least one of the partners is assumed to be the same as for couples with complete information). The results are displayed in figure 5.

. capt prog drop rescale_colpct

. prog rescale_colpct
  1.     tempname C
  2.     mat `C' = e(colpct)
  3.     local c = colsof(`C')/5
  4.     forv i = 1/`c' {
  5.         local i0 = (`i'-1)*5
  6.         local i4 = `i0'+4
  7.         local i5 = `i0'+5
  8.         forv j = 1/3 {
  9.             mat `C'[1,`i0'+`j'] = `C'[1,`i0'+`j'] * ///
>                 (100-`C'[1,`i5']) / (100-`C'[1,`i5']-`C'[1,`i4'])
 10.         }
 11.         mat `C'[1,`i4'] = 0
 12.     }
 13.     esttab matrix(`C', transpose), unstack collab(none) mlab(none) compress
 14.     qui estadd matrix colpct2 = `C'
 15. end

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     est restore m`y'
  4.     rescale_colpct
  5.     est restore f`y'
  6.     rescale_colpct
  7. }

=> 1970
(results m1970 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           24.37911  32.27021  34.93602  37.17405  36.74177  37.53694  37.05538  36.29413
2           28.09964  36.83039  38.84577  38.31032  39.11715  38.70956  38.58062  38.75812
3           7.149335   8.32515  8.186019  7.646442  7.866661  7.646835  7.392904  7.075681
4                  0         0         0         0         0         0         0         0
5           40.37191  22.57425  18.03219  16.86918  16.27442  16.10667   16.9711  17.87207
------------------------------------------------------------------------------------------
(results f1970 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           8.931907  8.559518  7.723943  7.566818  7.307619  7.221245  6.196805   4.88636
2           35.18758  38.79295  38.49222  37.97283  36.14368  34.88121  32.44384  29.32336
3           30.91152  35.53747  37.32741   36.1822  35.00505  32.59741  30.64186  26.67341
4                  0         0         0         0         0         0         0         0
5           24.96899  17.11006  16.45643  18.27815  21.54365  25.30014  30.71749  39.11687
------------------------------------------------------------------------------------------

=> 1980
(results m1980 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1            16.8456  28.49743  33.69571  34.13937  34.56814  34.78587  33.36793  33.25769
2            25.9245  35.92833  37.97065  40.34498  41.52854  41.99097  43.64453  43.62136
3            7.15986  8.863719  8.687389  8.147087    7.6381  7.539557  7.563534  7.020162
4                  0         0         0         0         0         0         0         0
5           50.07004  26.71052  19.64625  17.36857  16.26521   15.6836  15.42401  16.10079
------------------------------------------------------------------------------------------
(results f1980 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           9.348159  9.366668  8.651346  7.666411  7.136464   6.72233  6.025036  5.351699
2           34.87193  38.73129  38.70532  40.04134  40.03507   38.8975   36.7509  34.45434
3           24.33416  32.08271  34.49831  34.15103  33.30672  31.40452  28.80238  24.56509
4                  0         0         0         0         0         0         0         0
5           31.44576  19.81933  18.14502  18.14122  19.52174  22.97565  28.42168  35.62887
------------------------------------------------------------------------------------------

=> 1990
(results m1990 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           13.42262  23.79987  28.98858  32.19144  34.54523  34.99959  36.30647  37.07032
2           26.63873  35.79082  38.69256  39.41646  39.24781  40.30172  40.66973  40.52374
3           6.146481  8.395496  8.640659  8.145906  7.437609  6.831783  6.296675  6.052853
4                  0         0         0         0         0         0         0         0
5           53.79217  32.01382   23.6782   20.2462  18.76935  17.86691  16.72713  16.35309
------------------------------------------------------------------------------------------
(results f1990 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1            8.56534  9.709409  9.051229  7.680436  6.756813  5.889465  5.278253  4.460982
2           36.34063  40.15046  40.11039  38.76183  37.50622  37.42598  35.83141  33.59446
3           20.86751   28.1155  31.00254  32.99857  33.48238   33.2476  32.40616  29.22348
4                  0         0         0         0         0         0         0         0
5           34.22652  22.02463  19.83584  20.55917  22.25459  23.43695  26.48418  32.72108
------------------------------------------------------------------------------------------

=> 2000
(results m2000 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           11.54029  21.40486  26.69423  29.13313  30.67927  32.44357  34.87409  35.12388
2           21.44396  31.61299  35.66333  37.29617  37.82533  38.10072  38.04962  39.69347
3           6.905141  9.353582  10.01108  9.957008  9.543949  8.655851  7.835244  7.036901
4                  0         0         0         0         0         0         0         0
5           60.11061  37.62856  27.63136  23.61369  21.95146  20.79986  19.24105  18.14575
------------------------------------------------------------------------------------------
(results f2000 are active now)

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           9.541863  10.85005  10.72241  10.03717   8.83144  7.462773  6.336202  5.217305
2           30.74415   36.9353  37.63766  37.25923  36.53667  35.59535   34.1866  33.26672
3           18.30942  25.35785   28.5378  29.63409  29.95596  31.17959  31.62764  30.34491
4                  0         0         0         0         0         0         0         0
5           41.40457   26.8568  23.10213  23.06951  24.67593  25.76229  27.84956  31.17107
------------------------------------------------------------------------------------------

. local plots

. foreach s in m f {
  2.     foreach o in 1 2 3 5 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct2) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)80, gmax angle(hor)) ///
>       bylabels("Higher than partner" "Same as partner" "Lower than partner" "No partner" ///
>                "Higher than partner" "Same as partner" "Lower than partner" "No partner") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(205 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(205 42.5 "Women", size(medlarge))
Figure 5: Educational homogamy by age (excluding missings)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Higher than partner Same as partner Lower than partner No partner Higher than partner Same as partner Lower than partner No partner 2000 1990 1980 1970

4.2  High education

Homogamy among people with high educational level (tertiary education), excluding the “undetermined” category, is displayed in figure 6.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate HOM ALTC if GESL==1 & ZJHR==`y' & inlist(EDUC,4,5) ///
>         [fw=POP], nolabel nototal
  4.     rescale_colpct
  5.     eststo m`y'
  6.     estpost tabulate HOM ALTC if GESL==2 & ZJHR==`y' & inlist(EDUC,4,5) ///
>         [fw=POP], nolabel nototal
  7.     rescale_colpct
  8.     eststo f`y'
  9. }

=> 1970

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     15674   8.829925   52.47933   12.20042 
           2 |      2050   1.154865   6.863763   14.65228 
           3 |       113   .0636584    .378344    15.3951 
           4 |       408   .2298462   1.366056   20.60606 
           5 |     11622   6.547237   38.91251   35.94359 
-------------+--------------------------------------------
30           |                                            
           1 |     20900   11.77398   70.19783   16.26826 
           2 |      2741   1.544138   9.206328   19.59117 
           3 |       138   .0777421   .4635072   18.80109 
           4 |       362   .2039322   1.215867   18.28283 
           5 |      5632   3.172779   18.91647    17.4182 
-------------+--------------------------------------------
35           |                                            
           1 |     19580   11.03036   76.52323   15.24079 
           2 |      2248   1.266408   8.785711   16.06747 
           3 |       134   .0754887   .5237034   18.25613 
           4 |       251   .1414005   .9809669   12.67677 
           5 |      3374   1.900738   13.18638   10.43484 
-------------+--------------------------------------------
40           |                                            
           1 |     19790   11.14867   78.76303   15.40425 
           2 |      2039   1.148668     8.1151   14.57365 
           3 |       104   .0585882   .4139139   14.16894 
           4 |       246   .1385837   .9790655   12.42424 
           5 |      2947   1.660188   11.72889   9.114245 
-------------+--------------------------------------------
45           |                                            
           1 |     18282   10.29914   79.18056   14.23045 
           2 |      1849   1.041631   8.008142   13.21564 
           3 |        89    .050138   .3854649   12.12534 
           4 |       204   .1149231   .8835376   10.30303 
           5 |      2665   1.501324   11.54229   8.242098 
-------------+--------------------------------------------
50           |                                            
           1 |     13802   7.775337   79.54585   10.74328 
           2 |      1254   .7064391   7.227249   8.962905 
           3 |        61   .0343643   .3515648   8.310627 
           4 |       150   .0845023   .8645035   7.575758 
           5 |      2084   1.174018   12.01084   6.445228 
-------------+--------------------------------------------
55           |                                            
           1 |     11398   6.421047    76.5583   8.872041 
           2 |      1051   .5920793   7.059377   7.511972 
           3 |        59   .0332376   .3962923   8.038147 
           4 |       182   .1025294   1.222461   9.191919 
           5 |      2198    1.23824   14.76357   6.797798 
-------------+--------------------------------------------
60           |                                            
           1 |      9045   5.095488   76.46462   7.040499 
           2 |       759   .4275815   6.416434   5.424916 
           3 |        36   .0202805   .3043368   4.904632 
           4 |       177   .0997127   1.496323   8.939394 
           5 |      1812   1.020788   15.31829   5.604008 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           53.67973  71.26649  77.39781  79.64644  79.97942  80.33515  77.67228  77.84005
2           7.020763  9.346481  8.886122  8.206119  8.088937  7.298962  7.162095  6.531852
3           .3869982  .4705634  .5296888  .4185563  .3893539  .3550532  .4020586  .3098112
4                  0         0         0         0         0         0         0         0
5           38.91251  18.91647  13.18638  11.72889  11.54229  12.01084  14.76357  15.31829
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |      3867   5.971832   28.21186   19.79625 
           2 |      2916   4.503197    21.2738   20.80628 
           3 |      1172   1.809927   8.550376   16.27326 
           4 |       472   .7289125   3.443496   64.21769 
           5 |      5280   8.153936   38.52046   22.69211 
-------------+--------------------------------------------
30           |                                            
           1 |      3165   4.887729   30.62706   16.20252 
           2 |      2834   4.376564   27.42404   20.22119 
           3 |      1302   2.010687   12.59919   18.07831 
           4 |       133   .2053927   1.287014   18.09524 
           5 |      2900   4.478488   28.06271   12.46347 
-------------+--------------------------------------------
35           |                                            
           1 |      2646   4.086234   32.06107   13.54561 
           2 |      2134   3.295549   25.85726   15.22654 
           3 |      1103    1.70337   13.36484   15.31519 
           4 |        41   .0633166    .496789   5.578231 
           5 |      2329   3.596689   28.22004   10.00946 
-------------+--------------------------------------------
40           |                                            
           1 |      2575   3.976588   31.50232   13.18214 
           2 |      1882   2.906384   23.02422   13.42847 
           3 |      1023   1.579825   12.51529   14.20439 
           4 |        25   .0386077   .3058478   3.401361 
           5 |      2669   4.121753   32.65231   11.47069 
-------------+--------------------------------------------
45           |                                            
           1 |      2653   4.097044   31.60967   13.58145 
           2 |      1745   2.694814   20.79114   12.45095 
           3 |      1056   1.630787   12.58191   14.66259 
           4 |        20   .0308861   .2382938   2.721088 
           5 |      2919    4.50783   34.77898   12.54513 
-------------+--------------------------------------------
50           |                                            
           1 |      1927   2.975878   31.07062   9.864851 
           2 |      1073    1.65704   17.30087   7.656083 
           3 |       658   1.016153   10.60948   9.136351 
           4 |        21   .0324304   .3386005   2.857143 
           5 |      2523   3.896284   40.68043   10.84322 
-------------+--------------------------------------------
55           |                                            
           1 |      1630   2.517219   30.14053   8.344425 
           2 |       860   1.328103   15.90237   6.136283 
           3 |       538   .8308367   9.948225   7.470147 
           4 |        14   .0216203   .2588757   1.904762 
           5 |      2366   3.653828      43.75   10.16847 
-------------+--------------------------------------------
60           |                                            
           1 |      1071   1.653952   25.00584   5.482748 
           2 |       571   .8817988   13.33178   4.074206 
           3 |       350   .5405072   8.171842   4.859761 
           4 |         9   .0138988   .2101331    1.22449 
           5 |      2282   3.524107   53.28041   9.807461 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           29.88578  31.18498  32.28451  31.64604  31.72559  31.24899  30.27989  25.11882
2           22.53606  27.92361  26.03747  23.12926  20.86738  17.40019  15.97589  13.39201
3           9.057702   12.8287  13.45798  12.57239  12.62805  10.67039  9.994221  8.208763
4                  0         0         0         0         0         0         0         0
5           38.52046  28.06271  28.22004  32.65231  34.77898  40.68043     43.75  53.28041
------------------------------------------------------------------------------------------

=> 1980

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     14702   5.270781   42.11521   7.744865 
           2 |      2247   .8055669   6.436736   8.142779 
           3 |       268   .0960801   .7677103   10.41991 
           4 |       803   .2878817   2.300266   17.61738 
           5 |     16889   6.054837   48.38007   31.05737 
-------------+--------------------------------------------
30           |                                            
           1 |     32125   11.51706   63.10527   16.92313 
           2 |      5366   1.923753   10.54079   19.44555 
           3 |       569   .2039909   1.117724   22.12286 
           4 |      1064   .3814522   2.090086   23.34357 
           5 |     11783   4.224297   23.14613   21.66789 
-------------+--------------------------------------------
35           |                                            
           1 |     37566    13.4677   70.89128   19.78939 
           2 |      5953   2.134197   11.23398   21.57275 
           3 |       581    .208293   1.096413   22.58942 
           4 |       840   .3011465   1.585175   18.42914 
           5 |      8051   2.886346   15.19315   14.80508 
-------------+--------------------------------------------
40           |                                            
           1 |     28583   10.24723   73.28223   15.05724 
           2 |      4401   1.577793   11.28346   15.94854 
           3 |       403   .1444786   1.033227   15.66874 
           4 |       606   .2172557   1.553687    13.2953 
           5 |      5011   1.796482    12.8474   9.214785 
-------------+--------------------------------------------
45           |                                            
           1 |     24153   8.659038   75.68152   12.72356 
           2 |      3160   1.132884   9.901611   11.45135 
           3 |       275   .0985896   .8616908   10.69207 
           4 |       405   .1451956   1.269036   8.885476 
           5 |      3921   1.405709   12.28614   7.210371 
-------------+--------------------------------------------
50           |                                            
           1 |     21443   7.687482    76.2906   11.29596 
           2 |      2674   .9586497   9.513644   9.690161 
           3 |       210   .0752866   .7471448   8.164852 
           4 |       336   .1204586   1.195432   7.371654 
           5 |      3444   1.234701   12.25318   6.333211 
-------------+--------------------------------------------
55           |                                            
           1 |     18124   6.497594   75.91522    9.54754 
           2 |      2291   .8213412   9.596213   8.302229 
           3 |       161   .0577197   .6743738    6.25972 
           4 |       285   .1021747   1.193767   6.252742 
           5 |      3013   1.080184   12.62042    5.54064 
-------------+--------------------------------------------
60           |                                            
           1 |     13133   4.708282   76.23055   6.918332 
           2 |      1503   .5388371    8.72417   5.446639 
           3 |       105   .0376433    .609473   4.082426 
           4 |       219   .0785132   1.271186   4.804739 
           5 |      2268   .8130956   13.16462   4.170651 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           44.07947  64.86943  72.24159  74.61236  76.79255  77.34432  76.96673  77.36308
2           6.736945  10.83547  11.44796  11.48826  10.04697  9.645045  9.729131  8.853781
3           .8035163  1.148971  1.117297  1.051981  .8743407  .7574643  .6837146  .6185276
4                  0         0         0         0         0         0         0         0
5           48.38007  23.14613  15.19315   12.8474  12.28614  12.25318  12.62042  13.16462
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |      3120   3.485605     20.294   16.93443 
           2 |      3682   4.113461   23.94953   13.06137 
           3 |      1020   1.139525   6.634578   10.32807 
           4 |       607   .6781289   3.948224   47.23735 
           5 |      6945   7.758823   45.17367   21.88367 
-------------+--------------------------------------------
30           |                                            
           1 |      3886   4.341366   21.65506   21.09205 
           2 |      6284   7.020366   35.01811   22.29159 
           3 |      1795    2.00534   10.00279   18.17537 
           4 |       370    .413357   2.061856   28.79377 
           5 |      5610   6.267386   31.26219   17.67709 
-------------+--------------------------------------------
35           |                                            
           1 |      3393   3.790596   20.88771    18.4162 
           2 |      6056   6.765649   37.28146    21.4828 
           3 |      1983    2.21537   12.20758   20.07898 
           4 |       135   .1508195   .8310761   10.50584 
           5 |      4677   5.225056   28.79217   14.73721 
-------------+--------------------------------------------
40           |                                            
           1 |      2385   2.664477    20.6297   12.94507 
           2 |      4119   4.601669   35.62841   14.61156 
           3 |      1552   1.733865   13.42444   15.71486 
           4 |        58   .0647965   .5016867   4.513619 
           5 |      3447   3.850923   29.81576   10.86148 
-------------+--------------------------------------------
45           |                                            
           1 |      1787   1.996403   21.03095   9.699305 
           2 |      2649   2.959413   31.17571   9.396949 
           3 |      1148   1.282524   13.51065   11.62414 
           4 |        48   .0536247   .5649053   3.735409 
           5 |      2865   3.200724   33.71778   9.027603 
-------------+--------------------------------------------
50           |                                            
           1 |      1534   1.713756         20   8.326096 
           2 |      2263   2.528181   29.50456   8.027669 
           3 |       986   1.101541   12.85528   9.983799 
           4 |        25   .0279295   .3259452   1.945525 
           5 |      2862   3.197372   37.31421    9.01815 
-------------+--------------------------------------------
55           |                                            
           1 |      1408   1.572991   19.24812   7.642206 
           2 |      1968   2.198612   26.90362   6.981199 
           3 |       873   .9752991   11.93438   8.839611 
           4 |        25   .0279295   .3417635   1.945525 
           5 |      3041   3.397348   41.57211   9.582178 
-------------+--------------------------------------------
60           |                                            
           1 |       911   1.017752   18.57288   4.944637 
           2 |      1169   1.305985   23.83282   4.146861 
           3 |       519    .579817   10.58104   5.255164 
           4 |        17   .0189921   .3465851   1.322957 
           5 |      2289   2.557228   46.66667   7.212629 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           21.86885  22.32471  21.13437  20.77823  21.21173  20.10454  19.36137  18.69437
2           25.80805  36.10099  37.72171  35.88492   31.4437  29.65878  27.06192  23.98871
3           7.149432  10.31211  12.35174  13.52109  13.62679  12.92247   12.0046  10.65025
4                  0         0         0         0         0         0         0         0
5           45.17367  31.26219  28.79217  29.81576  33.71778  37.31421  41.57211  46.66667
------------------------------------------------------------------------------------------

=> 1990

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     22055   5.169379   39.76453    7.93023 
           2 |      3531   .8276163   6.366292    7.79367 
           3 |       511   .1197711   .9213183   8.337412 
           4 |        52   .0121881   .0937545   5.585392 
           5 |     29315    6.87102    52.8541   30.48311 
-------------+--------------------------------------------
30           |                                            
           1 |     40356   9.458873   58.35502   14.51065 
           2 |      7876   1.846023   11.38874   17.38401 
           3 |      1249   .2927479   1.806062   20.37853 
           4 |       113   .0264856   .1633987   12.13749 
           5 |     19562   4.585055   28.28677   20.34149 
-------------+--------------------------------------------
35           |                                            
           1 |     43887   10.28649   66.36373   15.78028 
           2 |      8670   2.032125   13.11034   19.13654 
           3 |      1202   .2817317   1.817604   19.61168 
           4 |       130   .0304702   .1965795   13.96348 
           5 |     12242   2.869351   18.51174   12.72981 
-------------+--------------------------------------------
40           |                                            
           1 |     46259   10.84245   70.20427   16.63317 
           2 |      8120   1.903213    12.3232   17.92257 
           3 |      1139   .2669654   1.728586   18.58378 
           4 |       147   .0344547   .2230923   15.78947 
           5 |     10227   2.397064   15.52085   10.63451 
-------------+--------------------------------------------
45           |                                            
           1 |     44224   10.36548   71.77939   15.90145 
           2 |      7155    1.67703   11.61319   15.79261 
           3 |       934   .2189163   1.515963   15.23903 
           4 |       139   .0325796   .2256091   14.93018 
           5 |      9159    2.14674   14.86585   9.523958 
-------------+--------------------------------------------
50           |                                            
           1 |     32043   7.510424   73.26794   11.52158 
           2 |      4549   1.066221   10.40152   10.04061 
           3 |       505   .1183648   1.154708   8.239517 
           4 |       120   .0281263   .2743861   12.88937 
           5 |      6517   1.527492   14.90145   6.776682 
-------------+--------------------------------------------
55           |                                            
           1 |     26671   6.251304   75.74622   9.589987 
           2 |      3048   .7144079   8.656386   6.727586 
           3 |       344   .0806287   .9769674   5.612661 
           4 |       110   .0257824   .3124024   11.81525 
           5 |      5038   1.180836   14.30803   5.238749 
-------------+--------------------------------------------
60           |                                            
           1 |     22618   5.301338   76.80657   8.132665 
           2 |      2357   .5524473   8.003939   5.202401 
           3 |       245   .0574245    .831975   3.997389 
           4 |       120   .0281263    .407498   12.88937 
           5 |      4108   .9628569   13.95001   4.271691 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           39.84377  58.48829  66.52421  70.39016  71.97011  73.50494  76.02337  77.17203
2           6.378977  11.41475  13.14205  12.35582  11.64404  10.43516  8.688059  8.042023
3           .9231541  1.810186     1.822  1.733163  1.519991  1.158443  .9805421  .8359337
4                  0         0         0         0         0         0         0         0
5            52.8541  28.28677  18.51174  15.52085  14.86585  14.90145  14.30803  13.95001
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |      7270   4.548298   26.15108   17.39567 
           2 |      5811   3.635511   20.90288   12.59319 
           3 |      1479   .9253003   5.320144   9.913533 
           4 |        27   .0168919   .0971223    14.4385 
           5 |     13213   8.266391   47.52878   23.26314 
-------------+--------------------------------------------
30           |                                            
           1 |      8958   5.604354   29.08158   21.43472 
           2 |      9216   5.765766   29.91916   19.97226 
           3 |      2523   1.578453   8.190761   16.91132 
           4 |        42   .0262763   .1363504   22.45989 
           5 |     10064   6.296296   32.67214   17.71893 
-------------+--------------------------------------------
35           |                                            
           1 |      7792   4.874875   28.46393   18.64472 
           2 |      8969   5.611236   32.76347   19.43698 
           3 |      2770   1.732983   10.11872   18.56693 
           4 |        36   .0225225   .1315068   19.25134 
           5 |      7808   4.884885   28.52237   13.74696 
-------------+--------------------------------------------
40           |                                            
           1 |      6280   3.928929   25.97725    15.0268 
           2 |      7980   4.992492   33.00931   17.29369 
           3 |      2689   1.682307   11.12306     18.024 
           4 |        24    .015015   .0992761   12.83422 
           5 |      7202   4.505756   29.79111   12.68002 
-------------+--------------------------------------------
45           |                                            
           1 |      4838   3.026777   24.12847   11.57638 
           2 |      6205   3.882007   30.94609   13.44704 
           3 |      2192   1.371371   10.93212   14.69267 
           4 |        17   .0106356   .0847838   9.090909 
           5 |      6799   4.253629   33.90853   11.97049 
-------------+--------------------------------------------
50           |                                            
           1 |      3056   1.911912   22.97744   7.312404 
           2 |      3860   2.414915   29.02256   8.365118 
           3 |      1532   .9584585    11.5188   10.26878 
           4 |        15   .0093844    .112782    8.02139 
           5 |      4837   3.026151   36.36842   8.516145 
-------------+--------------------------------------------
55           |                                            
           1 |      2082   1.302553   23.05903   4.981815 
           2 |      2357     1.4746   26.10477   5.107923 
           3 |       977   .6112362   10.82069   6.548696 
           4 |        12   .0075075   .1329051   6.417112 
           5 |      3601   2.252878    39.8826   6.340012 
-------------+--------------------------------------------
60           |                                            
           1 |      1516   .9484484   20.74723   3.627489 
           2 |      1746   1.092342    23.8949   3.783807 
           3 |       757   .4735986   10.35993   5.074067 
           4 |        14   .0087588   .1915971   7.486631 
           5 |      3274   2.048298   44.80635   5.764287 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           26.19957   29.1406  28.51639  26.01403  24.15946  23.01824  23.11012   20.8195
2           20.94164  29.97988  32.82386  33.05605  30.98584  29.07409  26.16261  23.97813
3            5.33001  8.207382  10.13737  11.13881  10.94617  11.53925  10.84466  10.39602
4                  0         0         0         0         0         0         0         0
5           47.52878  32.67214  28.52237  29.79111  33.90853  36.36842   39.8826  44.80635
------------------------------------------------------------------------------------------

=> 2000

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     15454   2.688475   27.28701   4.890522 
           2 |      5112   .8893157   9.026221   5.714158 
           3 |       753   .1309966   1.329567   5.949277 
           4 |       184   .0320098   .3248874   4.605757 
           5 |     35132   6.111784   62.03231   23.00555 
-------------+--------------------------------------------
30           |                                            
           1 |     40473   7.040938   44.29621   12.80795 
           2 |     14518   2.525643   15.88942   16.22812 
           3 |      2233   .3884667   2.443936   17.64241 
           4 |       482   .0838518   .5275312   12.06508 
           5 |     33663   5.856227   36.84291    22.0436 
-------------+--------------------------------------------
35           |                                            
           1 |     53802   9.359734   54.04412     17.026 
           2 |     18133   3.154531    18.2146   20.26894 
           3 |      2662   .4630983   2.673979   21.03184 
           4 |       606   .1054236   .6087271   15.16896 
           5 |     24349   4.235905   24.45857    15.9445 
-------------+--------------------------------------------
40           |                                            
           1 |     50401   8.768075   58.94095   15.94973 
           2 |     15273   2.656987   17.86086   17.07205 
           3 |      2308   .4015142   2.699068   18.23497 
           4 |       604   .1050756   .7063419    15.1189 
           5 |     16925   2.944379   19.79278   11.08303 
-------------+--------------------------------------------
45           |                                            
           1 |     44399   7.723929   61.43745   14.05036 
           2 |     12227   2.127086    16.9192   13.66726 
           3 |      1718   .2988741   2.377295   13.57352 
           4 |       591   .1028141   .8178007   14.79349 
           5 |     13332   2.319319   18.44825   8.730216 
-------------+--------------------------------------------
50           |                                            
           1 |     43322   7.536568    63.8365   13.70954 
           2 |     10394   1.808206   15.31593   11.61834 
           3 |      1332   .2317231   1.962749   10.52382 
           4 |       571   .0993348   .8413887   14.29287 
           5 |     12245   2.130217   18.04344   8.018414 
-------------+--------------------------------------------
55           |                                            
           1 |     40186   6.991009   66.08127   12.71713 
           2 |      8543   1.486194   14.04798   9.549306 
           3 |      1079   .1877096   1.774292   8.524927 
           4 |       534    .092898   .8781017   13.36671 
           5 |     10471   1.821601   17.21836   6.856742 
-------------+--------------------------------------------
60           |                                            
           1 |     27962   4.864445   68.51248   8.848762 
           2 |      5262   .9154106   12.89295   5.881827 
           3 |       572   .0995087   1.401514   4.519238 
           4 |       423   .0735877   1.036434   10.58824 
           5 |      6594   1.147134   16.15662    4.31796 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           27.52252  44.66931  54.48315  59.46463  62.05978  64.49866  66.78973     69.37
2           9.104124  16.02325  18.36257  18.01955  17.09059  15.47479  14.19859  13.05432
3           1.341042  2.464521  2.695702  2.723048  2.401376  1.983108  1.793314  1.419056
4                  0         0         0         0         0         0         0         0
5           62.03231  36.84291  24.45857  19.79278  18.44825  18.04344  17.21836  16.15662
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |      8321   2.941696   21.17357   12.47096 
           2 |      8891   3.143207   22.62399     9.6777 
           3 |      1574   .5564512   4.005191   7.011136 
           4 |       176   .0622207   .4478485   10.69259 
           5 |     20337   7.189674   51.74941   20.30168 
-------------+--------------------------------------------
30           |                                            
           1 |     13459   4.758117   24.92269   20.17146 
           2 |     17813   6.297373    32.9852   19.38914 
           3 |      3654   1.291787   6.766291   16.27617 
           4 |       283   .1000481    .524045    17.1932 
           5 |     18794   6.644182   34.80177   18.76136 
-------------+--------------------------------------------
35           |                                            
           1 |     13650   4.825641   26.36815   20.45771 
           2 |     18418   6.511256   35.57865   20.04768 
           3 |      4255   1.504256   8.219522   18.95323 
           4 |       293   .1035833   .5659976   17.80073 
           5 |     15151   5.356284   29.26768   15.12468 
-------------+--------------------------------------------
40           |                                            
           1 |     10806    3.82021   26.15895   16.19531 
           2 |     14727   5.206389   35.65083   16.03009 
           3 |      3630   1.283302   8.787431   16.16927 
           4 |       280   .0989875   .6778184   17.01094 
           5 |     11866   4.194949   28.72498   11.84539 
-------------+--------------------------------------------
45           |                                            
           1 |      7784   2.751852   23.53439   11.66614 
           2 |     11437   4.043286   34.57899   12.44898 
           3 |      2928   1.035126   8.852608   13.04232 
           4 |       207     .07318   .6258503   12.57594 
           5 |     10719   3.789454   32.40816   10.70038 
-------------+--------------------------------------------
50           |                                            
           1 |      6085    2.15121   21.71276   9.119794 
           2 |      9333   3.299465   33.30241   10.15881 
           3 |      2678   .9467447   9.555754   11.92873 
           4 |       181   .0639883   .6458519   10.99635 
           5 |      9748   3.446179   34.78323   9.731068 
-------------+--------------------------------------------
55           |                                            
           1 |      4192   1.481984   19.28864   6.282691 
           2 |      6993   2.472213   32.17687    7.61176 
           3 |      2276    .804627   10.47255   10.13808 
           4 |       135   .0477261   .6211752   8.201701 
           5 |      8137   2.876647   37.44076   8.122866 
-------------+--------------------------------------------
60           |                                            
           1 |      2426    .857656   17.76899   3.635928 
           2 |      4259   1.505671   31.19461   4.635848 
           3 |      1455   .5143815     10.657   6.481069 
           4 |        91   .0321709   .6665202   5.528554 
           5 |      5422   1.916822   39.71288   5.412582 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           21.37194  25.12463  26.58085  26.41011  23.75434  21.92993  19.48208  17.96763
2           22.83594  33.25248  35.86565  35.99312  34.90216  33.63551  32.49957  31.54335
3           4.042714  6.821117  8.285825  8.871801  8.935342  9.651332  10.57758  10.77614
4                  0         0         0         0         0         0         0         0
5           51.74941  34.80177  29.26768  28.72498  32.40816  34.78323  37.44076  39.71288
------------------------------------------------------------------------------------------

. local plots

. foreach s in m f {
  2.     foreach o in 1 2 3 5 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct2) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)80, gmax angle(hor)) ///
>       bylabels("Higher than partner" "Same as partner" "Lower than partner" "No partner" ///
>                "Higher than partner" "Same as partner" "Lower than partner" "No partner") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(206 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(206 42.5 "Women", size(medlarge))
Figure 6: Educational homogamy: high education (including people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Higher than partner Same as partner Lower than partner No partner Higher than partner Same as partner Lower than partner No partner 2000 1990 1980 1970

4.3  Medium education

Homogamy among people with medium educational level (secondary II), excluding the “undetermined” category, is displayed in figure 7.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate HOM ALTC if GESL==1 & ZJHR==`y' & inlist(EDUC,2,3) ///
>         [fw=POP], nolabel nototal
  4.     rescale_colpct
  5.     eststo m`y'
  6.     estpost tabulate HOM ALTC if GESL==2 & ZJHR==`y' & inlist(EDUC,2,3) ///
>         [fw=POP], nolabel nototal
  7.     rescale_colpct
  8.     eststo f`y'
  9. }

=> 1970

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     42323   5.475183   31.35827   11.98276 
           2 |     34466    4.45875    25.5368   15.66829 
           3 |      9128   1.180858   6.763185   16.92847 
           4 |      1563      .2022   1.158069   10.80689 
           5 |     47486   6.143103   35.18368   36.12724 
-------------+--------------------------------------------
30           |                                            
           1 |     47155   6.100282   43.01639   13.35083 
           2 |     32671   4.226536    29.8036   14.85228 
           3 |      8480   1.097029   7.735744   15.72671 
           4 |      1787   .2311781   1.630162   12.35567 
           5 |     19528   2.526271    17.8141   14.85686 
-------------+--------------------------------------------
35           |                                            
           1 |     49242   6.370271    47.8361   13.94172 
           2 |     31042   4.015798   30.15572   14.11173 
           3 |      7562   .9782703   7.346098   14.02422 
           4 |      1827   .2363528   1.774838   12.63223 
           5 |     13266   1.716177   12.88724   10.09274 
-------------+--------------------------------------------
40           |                                            
           1 |     47310   6.120334    49.5834   13.39472 
           2 |     28316   3.663145   29.67668   12.87249 
           3 |      6802   .8799517   7.128858   12.61475 
           4 |      1745   .2257447   1.828853   12.06527 
           5 |     11242   1.454339   11.78221   8.552887 
-------------+--------------------------------------------
45           |                                            
           1 |     44780   5.793037   49.79705   12.67841 
           2 |     26603    3.44154   29.58354   12.09376 
           3 |      6564   .8491624   7.299416   12.17336 
           4 |      1682   .2175946   1.870448   11.62968 
           5 |     10296   1.331959   11.44954   7.833172 
-------------+--------------------------------------------
50           |                                            
           1 |     40681   5.262763   50.52599   11.51787 
           2 |     23454   3.034164   29.12998   10.66222 
           3 |      5544   .7172085   6.885673   10.28171 
           4 |      1692   .2188883   2.101472   11.69882 
           5 |      9144   1.182928   11.35689   6.956733 
-------------+--------------------------------------------
55           |                                            
           1 |     42439   5.490189   50.87389   12.01561 
           2 |     23480   3.037528   28.14673   10.67404 
           3 |      5319    .688101   6.376169   9.864431 
           4 |      2021   .2614499    2.42268   13.97359 
           5 |     10161   1.314494   12.18053   7.730465 
-------------+--------------------------------------------
60           |                                            
           1 |     39269   5.080097   51.53683   11.11809 
           2 |     19941     2.5797   26.17067   9.065203 
           3 |      4522   .5849958   5.934695   8.386343 
           4 |      2146   .2776207   2.816421   14.83786 
           5 |     10318   1.334805   13.54139    7.84991 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           31.92874  43.88689  48.83098  50.63308  50.87161   51.7529  52.31717  53.27219
2           26.00137  30.40672  30.78289  30.30493  30.22192  29.83733  28.94524  27.05189
3            6.88622  7.892288  7.498881  7.279776  7.456929  7.052877  6.557059  6.134529
4                  0         0         0         0         0         0         0         0
5           35.18368   17.8141  12.88724  11.78221  11.44954  11.35689  12.18053  13.54139
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     16476   2.916886   15.35079   18.78356 
           2 |     38762   6.862365   36.11479   18.00154 
           3 |     21310    3.77269   19.85465   18.23971 
           4 |      1972   .3491199   1.837324   43.40744 
           5 |     28810   5.100478   26.84245   20.51527 
-------------+--------------------------------------------
30           |                                            
           1 |     13962   2.471811   16.74603   15.91746 
           2 |     32878   5.820671   39.43388   15.26894 
           3 |     20510   3.631059    24.5997   17.55497 
           4 |       776   .1373818   .9307346   17.08122 
           5 |     15249    2.69966   18.28966   10.85864 
-------------+--------------------------------------------
35           |                                            
           1 |     12075   2.137739   16.61392   13.76617 
           2 |     29621   5.244056   40.75537   13.75635 
           3 |     17682   3.130394   24.32856   15.13442 
           4 |       414   .0732939   .5696203   9.112921 
           5 |     12888   2.281672   17.73253   9.177395 
-------------+--------------------------------------------
40           |                                            
           1 |     11387   2.015937   15.85558   12.98182 
           2 |     28990   5.132345   40.36649   13.46331 
           3 |     16964   3.003281   23.62115   14.51987 
           4 |       340   .0601931   .4734255   7.484041 
           5 |     14136   2.502616   19.68336   10.06608 
-------------+--------------------------------------------
45           |                                            
           1 |     10446   1.849344   15.35815   11.90902 
           2 |     26521   4.695237    38.9923   12.31667 
           3 |     14912   2.639998   21.92425   12.76352 
           4 |       277   .0490397   .4072571   6.097293 
           5 |     15860    2.80783   23.31804   11.29372 
-------------+--------------------------------------------
50           |                                            
           1 |      8890   1.573872   15.65168    10.1351 
           2 |     22207   3.931493   39.09752    10.3132 
           3 |     10375   1.836774   18.26617   8.880197 
           4 |       254   .0449678    .447191   5.591019 
           5 |     15073   2.668501   26.53744   10.73331 
-------------+--------------------------------------------
55           |                                            
           1 |      8023    1.42038    14.6858   9.146668 
           2 |     20174   3.571574   36.92775    9.36905 
           3 |      8442   1.494559   15.45276   7.225698 
           4 |       271   .0479774   .4960554   5.965221 
           5 |     17721   3.137299   32.43763   12.61892 
-------------+--------------------------------------------
60           |                                            
           1 |      6456    1.14296    12.8603   7.360201 
           2 |     16173   2.863243   32.21649   7.510937 
           3 |      6638   1.175181   13.22284   5.681614 
           4 |       239   .0423122   .4760861   5.260841 
           5 |     20695   3.663811   41.22428   14.73667 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           15.74625  16.93897  16.72976  15.94959  15.44015  15.74754  14.79442  12.96532
2           37.04516  39.88824  41.03952  40.60584  39.20049  39.33698  37.20089  32.47958
3           20.36614  24.88314  24.49819  23.76121  22.04131  18.37804  15.56706  13.33082
4                  0         0         0         0         0         0         0         0
5           26.84245  18.28966  17.73253  19.68336  23.31804  26.53744  32.43763  41.22428
------------------------------------------------------------------------------------------

=> 1980

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     21385   2.765621   16.97883   7.756394 
           2 |     36590   4.732012   29.05098   13.61752 
           3 |      8817   1.140261   7.000341   14.30611 
           4 |      1131   .1462669   .8979683   13.22652 
           5 |     58028   7.504488   46.07189   36.57473 
-------------+--------------------------------------------
30           |                                            
           1 |     36552   4.727098   27.85211    13.2575 
           2 |     50202   6.492388   38.25322   18.68343 
           3 |     12057   1.559275   9.187266   19.56321 
           4 |      1408     .18209   1.072876   16.46591 
           5 |     31017   4.011282   23.63452   19.54984 
-------------+--------------------------------------------
35           |                                            
           1 |     41090   5.313976   33.58727   14.90345 
           2 |     48230   6.237358   39.42356   17.94952 
           3 |     11178   1.445598   9.136981   18.13698 
           4 |      1239    .160234   1.012768   14.48953 
           5 |     20601    2.66423   16.83941    12.9847 
-------------+--------------------------------------------
40           |                                            
           1 |     37868    4.89729   39.27849   13.73482 
           2 |     35907   4.643683   37.24445   13.36333 
           3 |      7945   1.027489   8.240932   12.89124 
           4 |      1027   .1328171   1.065253   12.01029 
           5 |     13662   1.766842   14.17088   8.611083 
-------------+--------------------------------------------
45           |                                            
           1 |     39556   5.115591   43.51643   14.34706 
           2 |     32080   4.148755   35.29192   11.93905 
           3 |      6963    .900492    7.66015   11.29789 
           4 |      1039    .134369   1.143027   12.15063 
           5 |     11261   1.456332   12.38848   7.097746 
-------------+--------------------------------------------
50           |                                            
           1 |     37009   4.786199   46.77105   13.42326 
           2 |     26173   3.384831   33.07679   9.740675 
           3 |      5728   .7407752   7.238904   9.294024 
           4 |       897   .1160048   1.133606      10.49 
           5 |      9321   1.205441   11.77965   5.874975 
-------------+--------------------------------------------
55           |                                            
           1 |     33753   4.365116   48.26408    12.2423 
           2 |     22168   2.866883   31.69846   8.250154 
           3 |      5091    .658395   7.279721   8.260453 
           4 |       919   .1188499   1.314096   10.74728 
           5 |      8003    1.03499   11.44365   5.044247 
-------------+--------------------------------------------
60           |                                            
           1 |     28495   3.685124     49.687   10.33521 
           2 |     17348   2.243535   30.24987   6.456319 
           3 |      3852    .498161   6.716769   6.250101 
           4 |       891   .1152288   1.553645   10.41983 
           5 |      6763   .8746269   11.79271   4.262682 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           17.26633  28.24899  34.00136  39.77212  44.09167  47.37987  48.99106  50.57786
2           29.54291  38.79831   39.9096  37.71251  35.75844  33.50735  32.17592  30.79223
3           7.118879  9.318179  9.249627  8.344498   7.76141  7.333133  7.389372  6.837197
4                  0         0         0         0         0         0         0         0
5           46.07189  23.63452  16.83941  14.17088  12.38848  11.77965  11.44365  11.79271
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     17099   2.369589   13.07213   16.92853 
           2 |     45342   6.283519   34.66381   17.23382 
           3 |     23905   3.312768    18.2753   13.59776 
           4 |      2236   .3098661   1.709415   43.65482 
           5 |     42223   5.851286   32.27935   23.91249 
-------------+--------------------------------------------
30           |                                            
           1 |     18186   2.520226   13.82514   18.00469 
           2 |     50662   7.020768   38.51364   19.25587 
           3 |     34918   4.838956   26.54493   19.86223 
           4 |      1076   .1491127   .8179835   21.00742 
           5 |     26701   3.700239   20.29831   15.12179 
-------------+--------------------------------------------
35           |                                            
           1 |     15999    2.21715   13.45064    15.8395 
           2 |     45359   6.285875   38.13411   17.24028 
           3 |     34816    4.82482   29.27043   19.80421 
           4 |       570   .0789909   .4792091   11.12847 
           5 |     22202   3.076765   18.66561   12.57384 
-------------+--------------------------------------------
40           |                                            
           1 |     12416   1.720616   13.94101   12.29222 
           2 |     33986   4.709798   38.16036   12.91757 
           3 |     24913   3.452457   27.97296   14.17114 
           4 |       320   .0443458   .3593043    6.24756 
           5 |     17426   2.414905   19.56636   9.869006 
-------------+--------------------------------------------
45           |                                            
           1 |     11485   1.591598   14.93032    11.3705 
           2 |     29215   4.048631   37.97904   11.10419 
           3 |     19677   2.726849   25.57979   11.19277 
           4 |       255    .035338    .331496   4.978524 
           5 |     16292   2.257754   21.17935   9.226779 
-------------+--------------------------------------------
50           |                                            
           1 |     10521   1.458006   15.42216   10.41611 
           2 |     24244   3.359747   35.53797   9.214782 
           3 |     16317   2.261219   23.91821   9.281517 
           4 |       207   .0286862   .3034301    4.04139 
           5 |     16931   2.346307   24.81824   9.588669 
-------------+--------------------------------------------
55           |                                            
           1 |      8863   1.228239   14.69087   8.774639 
           2 |     19840   2.749438   32.88579   7.540888 
           3 |     13170   1.825106   21.82994   7.491425 
           4 |       238   .0329822   .3944969   4.646622 
           5 |     18219   2.524799   30.19891   10.31811 
-------------+--------------------------------------------
60           |                                            
           1 |      6438   .8921816   14.06506   6.373816 
           2 |     14451   2.002627   31.57101   5.492609 
           3 |      8085   1.120424   17.66325    4.59895 
           4 |       220   .0304877   .4806327   4.295197 
           5 |     16579   2.297527   36.22004   9.389318 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           13.41064   13.9685  13.53036  14.00356  14.99338  15.48466  14.77437  14.17186
2           35.56146  38.91301  38.36012  38.33159  38.13945  35.68198  33.07271  31.81073
3           18.74855  26.82019   29.4439  28.09848  25.68783  24.01513  21.95401  17.79737
4                  0         0         0         0         0         0         0         0
5           32.27935  20.29831  18.66561  19.56636  21.17935  24.81824  30.19891  36.22004
------------------------------------------------------------------------------------------

=> 1990

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     17334    1.71902   9.432597   7.006212 
           2 |     59448   5.895484   32.34966   13.94118 
           3 |      8796   .8723032   4.786496   13.53002 
           4 |       312   .0309412   .1697802    6.51493 
           5 |     97877   9.706505   53.26147   36.97155 
-------------+--------------------------------------------
30           |                                            
           1 |     25931   2.571589   16.86558   10.48103 
           2 |     68630   6.806067   44.63711   16.09446 
           3 |     11851   1.175269   7.707917   18.22922 
           4 |       488   .0483952   .3173963   10.19002 
           5 |     46851   4.646234     30.472   17.69725 
-------------+--------------------------------------------
35           |                                            
           1 |     29421   2.917693   21.61815   11.89165 
           2 |     64256   6.372296   47.21443   15.06871 
           3 |     11446   1.135105   8.410363   17.60625 
           4 |       571   .0566263   .4195629   11.92316 
           5 |     30400   3.014781    22.3375   11.48314 
-------------+--------------------------------------------
40           |                                            
           1 |     35576   3.528088   25.80383   14.37943 
           2 |     64656   6.411964   46.89601   15.16252 
           3 |     10544   1.045653   7.647729   16.21879 
           4 |       612   .0606923   .4438932   12.77929 
           5 |     26483   2.626331   19.20854   10.00355 
-------------+--------------------------------------------
45           |                                            
           1 |     37067   3.675951   29.06532   14.98207 
           2 |     58461   5.797603   45.84098   13.70972 
           3 |      8642   .8570309   6.776445   13.29314 
           4 |       680   .0674359   .5332079   14.19921 
           5 |     22680   2.249186   17.78405   8.567025 
-------------+--------------------------------------------
50           |                                            
           1 |     34403   3.411761   34.20393   13.90531 
           2 |     43493    4.31322   43.24134   10.19957 
           3 |      5780   .5732051   5.746555   8.890803 
           4 |       639   .0633699   .6353025   13.34308 
           5 |     16267   1.613206   16.17287   6.144612 
-------------+--------------------------------------------
55           |                                            
           1 |     35861   3.556351   38.81607   14.49462 
           2 |     37760   3.744676   40.87155   8.855119 
           3 |      4541    .450333   4.915194   6.984972 
           4 |       724   .0717994     .78366   15.11798 
           5 |     13501     1.3389   14.61353   5.099798 
-------------+--------------------------------------------
60           |                                            
           1 |     31816   3.155207   41.65325   12.85968 
           2 |     29716   2.946949   38.90394   6.968716 
           3 |      3411   .3382704   4.465653   5.246804 
           4 |       763    .075667   .9989134   15.93234 
           5 |     10677   1.058843   13.97824   4.033074 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           9.466986  16.94293  21.73557  25.94639  29.25505  34.46513  39.17561  42.14262
2            32.4676  44.84181  47.47088   47.1551  46.14022  43.57155  41.25014  39.36102
3           4.803947  7.743265  8.456046   7.68998   6.82068  5.790439  4.960722  4.518119
4                  0         0         0         0         0         0         0         0
5           53.26147    30.472   22.3375  19.20854  17.78405  16.17287  14.61353  13.97824
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     16676   1.642967   8.787757   18.03181 
           2 |     73575   7.248818   38.77184    17.5305 
           3 |     32624   3.214209   17.19188   13.44305 
           4 |       249   .0245322   .1312156    16.7002 
           5 |     66640   6.565563    35.1173   25.76544 
-------------+--------------------------------------------
30           |                                            
           1 |     16602   1.635676   10.14352    17.9518 
           2 |     70877   6.983004   43.30456   16.88766 
           3 |     40450   3.985249   24.71421   16.66783 
           4 |       237   .0233499   .1448027   15.89537 
           5 |     35505   3.498054   21.69291   13.72752 
-------------+--------------------------------------------
35           |                                            
           1 |     14269   1.405823   9.855439   15.42912 
           2 |     62631   6.170584   43.25853   14.92291 
           3 |     39082    3.85047    26.9935   16.10414 
           4 |       219   .0215765   .1512609   14.68813 
           5 |     28582    2.81598   19.74127   11.05084 
-------------+--------------------------------------------
40           |                                            
           1 |     12705   1.251733   8.952921   13.73796 
           2 |     60396   5.950386   42.55967   14.39038 
           3 |     38912   3.833721   27.42039   16.03409 
           4 |       191   .0188179   .1345933   12.81019 
           5 |     29705   2.926621   20.93243   11.48503 
-------------+--------------------------------------------
45           |                                            
           1 |     10661   1.050352   8.317145   11.52777 
           2 |     53178   5.239248   41.48665   12.67057 
           3 |     34900   3.438447   27.22712    14.3809 
           4 |       154   .0151725   .1201426   10.32864 
           5 |     29288   2.885537   22.84894    11.3238 
-------------+--------------------------------------------
50           |                                            
           1 |      8237   .8115327   8.614126   8.906694 
           2 |     39812   3.922392   41.63477   9.485891 
           3 |     23915   2.356174   25.00993   9.854419 
           4 |       138   .0135962   .1443183   9.255533 
           5 |     23520   2.317257   24.59685   9.093686 
-------------+--------------------------------------------
55           |                                            
           1 |      7412   .7302513    9.06323   8.014619 
           2 |     33072   3.258348   40.43971   7.879971 
           3 |     18633   1.835776   22.78402   7.677917 
           4 |       147   .0144829   .1797484   9.859155 
           5 |     22517   2.218439   27.53329    8.70589 
-------------+--------------------------------------------
60           |                                            
           1 |      5919   .5831567   8.543345   6.400234 
           2 |     26156   2.576964   37.75295   6.232115 
           3 |     14167   1.395773   20.44831   5.837657 
           4 |       156   .0153696   .2251667   10.46278 
           5 |     22884   2.254597   33.03022   8.847785 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           8.805565  10.16231  9.874048  8.968187  8.330117  8.630645  9.085766  8.572166
2           38.85041  43.38478  43.34021  42.63224  41.55135  41.71461  40.54027  37.88031
3           17.22672     24.76  27.04447  27.46715  27.26959  25.05789  22.84068   20.5173
4                  0         0         0         0         0         0         0         0
5            35.1173  21.69291  19.74127  20.93243  22.84894  24.59685  27.53329  33.03022
------------------------------------------------------------------------------------------

=> 2000

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |      9162   .9812731   7.187912   4.879166 
           2 |     31104   3.331316   24.40218   8.278593 
           3 |      8318   .8908786   6.525764    9.62999 
           4 |       667   .0714374    .523285   6.399923 
           5 |     78213   8.376808   61.36085   28.60827 
-------------+--------------------------------------------
30           |                                            
           1 |     16211   1.736239   12.12953   8.633067 
           2 |     52563   5.629629   39.32914   13.99009 
           3 |     13617   1.458415   10.18863    15.7648 
           4 |      1045   .1119221   .7818989   10.02687 
           5 |     50213   5.377938    37.5708    18.3666 
-------------+--------------------------------------------
35           |                                            
           1 |     22875    2.44997   16.33497   12.18194 
           2 |     60802   6.512046   43.41853   16.18297 
           3 |     15671   1.678403   11.19061   18.14277 
           4 |      1460   .1563697   1.042582   14.00883 
           5 |     39229   4.201524   28.01331   14.34894 
-------------+--------------------------------------------
40           |                                            
           1 |     25324   2.712264   19.95398   13.48614 
           2 |     56257   6.025265   44.32757   14.97328 
           3 |     14049   1.504683   11.06988   16.26493 
           4 |      1431   .1532637   1.127553   13.73057 
           5 |     29851   3.197117   23.52102   10.91871 
-------------+--------------------------------------------
45           |                                            
           1 |     26507   2.838966    23.2963   14.11614 
           2 |     49985   5.353519    43.9305   13.30393 
           3 |     11766   1.260168   10.34083   13.62184 
           4 |      1387   .1485512   1.218998   13.30839 
           5 |     24137   2.585133   21.21337   8.828683 
-------------+--------------------------------------------
50           |                                            
           1 |     30768    3.29533   26.86317   16.38531 
           2 |     49850    5.33906   43.52343     13.268 
           3 |     10251   1.097908   8.950024   11.86788 
           4 |      1576   .1687935   1.375987   15.12186 
           5 |     22091   2.366001   19.28739   8.080309 
-------------+--------------------------------------------
55           |                                            
           1 |     31011   3.321356    30.3043   16.51471 
           2 |     44103   4.723542   43.09796   11.73839 
           3 |      7963   .8528572   7.781535   9.218996 
           4 |      1503   .1609751   1.468749   14.42142 
           5 |     17752   1.901284   17.34746   6.493217 
-------------+--------------------------------------------
60           |                                            
           1 |     25920   2.776097   34.57245   13.80353 
           2 |     31052   3.325747   41.41758   8.264753 
           3 |      4741    .507773    6.32361   5.488793 
           4 |      1353   .1449097    1.80465   12.98215 
           5 |     11907   1.275269   15.88172   4.355269 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           7.286593  12.28338  16.57502  20.25257  23.66241  27.32908  30.85256  35.33041
2            24.7372  39.82797   44.0566  44.99088  44.62088  44.27829  43.87767  42.32562
3           6.615355  10.31786  11.35507  11.23552  10.50334  9.105251  7.922315  6.462249
4                  0         0         0         0         0         0         0         0
5           61.36085   37.5708  28.01331  23.52102  21.21337  19.28739  17.34746  15.88172
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           1 |     12271   1.184916   8.811829   12.47763 
           2 |     42679   4.121182   30.64787   11.21591 
           3 |     24896   2.404015   17.87787   9.009876 
           4 |       729   .0703939   .5234963    12.1988 
           5 |     58681   5.666372   42.13894   21.38209 
-------------+--------------------------------------------
30           |                                            
           1 |     15777   1.523463   9.785825   16.04267 
           2 |     60418     5.8341    37.4748   15.87766 
           3 |     43121   4.163862   26.74618   15.60551 
           4 |       879   .0848782   .5452076   14.70884 
           5 |     41028   3.961757   25.44798   14.94972 
-------------+--------------------------------------------
35           |                                            
           1 |     16927    1.63451   10.26488   17.21203 
           2 |     63120   6.095011   38.27728   16.58774 
           3 |     48322   4.666083   29.30347   17.48776 
           4 |       974   .0940517   .5906538   16.29853 
           5 |     35559   3.433658   21.56372   12.95693 
-------------+--------------------------------------------
40           |                                            
           1 |     14969   1.445441   10.38295   15.22106 
           2 |     54880   5.299338   38.06644   14.42229 
           3 |     42202   4.075122   29.27259   15.27293 
           4 |       865   .0835264   .5999903   14.47456 
           5 |     31253   3.017861   21.67803   11.38792 
-------------+--------------------------------------------
45           |                                            
           1 |     12659   1.222382   10.08219   12.87216 
           2 |     47558   4.592309   37.87732   12.49809 
           3 |     35529   3.430761   28.29688   12.85796 
           4 |       700   .0675936   .5575113   11.71352 
           5 |     29112   2.811121    23.1861   10.60778 
-------------+--------------------------------------------
50           |                                            
           1 |     10964   1.058709   9.086615   11.14862 
           2 |     45864   4.428733   38.01062   12.05292 
           3 |     33702   3.254342   27.93115   12.19677 
           4 |       711   .0686558   .5892542   11.89759 
           5 |     29420   2.840862   24.38236   10.72001 
-------------+--------------------------------------------
55           |                                            
           1 |      8748   .8447269    8.30856   8.895306 
           2 |     39048   3.770564    37.0865   10.26169 
           3 |     29177   2.817398   27.71135   10.55917 
           4 |       603   .0582271   .5727094   10.09036 
           5 |     27713   2.676031   26.32089   10.09802 
-------------+--------------------------------------------
60           |                                            
           1 |      6029    .582174   8.087949   6.130521 
           2 |     26955   2.602836   36.16034    7.08369 
           3 |     19370   1.870411     25.985   7.010014 
           4 |       515   .0497296   .6908764   8.617805 
           5 |     21674   2.092891   29.07584   7.897537 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
1           8.892281  9.857917  10.34277  10.46311   10.1559  9.157979  8.373649  8.167509
2           30.92769  37.75088  38.56771   38.3603  38.15424  38.30915  37.37703  36.51604
3           18.04109  26.94322  29.52581  29.49857  28.50376  28.15051  27.92844  26.24061
4                  0         0         0         0         0         0         0         0
5           42.13894  25.44798  21.56372  21.67803   23.1861  24.38236  26.32089  29.07584
------------------------------------------------------------------------------------------

. local plots

. foreach s in m f {
  2.     foreach o in 1 2 3 5 {
  3.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  4.     }
  5. }

. coefplot `plots', at(_eq) b(colpct2) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)80, gmax angle(hor)) ///
>       bylabels("Higher than partner" "Same as partner" "Lower than partner" "No partner" ///
>                "Higher than partner" "Same as partner" "Lower than partner" "No partner") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(205 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(205 42.5 "Women", size(medlarge))
Figure 7: Educational homogamy: medium education (including people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Higher than partner Same as partner Lower than partner No partner Higher than partner Same as partner Lower than partner No partner 2000 1990 1980 1970

4.4  Low education

Homogamy among people with low educational level (secondary I or lower), excluding the “undetermined” category, is displayed in figure 8.

. capt prog drop rescale_colpct

. prog rescale_colpct         // redefine because category 1 does not exist
  1.     tempname C
  2.     mat `C' = e(colpct)
  3.     local c = colsof(`C')/4
  4.     forv i = 1/`c' {
  5.         local i0 = (`i'-1)*4
  6.         local i4 = `i0'+3
  7.         local i5 = `i0'+4
  8.         forv j = 1/2 {
  9.             mat `C'[1,`i0'+`j'] = `C'[1,`i0'+`j'] * ///
>                 (100-`C'[1,`i5']) / (100-`C'[1,`i5']-`C'[1,`i4'])
 10.         }
 11.         mat `C'[1,`i4'] = 0
 12.     }
 13.     esttab matrix(`C', transpose), unstack collab(none) mlab(none) compress
 14.     qui estadd matrix colpct2 = `C'
 15. end

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     estpost tabulate HOM ALTC if GESL==1 & ZJHR==`y' & inlist(EDUC,1) ///
>         [fw=POP], nolabel nototal
  4.     rescale_colpct
  5.     eststo m`y'
  6.     estpost tabulate HOM ALTC if GESL==2 & ZJHR==`y' & inlist(EDUC,1) ///
>         [fw=POP], nolabel nototal
  7.     rescale_colpct
  8.     eststo f`y'
  9. }

=> 1970

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     30332   6.204056   42.25925   10.56121 
           3 |      7767   1.588649   10.82117   14.22554 
           4 |      1224   .2503549   1.705305   11.99412 
           5 |     32453   6.637881   45.21428   23.70562 
-------------+--------------------------------------------
30           |                                            
           2 |     42260   8.643788   56.97875   14.71438 
           3 |      8939   1.828368   12.05237   16.37209 
           4 |      1679   .3434198    2.26378   16.45272 
           5 |     21290    4.35462    28.7051    15.5515 
-------------+--------------------------------------------
35           |                                            
           2 |     43234   8.843009   60.85524   15.05352 
           3 |      8430   1.724258   11.86589   15.43984 
           4 |      1607    .328693   2.261978   15.74718 
           5 |     17773   3.635259   25.01689   12.98247 
-------------+--------------------------------------------
40           |                                            
           2 |     38796   7.935268   62.00812   13.50826 
           3 |      6896   1.410496   11.02196   12.63027 
           4 |      1408   .2879899   2.250424   13.79716 
           5 |     15466   3.163389    24.7195    11.2973 
-------------+--------------------------------------------
45           |                                            
           2 |     38687   7.912973   63.29783   13.47031 
           3 |      6849   1.400883   11.20601   12.54419 
           4 |      1291   .2640589   2.112273   12.65066 
           5 |     14292   2.923261   23.38389   10.43974 
-------------+--------------------------------------------
50           |                                            
           2 |     31477   6.438252   63.28434   10.95988 
           3 |      5494   1.123733   11.04566   10.06246 
           4 |      1005    .205561   2.020547   9.848114 
           5 |     11763   2.405984   23.64945   8.592403 
-------------+--------------------------------------------
55           |                                            
           2 |     31522   6.447456   63.11342   10.97555 
           3 |      5363   1.096939   10.73781   9.822524 
           4 |       979    .200243   1.960156   9.593337 
           5 |     12081   2.471027   24.18861    8.82469 
-------------+--------------------------------------------
60           |                                            
           2 |     30894   6.319006   63.63468   10.75689 
           3 |      4861   .9942607   10.01256   8.903093 
           4 |      1012   .2069928   2.084492   9.916707 
           5 |     11782    2.40987   24.26827   8.606282 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           43.61691  58.84729  62.74814   63.9189   65.0924  65.00463  64.78858  65.43578
3           11.16882  12.44761  12.23497   11.3616  11.52371  11.34592  11.02281  10.29596
4                  0         0         0         0         0         0         0         0
5           45.21428   28.7051  25.01689   24.7195  23.38389  23.64945  24.18861  24.26827
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     38464   4.678368   35.03448    13.5152 
           3 |     47921   5.828621   43.64827   13.46943 
           4 |      1398   .1700384   1.273352   18.21261 
           5 |     22006   2.676585    20.0439   12.63863 
-------------+--------------------------------------------
30           |                                            
           2 |     41910   5.097505   38.79622   14.72603 
           3 |     49296   5.995862   45.63346   13.85591 
           4 |      1307   .1589701   1.209894    17.0271 
           5 |     15513   1.886843   14.36043   8.909526 
-------------+--------------------------------------------
35           |                                            
           2 |     41607   5.060651   37.55619   14.61957 
           3 |     52357   6.368171   47.25958   14.71628 
           4 |      1149   .1397526   1.037135   14.96873 
           5 |     15673   1.906304   14.14709   9.001419 
-------------+--------------------------------------------
40           |                                            
           2 |     39194   4.767158   37.18314   13.77171 
           3 |     48775   5.932493   46.27258   13.70947 
           4 |       997   .1212649   .9458485   12.98854 
           5 |     16442   1.999837   15.59844   9.443076 
-------------+--------------------------------------------
45           |                                            
           2 |     36522   4.442163   35.28321   12.83284 
           3 |     46779    5.68972    45.1923   13.14844 
           4 |       862   .1048449   .8327617   11.22981 
           5 |     19348   2.353293   18.69173   11.11207 
-------------+--------------------------------------------
50           |                                            
           2 |     28970   3.523615   33.14039   10.17927 
           3 |     37796    4.59712   43.23694   10.62354 
           4 |       664   .0807622   .7595863   8.650339 
           5 |     19986   2.430893   22.86309   11.47849 
-------------+--------------------------------------------
55           |                                            
           2 |     29505   3.588687   30.55803   10.36725 
           3 |     38752   4.713398   40.13505   10.89225 
           4 |       636   .0773565   .6586988   8.285565 
           5 |     27661   3.364402   28.64822   15.88644 
-------------+--------------------------------------------
60           |                                            
           2 |     28426   3.457448   28.23485   9.988124 
           3 |     34100   4.147576    33.8707   9.584682 
           4 |       663   .0806406   .6585417   8.637311 
           5 |     37488   4.559658   37.23591   21.53035 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           35.60145  39.35217  38.01543  37.60455  35.64832  33.46997  30.84276  28.53424
3           44.35465   46.2874  47.83748  46.79701  45.65995  43.66694  40.50902  34.22985
4                  0         0         0         0         0         0         0         0
5            20.0439  14.36043  14.14709  15.59844  18.69173  22.86309  28.64822  37.23591
------------------------------------------------------------------------------------------

=> 1980

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     16699   3.534307   34.00464   5.910251 
           3 |      6253   1.323434   12.73316   11.18105 
           4 |       649   .1373594   1.321577   7.609333 
           5 |     25507   5.398501   51.94062   20.32657 
-------------+--------------------------------------------
30           |                                            
           2 |     31017   6.564681   51.57981    10.9778 
           3 |      8735   1.848744   14.52589   15.61913 
           4 |      1002   .2120711   1.666279   11.74815 
           5 |     19380   4.101735   32.22802   15.44395 
-------------+--------------------------------------------
35           |                                            
           2 |     34452   7.291691   57.50722   12.19354 
           3 |      8520   1.803239   14.22157   15.23469 
           4 |      1110   .2349291    1.85281   13.01442 
           5 |     15827    3.34975    26.4184   12.61256 
-------------+--------------------------------------------
40           |                                            
           2 |     38222   8.089603   62.45017   13.52785 
           3 |      7510   1.589475   12.27044    13.4287 
           4 |      1191   .2520726   1.945951   13.96412 
           5 |     14281   3.022543   23.33344   11.38055 
-------------+--------------------------------------------
45           |                                            
           2 |     41297    8.74042   65.07461   14.61618 
           3 |      6839   1.447459    10.7767   12.22888 
           4 |      1269   .2685811   1.999653   14.87865 
           5 |     14056   2.974922   22.14904   11.20125 
-------------+--------------------------------------------
50           |                                            
           2 |     41712   8.828254   66.63152   14.76306 
           3 |      6731   1.424602   10.75222   12.03576 
           4 |      1143   .2419135   1.825849   13.40134 
           5 |     13015   2.754596    20.7904   10.37167 
-------------+--------------------------------------------
55           |                                            
           2 |     43395   9.184457   68.28696   15.35872 
           3 |      6507   1.377192    10.2395   11.63523 
           4 |      1145   .2423368   1.801788   13.42479 
           5 |     12501   2.645809   19.67174   9.962067 
-------------+--------------------------------------------
60           |                                            
           2 |     35749   7.566198      68.07   12.65259 
           3 |      4830   1.022259   9.196847   8.636567 
           4 |      1020   .2158808   1.942191    11.9592 
           5 |     10919   2.310983   20.79097   8.701369 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           34.96617  52.87994  58.99268  64.07656  66.79016  68.20368  69.85381  69.78101
3           13.09321  14.89204  14.58892     12.59   11.0608  11.00592  10.47445   9.42802
4                  0         0         0         0         0         0         0         0
5           51.94062  32.22802   26.4184  23.33344  22.14904   20.7904  19.67174  20.79097
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     26400   3.584799   37.29867   8.990662 
           3 |     27707   3.762274   39.14524   9.657069 
           4 |       688    .093422    .972026   12.35189 
           5 |     15985   2.170569   22.58406   10.63356 
-------------+--------------------------------------------
30           |                                            
           2 |     34322    4.66051   39.36912   11.68854 
           3 |     38888   5.280517   44.60656   13.55412 
           4 |       687   .0932862   .7880248   12.33393 
           5 |     13283    1.80367   15.23629   8.836129 
-------------+--------------------------------------------
35           |                                            
           2 |     35343   4.799149   39.44311   12.03625 
           3 |     40529   5.503345   45.23073   14.12608 
           4 |       707    .096002   .7890185     12.693 
           5 |     13026   1.768772   14.53714   8.665168 
-------------+--------------------------------------------
40           |                                            
           2 |     39200   5.322883   42.13332   13.34977 
           3 |     39468   5.359274   42.42138   13.75628 
           4 |       670   .0909778   .7201359   12.02873 
           5 |     13700   1.860293   14.72517   9.113527 
-------------+--------------------------------------------
45           |                                            
           2 |     42591    5.78334   42.14802   14.50459 
           3 |     41117   5.583188   40.68935   14.33102 
           4 |       680   .0923357   .6729275   12.20826 
           5 |     16663   2.262633   16.48969   11.08458 
-------------+--------------------------------------------
50           |                                            
           2 |     43247   5.872416    41.6381     14.728 
           3 |     39014   5.297627   37.56258   13.59804 
           4 |       659   .0894842   .6344836   11.83124 
           5 |     20944    2.84394   20.16483   13.93239 
-------------+--------------------------------------------
55           |                                            
           2 |     40842   5.545847   39.45058   13.90896 
           3 |     35057   4.760314   33.86266   12.21886 
           4 |       752   .1021125   .7263806    13.5009 
           5 |     26876   3.649434   25.96038   17.87848 
-------------+--------------------------------------------
60           |                                            
           2 |     31693   4.303524   36.26284   10.79322 
           3 |     25129   3.412212   28.75237   8.758526 
           4 |       727   .0987178   .8318268   13.05206 
           5 |     29849   4.053131   34.15296   19.85618 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           37.77294  39.73856  39.81066  42.49216  42.49041  41.97167  39.84145   36.7268
3           39.64299  45.02515  45.65221  42.78267  41.01989   37.8635  34.19817  29.12024
4                  0         0         0         0         0         0         0         0
5           22.58406  15.23629  14.53714  14.72517  16.48969  20.16483  25.96038  34.15296
------------------------------------------------------------------------------------------

=> 1990

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     15193   3.843021   27.97356   7.498976 
           3 |      8730   2.208226    16.0738   13.84747 
           4 |       245    .061972   .4510974   6.764219 
           5 |     30144   7.624829   55.50155   23.90996 
-------------+--------------------------------------------
30           |                                            
           2 |     23178   5.862802   41.41147   11.44022 
           3 |     10283   2.601052   18.37234   16.31083 
           4 |       421   .1064906   .7521887   11.62341 
           5 |     22088    5.58709     39.464   17.52001 
-------------+--------------------------------------------
35           |                                            
           2 |     24922   6.303941    48.4977   12.30103 
           3 |      9203    2.32787   17.90885   14.59774 
           4 |       491   .1241969    .955476   13.55605 
           5 |     16772   4.242424   32.63797    13.3034 
-------------+--------------------------------------------
40           |                                            
           2 |     27426    6.93732   53.28023   13.53695 
           3 |      9025   2.282845   17.53278    14.3154 
           4 |       525   .1327971   1.019913   14.49475 
           5 |     14499   3.667476   28.16707   11.50048 
-------------+--------------------------------------------
45           |                                            
           2 |     26741   6.764051   56.61867   13.19885 
           3 |      7926   2.004857   16.78171   12.57217 
           4 |       441   .1115496   .9337286   12.17559 
           5 |     12122   3.066221   25.66589   9.615064 
-------------+--------------------------------------------
50           |                                            
           2 |     28470   7.201396   61.07214   14.05225 
           3 |      6685    1.69095   14.34026   10.60371 
           4 |       444   .1123084   .9524422   12.25842 
           5 |     11018   2.786968   23.63515   8.739381 
-------------+--------------------------------------------
55           |                                            
           2 |     29239   7.395912   63.71957   14.43181 
           3 |      5960   1.507563   12.98843   9.453715 
           4 |       486   .1229322   1.059123     13.418 
           5 |     10202   2.580564   22.23288   8.092137 
-------------+--------------------------------------------
60           |                                            
           2 |     27432   6.938837   64.60517   13.53991 
           3 |      5232   1.323418    12.3219   8.298966 
           4 |       569   .1439267   1.340053   15.70955 
           5 |      9228   2.334193   21.73288   7.319569 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           28.26004   41.9325   49.1955  54.04762  57.33892  61.84347  64.59936  65.73058
3           16.23841   18.6035  18.16653  17.78531  16.99519  14.52138  13.16776  12.53654
4                  0         0         0         0         0         0         0         0
5           55.50155    39.464  32.63797  28.16707  25.66589  23.63515  22.23288  21.73288
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     22211   3.520883    35.5285   10.41464 
           3 |     24236   3.841886   38.76768   8.673278 
           4 |       243   .0385203   .3887005   9.360555 
           5 |     15826   2.508734   25.31512   11.67626 
-------------+--------------------------------------------
30           |                                            
           2 |     25603   4.058583   37.01139   12.00514 
           3 |     31041   4.920613    44.8725   11.10857 
           4 |       294   .0466048   .4250029   11.32512 
           5 |     12238   1.939965   17.69111   9.029069 
-------------+--------------------------------------------
35           |                                            
           2 |     26163   4.147354   36.27201   12.26772 
           3 |     33712    5.34402   46.73783   12.06443 
           4 |       329    .052153   .4561209   12.67334 
           5 |     11926   1.890507   16.53404   8.798879 
-------------+--------------------------------------------
40           |                                            
           2 |     27438   4.349466   33.61347   12.86556 
           3 |     39967   6.335561   48.96237   14.30289 
           4 |       319   .0505678   .3907973   12.28814 
           5 |     13904   2.204059   17.03337   10.25823 
-------------+--------------------------------------------
45           |                                            
           2 |     26650   4.224553   32.67373   12.49607 
           3 |     39711    6.29498   48.68692   14.21128 
           4 |       273   .0432759   .3347065   10.51618 
           5 |     14930   2.366701   18.30464    11.0152 
-------------+--------------------------------------------
50           |                                            
           2 |     28092   4.453138   33.71822   13.17222 
           3 |     38305   6.072101   45.97667   13.70812 
           4 |       329    .052153   .3948916   12.67334 
           5 |     16588   2.629527   19.91022   12.23845 
-------------+--------------------------------------------
55           |                                            
           2 |     29021   4.600403   32.35196   13.60782 
           3 |     38679   6.131388   43.11848   13.84196 
           4 |       390   .0618227   .4347632   15.02311 
           5 |     21614   3.426247    24.0948   15.94658 
-------------+--------------------------------------------
60           |                                            
           2 |     28089   4.452663   30.93366   13.17081 
           3 |     33782   5.355116   37.20321   12.08948 
           4 |       419   .0664198   .4614334   16.14022 
           5 |     28514   4.520034    31.4017   21.03733 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           35.71438  37.20349  36.47132  33.77254  32.80814   33.8853  32.53833  31.14315
3            38.9705   45.1054  46.99465  49.19408  48.88721  46.20448  43.36687  37.45515
4                  0         0         0         0         0         0         0         0
5           25.31512  17.69111  16.53404  17.03337  18.30464  19.91022   24.0948   31.4017
------------------------------------------------------------------------------------------

=> 2000

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |      9525   2.722767   29.85425    5.39153 
           3 |      5658   1.617366    17.7339   8.879612 
           4 |       698   .1995266   2.187745   7.057634 
           5 |     16024   4.580537    50.2241   16.09595 
-------------+--------------------------------------------
30           |                                            
           2 |     16636    4.75548   39.98846   9.416639 
           3 |      8920   2.549824   21.44128   13.99896 
           4 |      1112   .3178705   2.672948   11.24368 
           5 |     14934   4.268955   35.89731   15.00105 
-------------+--------------------------------------------
35           |                                            
           2 |     23505   6.719016   46.82737   13.30477 
           3 |     10423   2.979464   20.76502   16.35776 
           4 |      1499   .4284963   2.986353   15.15672 
           5 |     14768   4.221503   29.42126   14.83431 
-------------+--------------------------------------------
40           |                                            
           2 |     25413   7.264427   51.17914   14.38477 
           3 |      9524   2.722481   19.18034   14.94688 
           4 |      1554   .4442183   3.129594   15.71284 
           5 |     13164   3.762992   26.51093   13.22311 
-------------+--------------------------------------------
45           |                                            
           2 |     25210   7.206399   53.80085   14.26987 
           3 |      8574   2.450919   18.29784   13.45596 
           4 |      1358   .3881908   2.898118   13.73104 
           5 |     11716   3.349074    25.0032   11.76861 
-------------+--------------------------------------------
50           |                                            
           2 |     26765   7.650903   55.98435   15.15006 
           3 |      8184   2.339435   17.11847   12.84389 
           4 |      1347   .3850464    2.81752   13.61982 
           5 |     11512    3.29076   24.07965   11.56369 
-------------+--------------------------------------------
55           |                                            
           2 |     25034   7.156088   58.79286   14.17024 
           3 |      6954   1.987834   16.33161   10.91354 
           4 |      1158   .3310198   2.719587    11.7088 
           5 |      9434   2.696754   22.15594   9.476359 
-------------+--------------------------------------------
60           |                                            
           2 |     24578   7.025738   62.65902   13.91213 
           3 |      5482   1.567056   13.97578   8.603399 
           4 |      1164   .3327349   2.967495   11.76946 
           5 |      8001   2.287124   20.39771   8.036925 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           31.22673  41.72845  48.89629  53.45559  55.96345   58.1421  60.92123  65.08534
3           18.54917  22.37424  21.68245  20.03349  19.03335  17.77825  16.92283  14.51696
4                  0         0         0         0         0         0         0         0
5            50.2241  35.89731  29.42126  26.51093   25.0032  24.07965  22.15594  20.39771
------------------------------------------------------------------------------------------

ALTC         |                                            
         HOM |      e(b)     e(pct)  e(colpct)  e(rowpct) 
-------------+--------------------------------------------
25           |                                            
           2 |     14778   2.690573   36.62998    7.94038 
           3 |     13043   2.374688   32.32947   5.904696 
           4 |      1013    .184433   2.510906   9.410125 
           5 |     11510   2.095581   28.52965    8.75405 
-------------+--------------------------------------------
30           |                                            
           2 |     21293   3.876734   37.47448   11.44096 
           3 |     21553   3.924071   37.93207   9.757257 
           4 |      1377   .2507051   2.423442   12.79145 
           5 |     12597   2.293487   22.17001   9.580779 
-------------+--------------------------------------------
35           |                                            
           2 |     25793   4.696032    36.3026   13.85886 
           3 |     28804   5.244233   40.54046   13.03986 
           4 |      1630   .2967678   2.294159   15.14166 
           5 |     14823   2.698766   20.86277   11.27379 
-------------+--------------------------------------------
40           |                                            
           2 |     26073    4.74701   35.54795   14.00931 
           3 |     30267   5.510595   41.26605   13.70217 
           4 |      1510   .2749198   2.058735   14.02694 
           5 |     15496   2.821297   21.12726   11.78564 
-------------+--------------------------------------------
45           |                                            
           2 |     25580   4.657251   34.36694   13.74441 
           3 |     30885   5.623112   41.49425   13.98195 
           4 |      1380   .2512512   1.854041   12.81932 
           5 |     16587   3.019931   22.28477   12.61542 
-------------+--------------------------------------------
50           |                                            
           2 |     26122   4.755931   32.27289   14.03563 
           3 |     34851   6.345186   43.05729   15.77739 
           4 |      1313   .2390528   1.622169   12.19693 
           5 |     18655   3.396444   23.04765   14.18825 
-------------+--------------------------------------------
55           |                                            
           2 |     23776   4.328804   30.43562    12.7751 
           3 |     33138   6.033307    42.4199    15.0019 
           4 |      1278   .2326805   1.635966   11.87181 
           5 |     19927   3.628032   25.50852   15.15569 
-------------+--------------------------------------------
60           |                                            
           2 |     22697   4.132355   30.58936   12.19534 
           3 |     28351   5.161757   38.20941   12.83478 
           4 |      1264   .2301316   1.703527   11.74176 
           5 |     21887   3.984881    29.4977   16.64639 

------------------------------------------------------------------------------------------
                  25        30        35        40        45        50        55        60
------------------------------------------------------------------------------------------
2           37.96373  38.67885  37.38642  36.50069  35.20686  32.96786  31.11905  31.34678
3           33.50663  39.15114   41.7508  42.37205  42.50837  43.98449  43.37243  39.15551
4                  0         0         0         0         0         0         0         0
5           28.52965  22.17001  20.86277  21.12726  22.28477  23.04765  25.50852   29.4977
------------------------------------------------------------------------------------------

. local plots

. foreach s in m f {
  2.     foreach o in 1 2 3 5 {
  3.         if `o'==1 {
  4.             local plots `plots' _skip _skip _skip (`s'2000, keep(*:2) trans(*=0)) ||
  5.             continue
  6.         }
  7.         local plots `plots' ///
>             (`s'1970, keep(*:`o') lp(shortdash) label(1970)) ///
>             (`s'1980, keep(*:`o') lp(dash)      label(1980)) ///
>             (`s'1990, keep(*:`o') lp(longdash)  label(1990)) ///
>             (`s'2000, keep(*:`o') lp(solid)     label(2000)) ||
  8.     }
  9. }

. coefplot `plots', at(_eq) b(colpct2) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)80, gmax angle(hor)) ///
>       bylabels("Higher than partner" "Same as partner" "Lower than partner" "No partner" ///
>                "Higher than partner" "Same as partner" "Lower than partner" "No partner") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(205 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(205 42.5 "Women", size(medlarge))
Figure 8: Educational homogamy: low education (including people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Higher than partner Same as partner Lower than partner No partner Higher than partner Same as partner Lower than partner No partner 2000 1990 1980 1970

Decomposition of structural effects

N = Number of observations; Nij = Number obs of in cell ij; Ni. = Row margins; H.j Column margins

Total homogamy:
$$H = \frac{\sum_j N_{jj}}{N}$$

Chance homogamy:
$$H^c = \frac{\sum_j \frac{N_{j.}N_{.j}}{N}}{N}$$

Maximum possible homogamy given the marginals:
$$H^m = \frac{N - \frac{\sum_j |N_{j.}-N_{.j}|}{2}}{N}$$

Relative homogamy:
$$H^r = \frac{H-H^c}{H^m-H^c}$$

Hc reflects the level of homogamy that would occur of partners are matched by chance. Hm is the maximum possible homogamy given the marginal distributions of educational levels of the partners. Hr is difference between observed homogamy and chance homogamy relative to the maximum possible difference. It reflects the proportion of potential homogamy that has been realized. NOTE: All these definitions are conditional on the educational distributions of matched partners. That is, they do not take unmatched partners into account. A better approach would be to use the educational distributions of all potential partners including singles. A problem, however, is to determine who the potential partners would be. Maybe use a weighted educational distribution of all observations where the weights are determined by the distribution age groups among existing partners (i.e. assumption that pool of potential partners has same age distribution as the realized partners).

5.1  Overall results

Results are displayed in figure 9.

. capt prog drop hdecomp

. prog hdecomp, eclass
  1.     syntax varlist [if] [in] [fw], over(varname)
  2.     marksample touse
  3.     markout `touse' `over'
  4.     summarize `touse' if `touse' [`weight'`exp'], meanonly
  5.     local N = r(N)
  6.     qui levelsof `over' if `touse'
  7.     local levels `"`r(levels)'"'
  8.     local nover: list sizeof levels
  9.     tempname H F C R
 10.     matrix `H' = J(`nover', 4, .)
 11.     matrix rown `H' = `levels'
 12.     matrix coln `H' = H Hc Hm Hr
 13.     local i 0
 14.     foreach l of local levels {
 15.         local ++i
 16.         qui tab `varlist' if `touse' & `over'==`l' [`weight'`exp'], matcell(`F')
 17.         assert (r(r)==5 & r(c)==5) // make sure table is complete
 18.         mat `R' = `F' * J(r(c),1,1)
 19.         mat `C' = J(1,r(r),1) * `F'
 20.         mat `H'[`i', 1] = trace(`F')/r(N) * 100
 21.         mat `H'[`i', 2] = 0
 22.         forv j = 1/`r(r)' {
 23.             mat `H'[`i', 2] = `H'[`i', 2] + `C'[1,`j']*`R'[`j',1]/r(N)
 24.         }
 25.         mat `H'[`i', 2] = `H'[`i', 2] / r(N) * 100
 26.         mat `H'[`i', 3] = 0
 27.         forv j = 1/`r(r)' {
 28.             mat `H'[`i', 3] = `H'[`i', 3] + abs(`C'[1,`j']-`R'[`j',1])
 29.         }
 30.         mat `H'[`i', 3] = (r(N) - `H'[`i', 3] / 2) / r(N) * 100
 31.         mat `H'[`i', 4] = (`H'[`i', 1] - `H'[`i', 2]) / (`H'[`i', 3] - `H'[`i', 2]) * 100
 32.     }
 33.     eret post [`weight'`exp'], obs(`N') esample(`touse')
 34.     eret local cmd "hdecomp"
 35.     eret local depvar "`varlist'"
 36.     eret local over "`over'"
 37.     eret local over_values `"`levels'"'
 38.     tempname tmp
 39.     matrix `tmp' = `H'[1..., 1]'
 40.     eret matrix H = `tmp'       // total homogamy (%)
 41.     matrix `tmp' = `H'[1..., 2]'
 42.     eret matrix Hc = `tmp'      // chance homogamy (%)
 43.     matrix `tmp' = `H'[1..., 3]'
 44.     eret matrix Hm = `tmp'      // maximim homogamy (%)
 45.     matrix `tmp' = `H'[1..., 4]'
 46.     eret matrix Hr = `tmp'      // relative homogamy (%)
 47.     mat list `H'
 48. end

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     hdecomp EDUC PEDUC if GESL==1 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC)
  4.     eststo m`y'
  5.     hdecomp EDUC PEDUC if GESL==2 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC)
  6.     eststo f`y'
  7. }

=> 1970

__000001[8,4]
            H         Hc         Hm         Hr
25  47.124841  32.404737  72.708367  36.523022
30  47.568653  32.333907  73.071458  37.397305
35  47.391498  32.762498  71.545531  37.720103
40  46.084384   32.18732  69.364824  37.380302
45  46.720667  32.661637   70.37153  37.282073
50  46.141401  32.829581  68.527598  37.290084
55  46.466497  33.612457  66.641245  38.917687
60  47.192368  34.660489  66.176699   39.76328

__000001[8,4]
            H         Hc         Hm         Hr
25  46.897383  31.536281  73.531202  36.578477
30  46.800557  31.622776  72.124179  37.474704
35  46.074423  32.192199  68.995447  37.720107
40  46.465946   32.64447  69.919756  37.079464
45  46.068518  32.434513   68.79773  37.493946
50  46.695145  33.389187  68.599414   37.79004
55  46.828324  34.199725  66.634854  38.934941
60  48.163352  35.607956  66.125713  41.141282

=> 1980

__000001[8,4]
            H         Hc         Hm         Hr
25  51.921728  34.492387  80.347042  38.009971
30  49.022494  31.047361  77.878306  38.383025
35  47.254358   29.85219  76.139575  37.595921
40  48.825223  30.860897  75.588632  40.163728
45  49.595329  32.206037  73.693487  41.914584
50  49.801666  33.026359  73.464145  41.484236
55  51.603924  34.571184  74.318199  42.852879
60  51.992572  35.480987  73.072418  43.923801

__000001[8,4]
            H         Hc         Hm         Hr
25  50.867645  32.405776  79.658742  39.070285
30  48.305026  30.150024   77.47392  38.363287
35  47.285233  29.481736   76.39608  37.948942
40  48.915141  30.917161  74.939097  40.884118
45   49.74644  32.875545  73.224916  41.812041
50  50.500268  34.052447  72.803093  42.445281
55  51.343621  34.839842  72.276903  44.084067
60  53.524521  36.744044  73.010917  46.269434

=> 1990

__000001[8,4]
            H         Hc         Hm         Hr
25  57.649818   40.91398  87.808817  35.688018
30  52.644254  35.168909  83.228767  36.361623
35  50.696607   33.25252   81.79807  35.933442
40  49.422674  33.429741  80.627882  33.884667
45  48.316505  33.348472  78.428982  33.202892
50  49.068801  33.585112  76.480812  36.096134
55  48.839106   34.15869  73.616689  37.205172
60  48.446189  34.085511  72.784485  37.108677

__000001[8,4]
            H         Hc         Hm         Hr
25  55.251194  38.093899  85.740856  36.009214
30  51.491207  33.983772  83.181663  35.585742
35  50.035314  32.732981  82.001454   35.11847
40  48.793331  33.026106  79.754745  33.742101
45  48.242353  33.241897  78.461323  33.172592
50  48.882562  33.623075  75.410908  36.516577
55  48.739725  34.328591  72.759447  37.498861
60  49.933115  34.850187  72.146221  40.441104

=> 2000

__000001[8,4]
            H         Hc         Hm         Hr
25   53.75855  32.283809  88.338857  38.310093
30  50.685048  29.411534  82.524777  40.053125
35  49.280089  27.901788  80.982619  40.274994
40  48.825731  27.852532   80.86417  39.563386
45   48.46385  28.220759  80.955285  38.386788
50  48.106886  29.278867  79.489235  37.498269
55  47.115052  29.547039  77.355298  36.746816
60   48.49286  30.333096  76.550741  39.291843

__000001[8,4]
            H         Hc         Hm         Hr
25  52.468506  30.262427  85.600183  40.128261
30   50.49724  28.644201  82.735123  40.400566
35     48.945  27.966024  81.450962  39.224081
40  48.432327  27.941678  81.195015  38.477681
45  48.505965  28.395178  81.020876  38.214765
50  47.947806  29.386671  78.864262  37.514226
55  47.382387  29.681485  77.498846  37.017731
60  48.332467  30.416731  75.181546  40.021914

. local plots

. foreach s in m f {
  2.     foreach o in H Hc Hm Hr {
  3.         local trans
  4.         if "`o'"=="Hm" local trans transform(* = 100-@)
  5.         local plots `plots' ///
>             (`s'1970, b(`o') `trans' lp(shortdash) label(1970)) ///
>             (`s'1980, b(`o') `trans' lp(dash)      label(1980)) ///
>             (`s'1990, b(`o') `trans' lp(longdash)  label(1990)) ///
>             (`s'2000, b(`o') `trans' lp(solid)     label(2000)) ||
  6.     }
  7. }

. coefplot `plots', at(_coef) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)90, gmax angle(hor)) ///
>       bylabels("Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy" ///
>                "Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(230 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(230 42.5 "Women", size(medlarge))
Figure 9: Homogamy decomposition (excluding people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy 2000 1990 1980 1970

5.2  High education

Results are displayed in figure 10.

. capt prog drop hdecomp2

. prog hdecomp2, eclass
  1.     syntax varlist [if] [in] [fw], over(varname) target(str)
  2.     marksample touse
  3.     markout `touse' `over'
  4.     summarize `touse' if `touse' [`weight'`exp'], meanonly
  5.     local N = r(N)
  6.     qui levelsof `over' if `touse'
  7.     local levels `"`r(levels)'"'
  8.     local nover: list sizeof levels
  9.     tempname H F C R
 10.     matrix `H' = J(`nover', 4, .)
 11.     matrix rown `H' = `levels'
 12.     matrix coln `H' = H Hc Hm Hr
 13.     local i 0
 14.     foreach l of local levels {
 15.         local ++i
 16.         qui tab `varlist' if `touse' & `over'==`l' [`weight'`exp'], matcell(`F')
 17.         assert (r(r)==5 & r(c)==5) // make sure table is complete
 18.         mat `R' = `F' * J(r(c),1,1)
 19.         mat `C' = J(1,r(r),1) * `F'
 20.         local Nsub 0
 21.         foreach t of local target {
 22.             local Nsub = `Nsub' + `R'[`t',1]
 23.         }
 24.         mat `H'[`i', 1] = 0
 25.         foreach t of local target {
 26.             mat `H'[`i', 1] = `H'[`i', 1] + `F'[`t', `t']
 27.         }
 28.         mat `H'[`i', 1] = `H'[`i', 1] / `Nsub' * 100
 29.         mat `H'[`i', 2] = 0
 30.         foreach t of local target {
 31.             mat `H'[`i', 2] = `H'[`i', 2] + `C'[1,`t']*`R'[`t',1]/r(N)
 32.         }
 33.         mat `H'[`i', 2] = `H'[`i', 2] / `Nsub' * 100
 34.         
.         mat `H'[`i', 3] = 0
 35.         foreach t of local target {
 36.             mat `H'[`i', 3] = `H'[`i', 3] + max(`R'[`t',1]-`C'[1,`t'], 0)
 37.         }
 38.         mat `H'[`i', 3] = 100 - `H'[`i', 3] / `Nsub' * 100
 39.         mat `H'[`i', 4] = (`H'[`i', 1] - `H'[`i', 2]) / (`H'[`i', 3] - `H'[`i', 2]) * 100
 40.     }
 41.     eret post [`weight'`exp'], obs(`N') esample(`touse')
 42.     eret local cmd "hdecomp"
 43.     eret local depvar "`varlist'"
 44.     eret local over "`over'"
 45.     eret local over_values `"`levels'"'
 46.     eret local target `"`target'"'
 47.     tempname tmp
 48.     matrix `tmp' = `H'[1..., 1]'
 49.     eret matrix H = `tmp'       // total homogamy (%)
 50.     matrix `tmp' = `H'[1..., 2]'
 51.     eret matrix Hc = `tmp'      // chance homogamy (%)
 52.     matrix `tmp' = `H'[1..., 3]'
 53.     eret matrix Hm = `tmp'      // maximim homogamy (%)
 54.     matrix `tmp' = `H'[1..., 4]'
 55.     eret matrix Hr = `tmp'      // relative homogamy (%)
 56.     mat list `H'
 57. end

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     hdecomp2 EDUC PEDUC if GESL==1 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(4 5)
  4.     eststo m`y'
  5.     hdecomp2 EDUC PEDUC if GESL==2 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(4 5)
  6.     eststo f`y'
  7. }

=> 1970

__000001[8,4]
            H         Hc         Hm         Hr
25  11.492964  2.3749409  33.088524  29.687266
30  11.526978  2.2901524  29.395685  34.077268
35  10.235862  1.9807541  27.807121  31.963875
40  9.2964939  1.9765513  25.814982  30.706478
45  9.1444115  1.9566236  26.978239  28.726314
50  8.2952967  1.7410742  27.227625  25.716397
55  8.4026223  1.5513161  28.629677  25.301776
60  7.7134146   1.328505  28.231707  23.732898

__000001[8,4]
            H         Hc         Hm         Hr
25  36.656191  7.8896707        100  31.230504
30    38.8166  7.8874099        100  33.577593
35   36.27401  7.4254299        100  31.162532
40  34.343066   7.252114        100  29.209239
45  31.994866  6.7542273        100  27.068936
50  29.332969  5.7823054        100  24.996009
55  28.401585  5.0380088        100  24.603082
60  28.664659  4.6544358        100  25.182318

=> 1980

__000001[8,4]
            H         Hc         Hm         Hr
25  13.051054  2.4034352  29.273393  39.626483
30  14.098791  2.8966964  27.096689  46.289662
35  13.498866  3.0245308  25.555556    46.4885
40  13.181777  2.6430417  25.033696  47.067565
45  11.454255  2.1416847  23.263738  44.089326
50  10.991902  1.9629569  22.370206  44.243813
55  11.134331  1.8602541  23.517691  42.821675
60  10.196052  1.6194355  22.712163  40.661485

__000001[8,4]
            H         Hc         Hm         Hr
25   47.07236  9.3163376        100  41.634867
30   52.51985  11.326539        100  46.455061
35  52.974108  12.059101        100  46.525573
40  51.129593  10.478215        100  45.409481
45  47.439112  8.9142869        100  42.295134
50  47.313402  8.0723222        100  42.686904
55   46.31678  7.4457765        100  41.998088
60  44.978838  6.4758241        100  41.169049

=> 1990

__000001[8,4]
            H         Hc         Hm         Hr
25  13.530291  3.8587742  36.655554  29.489226
30  15.917221  4.8188967   35.81981  35.799991
35  16.127532  4.9299673  34.650942  37.675631
40  14.625887  4.4728551  31.802298  37.150526
45  13.677289  4.1187549  28.901038  38.570029
50  12.262447  3.3243282  26.360622   38.80016
55  10.138709   2.665178  23.457406  35.943866
60  9.3457573  2.3441803  21.340206  36.858115

__000001[8,4]
            H         Hc         Hm         Hr
25  39.910714  11.835679        100  31.843987
30  44.528192  13.709173        100  35.715291
35  45.921868  14.229427        100   36.95025
40  47.082424  14.262327        100  38.279668
45  46.883264  14.197547        100  38.094152
50  45.691288  12.445794        100  37.971327
55  43.519202  11.212118        100  36.386817
60  43.443643  10.115766        100  37.078668

=> 2000

__000001[8,4]
            H         Hc         Hm         Hr
25  23.978611  6.6932454  53.459356  36.961306
30  25.370474  8.5357643  49.559625  41.036385
35  24.307948  8.3837443  47.005912  41.230736
40  22.466241  7.4872435  44.111677   40.89892
45  20.956739  6.5966059  41.118196  41.597544
50  18.881703   5.687444  37.458218  41.529549
55  17.151863  5.1121231  33.574928  42.299908
60   15.56989  4.2128215  30.630844  42.989851

__000001[8,4]
            H         Hc         Hm         Hr
25  47.327797  14.589731        100  38.330363
30  51.002119  17.443783        100  40.649071
35  50.706164  17.418122        100  40.309137
40   50.49892  16.602154        100  40.644654
45  51.636643  15.714596        100  42.619534
50  51.574934  15.239929        100  42.868068
55  51.950078  15.174101        100  43.354656
60  52.321867  13.732497        100  44.732221

. local plots

. foreach s in m f {
  2.     foreach o in H Hc Hm Hr {
  3.         local trans
  4.         if "`o'"=="Hm" local trans transform(* = 100-@)
  5.         local plots `plots' ///
>             (`s'1970, b(`o') `trans' lp(shortdash) label(1970)) ///
>             (`s'1980, b(`o') `trans' lp(dash)      label(1980)) ///
>             (`s'1990, b(`o') `trans' lp(longdash)  label(1990)) ///
>             (`s'2000, b(`o') `trans' lp(solid)     label(2000)) ||
  6.     }
  7. }

. coefplot `plots', at(_coef) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)90, gmax angle(hor)) ///
>       bylabels("Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy" ///
>                "Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(230 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(230 42.5 "Women", size(medlarge))
Figure 10: Homogamy decomposition: high education (excluding people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy 2000 1990 1980 1970

5.3  Medium education

Results are displayed in figure 11.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     hdecomp2 EDUC PEDUC if GESL==1 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(2 3)
  4.     eststo m`y'
  5.     hdecomp2 EDUC PEDUC if GESL==2 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(2 3)
  6.     eststo f`y'
  7. }

=> 1970

__000001[8,4]
            H         Hc         Hm         Hr
25   40.11546   30.52457  68.831547  25.036928
30  36.997486  27.286817  69.219532  23.157739
35  35.336839  25.804008  65.745737  23.866848
40  34.352405  25.770235  63.970981  22.465973
45  34.129601  25.396497  64.319345  22.436961
50   33.66007  25.368921   60.78876  23.408206
55  32.959937  24.673226  56.043123  26.416124
60  31.288834  22.980494  53.059687  27.621553

__000001[8,4]
            H         Hc         Hm         Hr
25  50.637508  37.925386  91.136281  23.890075
30   48.81663  35.898647  91.995546   23.02798
35  49.885479  36.933909  92.658897  23.241944
40  50.557193  38.039545   93.55435  22.548305
45  51.120877  38.349356  93.488695  23.162267
50  53.546971  40.116259  93.373843  25.218404
55  55.061546  40.840135  93.965447  26.769559
60  55.260191  39.614398  93.836061  28.855243

=> 1980

__000001[8,4]
            H         Hc         Hm         Hr
25   54.78201  42.868832  86.758893  27.143224
30  50.806084  39.201491  88.538725  23.520964
35  47.991005  37.098067  88.134092  21.343625
40   43.93906  32.789949  82.581987  22.391353
45  40.814769    29.7798  75.283401  24.250759
50  37.981425  27.268628  72.847192  23.504025
55  36.333836  24.859176  70.445158  25.171466
60  34.908945  23.437279  66.022739  26.937988

__000001[8,4]
            H         Hc         Hm         Hr
25  52.511987  40.101983  87.443541  26.213762
30  48.823314  37.408545  87.769597  22.665868
35  47.163475  36.061196  88.517687  21.164738
40  47.656173  35.040229  89.903947  22.995058
45  48.387631  34.899401  90.430131  24.289668
50  47.460945  33.392338   90.22552  24.754214
55  47.381367  32.172238  90.189382  26.214888
60  49.875751  32.124195  90.263685    30.5327

=> 1990

__000001[8,4]
            H         Hc         Hm         Hr
25  69.466452  57.050745        100  28.907852
30  64.494606  52.026815        100  25.989083
35  61.124587  49.025897        100  23.734975
40  58.366433  48.151551   98.72355  20.198691
45  56.120764  47.250577  96.122684  18.149794
50  51.977867  43.003166  88.819972   19.58823
55   48.30992  39.796725  81.027865  20.647489
60  45.757048  37.527341  79.073957   19.80837

__000001[8,4]
            H         Hc         Hm         Hr
25  59.877925  48.694969  89.105188  27.673583
30  55.403388  44.468755  88.871952  24.625778
35  54.000621  43.468693  91.025332  22.146073
40  53.918742  44.758202  92.694598  19.109779
45  53.857139  45.287852   93.77956  17.671654
50  55.322105   45.68861  94.690401  19.659477
55  55.943299  45.814956  95.099548  20.550728
60  56.563297  44.721499  95.741966  23.209898

=> 2000

__000001[8,4]
            H         Hc         Hm         Hr
25  64.021077  46.970406        100  32.153124
30  63.797017  46.646459        100  32.145116
35  61.201031  44.012838        100  30.700239
40  58.827774  42.496433        100   28.40057
45  56.635093  41.601125        100  25.743591
50  54.859193  41.600785  97.062805  23.905383
55  53.086895  41.254669  94.884264  22.062868
60  50.316789  38.122831  90.275955  23.381069

__000001[8,4]
            H         Hc         Hm         Hr
25  53.451644  38.287129  83.825113  33.300806
30  50.636964  36.395317  80.649703  32.181323
35   49.17075  35.661394  81.991758  29.158752
40  48.977698  35.852695  85.254036   26.56811
45  49.671005  36.687781  89.250726  24.700335
50  50.661659  38.702405  90.748923   22.97801
55  50.729477  39.102351  91.869876  22.034623
60  51.486037  38.951082  92.804752  23.275954

. local plots

. foreach s in m f {
  2.     foreach o in H Hc Hm Hr {
  3.         local trans
  4.         if "`o'"=="Hm" local trans transform(* = 100-@)
  5.         local plots `plots' ///
>             (`s'1970, b(`o') `trans' lp(shortdash) label(1970)) ///
>             (`s'1980, b(`o') `trans' lp(dash)      label(1980)) ///
>             (`s'1990, b(`o') `trans' lp(longdash)  label(1990)) ///
>             (`s'2000, b(`o') `trans' lp(solid)     label(2000)) ||
  6.     }
  7. }

. coefplot `plots', at(_coef) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)90, gmax angle(hor)) ///
>       bylabels("Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy" ///
>                "Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(230 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(230 42.5 "Women", size(medlarge))
Figure 11: Homogamy decomposition: medium education (excluding people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy 2000 1990 1980 1970

5.4  Low education

Results are displayed in figure 12.

. foreach y in 1970 1980 1990 2000 {
  2.     di _n as res "=> `y'"
  3.     hdecomp2 EDUC PEDUC if GESL==1 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(1)
  4.     eststo m`y'
  5.     hdecomp2 EDUC PEDUC if GESL==2 & EDUC>0 & PEDUC>0 & ZJHR==`y' ///
>         [fw=POP], over(ALTC) target(1)
  6.     eststo f`y'
  7. }

=> 1970

__000001[8,4]
            H         Hc         Hm         Hr
25  79.613638  50.703898        100  58.645084
30  82.540675  54.992528        100   61.20794
35  83.683029   57.67935        100  61.444422
40  84.907642  58.265413        100   63.83729
45  84.959153  58.732246        100  63.553028
50  85.139704  59.602355        100  63.214945
55  85.460214  61.749467        100  61.988017
60  86.404699   64.65283        100  61.537793

__000001[8,4]
            H         Hc         Hm         Hr
25  44.526249  28.052292  55.493431  60.033795
30  45.950924  30.365315  55.218955  62.709565
35  44.279724  30.746428  52.100805  63.374813
40  44.554332  30.709596  52.640135  63.129939
45  43.843411  30.432186  51.377534  64.029612
50  43.390348  30.723172  51.490279  60.996345
55  43.226336   31.92895  50.484199  60.885119
60  45.462688  34.718772  52.075936  61.899026

=> 1980

__000001[8,4]
            H         Hc         Hm         Hr
25  72.756187  34.187227        100  58.604064
30  78.026263  37.731213        100  64.711474
35  80.173136  40.438236        100  66.712094
40  83.578238  48.014474        100  68.410897
45  85.792338  53.398392        100  69.512508
50   86.10532  56.816064        100  67.824423
55  86.960442  59.933075        100  67.455557
60  88.097292  62.531067        100  68.233127

__000001[8,4]
            H         Hc         Hm         Hr
25  48.792208  23.461811  64.294823  62.034113
30  46.881574  22.938378  59.199563  66.029822
35  46.582402  23.766882  57.474431  67.686678
40  49.829664  29.272521   58.80663  69.604749
45  50.880442  33.014185  59.029006  68.677224
50  52.572908  35.972952  60.402864  67.949308
55  53.810986  37.845125  60.842699  69.424109
60  55.775932   40.48419  62.979128  67.978591

=> 1990

__000001[8,4]
            H         Hc         Hm         Hr
25  63.507921  23.611705        100   52.22818
30  69.268701  26.438311        100  58.223772
35  73.031502  29.280285        100  61.865658
40  75.240734   32.79341        100  63.159467
45  77.136758  35.682448        100  64.452562
50  80.984213  43.100662        100   66.57995
55  83.067701  48.537204        100   67.09798
60  83.982366  51.750022        100  66.802815

__000001[8,4]
            H         Hc         Hm         Hr
25  47.820096  18.280201  72.370659  54.612026
30  45.199845  17.711794  64.185086   59.14806
35  43.696033  17.972956  58.650522   63.23652
40  40.706179  18.247974  53.160745  64.326619
45   40.15913  19.116831  51.373548  65.233852
50   42.30914  23.240401  51.386358  67.749481
55  42.867061  26.147785  51.072378  67.079433
60  45.399299  29.079121  52.701589  69.087522

=> 2000

__000001[8,4]
            H         Hc         Hm         Hr
25  62.734637  21.220882        100  52.696395
30  65.096259  20.591387        100  56.045397
35  69.279062  23.639434        100  59.768582
40  72.739503  27.396764        100  62.452779
45  74.621122  30.609914        100  63.425787
50  76.583021  34.400053        100  64.303357
55  78.260598  37.188017        100  65.389721
60   81.76314  43.707444        100  67.603426

__000001[8,4]
            H         Hc         Hm         Hr
25  53.118148  17.814524  80.971209  55.898476
30  49.696588  16.189215  74.469029   57.49396
35  47.242522   16.89004  67.838892  59.574418
40  46.277955  18.077589  63.388356  62.237671
45    45.3024  19.307754  59.621004  64.481642
50  42.841914  19.753654  54.945632  65.606599
55   41.77531  20.371501  52.740978  66.123432
60  44.462075   24.32447  53.149976  69.860368

. local plots

. foreach s in m f {
  2.     foreach o in H Hc Hm Hr {
  3.         local trans
  4.         if "`o'"=="Hm" local trans transform(* = 100-@)
  5.         local plots `plots' ///
>             (`s'1970, b(`o') `trans' lp(shortdash) label(1970)) ///
>             (`s'1980, b(`o') `trans' lp(dash)      label(1980)) ///
>             (`s'1990, b(`o') `trans' lp(longdash)  label(1990)) ///
>             (`s'2000, b(`o') `trans' lp(solid)     label(2000)) ||
  6.     }
  7. }

. coefplot `plots', at(_coef) recast(line) noci xti("") yti("") ///
>       xlabel($xlab, angle(45) grid) ylabel(0(10)90, gmax angle(hor)) ///
>       bylabels("Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy" ///
>                "Observed homogamy" "Chance homogamy" "Minimal heterogamy" "Relative homogamy") ///
>       byopts(scale(*.8) colf cols(2) comp legend(pos(2)) graphr(m(l=0 b=0 r=0 t=4))) ///
>       legend(order(4 3 2 1) size(small) stack keyg(0) cols(1) reg(sty(none))) ///
>       ysize(7)

. addplot 2: , norescaling text(230 42.5 "Men"  , size(medlarge))

. addplot 6: , norescaling text(230 42.5 "Women", size(medlarge))
Figure 12: Homogamy decomposition: low education (excluding people without partner)
Stata Graph - Graph Men Women 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 0 10 20 30 40 50 60 70 80 90 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy Observed homogamy Chance homogamy Minimal heterogamy Relative homogamy 2000 1990 1980 1970