-------------
       log:  E:\partiesdata\jop02rep.smcl
  log type:  smcl
 opened on:   2 Aug 2002, 16:01:06

. *This log file replicates the results of Dan Reiter and Erik R. Tillman, "Public, Legislative, and Executive
. *Constraints on the Democratic Initiation of Conflict," Journal of Politics 64 (August 2002): 810-826.
. *Analysis was conducted in STATA 7.0.  Questions can be directed to Dan Reiter at dreiter@emory.edu.
. *This log file will replicate the results of Table 1 on p. 821.  Full description of research design and
. *variables is of course available in the article.
. use "E:\partiesdata\jop02rep.dta", clear

. *First, Model 1 of Table 1.
. xtgee    midindm majpow autbor polity if year>1918 & year<1993, fam(bin) link(probit) corr(ar1) t(year) force robust

Iteration 1: tolerance = .02385192
Iteration 2: tolerance = .00175295
Iteration 3: tolerance = .000099
Iteration 4: tolerance = 6.001e-06
Iteration 5: tolerance = 3.692e-07

GEE population-averaged model                   Number of obs      =      1721
Group and time vars:            ccode year      Number of groups   =        35
Link:                               probit      Obs per group: min =         3
Family:                           binomial                     avg =      49.2
Correlation:                         AR(1)                     max =        74
                                                Wald chi2(3)       =     55.72
Scale parameter:                         1      Prob > chi2        =    0.0000

                            (standard errors adjusted for clustering on ccode)
-------------+----------------------------------------------------------------
             |             Semi-robust
     midindm |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      majpow |   1.446246   .2006251     7.21   0.000     1.053028    1.839464
      autbor |   .2523288    .101682     2.48   0.013     .0530359    .4516218
      polity |   .0580762    .058216     1.00   0.318    -.0560251    .1721774
       _cons |  -2.026109    .587303    -3.45   0.001    -3.177201   -.8750159
-------------+----------------------------------------------------------------

. *Now, Model 2.
. xtgee  midindm  vanpart   eff_ptie  majdum coaldum presdum prempres assind treatrat majpow autbor if year>1918 & year<1993, fam(bin) link(probit) corr(ar1) t(year) force robust

Iteration 1: tolerance = .1398609
Iteration 2: tolerance = .02537971
Iteration 3: tolerance = .00109677
Iteration 4: tolerance = .00014404
Iteration 5: tolerance = .00001524
Iteration 6: tolerance = 7.371e-07

GEE population-averaged model                   Number of obs      =      1363
Group and time vars:            ccode year      Number of groups   =        28
Link:                               probit      Obs per group: min =         3
Family:                           binomial                     avg =      48.7
Correlation:                         AR(1)                     max =        74
                                                Wald chi2(9)       =    207.49
Scale parameter:                         1      Prob > chi2        =    0.0000

                            (standard errors adjusted for clustering on ccode)
-------------+----------------------------------------------------------------
             |             Semi-robust
     midindm |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     vanpart |  -.0126103   .0053703    -2.35   0.019    -.0231358   -.0020847
    eff_ptie |   -.002886   .0906549    -0.03   0.975    -.1805664    .1747944
      majdum |   .1736322   .2236612     0.78   0.438    -.2647357    .6120001
     coaldum |   .2017317   .2397001     0.84   0.400     -.268072    .6715353
     presdum |   .0220547   .4062441     0.05   0.957    -.7741692    .8182786
    prempres |  -.4880111   .2245778    -2.17   0.030    -.9281756   -.0478467
      assind |  -1.126466   .2697834    -4.18   0.000    -1.655232   -.5977004
    treatrat |  -.3045961   .1639302    -1.86   0.063    -.6258934    .0167011
      majpow |    1.54259   .2583133     5.97   0.000     1.036306    2.048875
      autbor |   .2826882   .0778863     3.63   0.000     .1300339    .4353425
       _cons |  -.7026606   .4842636    -1.45   0.147      -1.6518    .2464787
-------------+----------------------------------------------------------------

. *Next, Model 3.
. xtgee  midindm  vanpart   eff_ptie  majdum coaldum presdum  semipres treatrat majpow autbor if year>1918 & year<1993, fam(bin) link(probit) corr(ar1) t(year) force robust

Iteration 1: tolerance = .14335111
Iteration 2: tolerance = .02024109
Iteration 3: tolerance = .00072588
Iteration 4: tolerance = .00011425
Iteration 5: tolerance = .00001115
Iteration 6: tolerance = 7.345e-07

GEE population-averaged model                   Number of obs      =      1363
Group and time vars:            ccode year      Number of groups   =        28
Link:                               probit      Obs per group: min =         3
Family:                           binomial                     avg =      48.7
Correlation:                         AR(1)                     max =        74
                                                Wald chi2(9)       =    111.58
Scale parameter:                         1      Prob > chi2        =    0.0000

                            (standard errors adjusted for clustering on ccode)
-------------+----------------------------------------------------------------
             |             Semi-robust
     midindm |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     vanpart |  -.0104474   .0050436    -2.07   0.038    -.0203326   -.0005621
    eff_ptie |  -.0151781   .0904252    -0.17   0.867    -.1924081     .162052
      majdum |   .1493097   .2221978     0.67   0.502      -.28619    .5848095
     coaldum |   .1854494   .2406672     0.77   0.441    -.2862497    .6571485
     presdum |   .0279669   .4070491     0.07   0.945    -.7698348    .8257685
    semipres |  -.6020274   .2360841    -2.55   0.011    -1.064744   -.1393111
    treatrat |  -.3032556   .1641821    -1.85   0.065    -.6250467    .0185354
      majpow |   1.572963    .265868     5.92   0.000     1.051871    2.094055
      autbor |   .2874745   .0773398     3.72   0.000     .1358913    .4390578
       _cons |  -.7605716   .5047928    -1.51   0.132    -1.749947    .2288041
-------------+----------------------------------------------------------------

. *Lastly, Model 4.

. xtgee   mnin45dm vanpart   eff_ptie  majdum coaldum presdum prempres assind treatrat majpow autbor if year>1918 & year<1993, fam(bin) link(probit) corr(ar1) t(year) force robust

Iteration 1: tolerance = .21238074
Iteration 2: tolerance = .06032816
Iteration 3: tolerance = .00832424
Iteration 4: tolerance = .00155259
Iteration 5: tolerance = .00020903
Iteration 6: tolerance = .00003918
Iteration 7: tolerance = 3.703e-06
Iteration 8: tolerance = 6.062e-07

GEE population-averaged model                   Number of obs      =      1363
Group and time vars:            ccode year      Number of groups   =        28
Link:                               probit      Obs per group: min =         3
Family:                           binomial                     avg =      48.7
Correlation:                         AR(1)                     max =        74
                                                Wald chi2(9)       =    143.22
Scale parameter:                         1      Prob > chi2        =    0.0000

                            (standard errors adjusted for clustering on ccode)
-------------+----------------------------------------------------------------
             |             Semi-robust
    mnin45dm |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     vanpart |  -.0120187   .0055327    -2.17   0.030    -.0228626   -.0011748
    eff_ptie |  -.0014211    .103268    -0.01   0.989    -.2038226    .2009803
      majdum |   .0449379   .1908869     0.24   0.814    -.3291935    .4190693
     coaldum |   .1843955   .1858587     0.99   0.321    -.1798808    .5486719
     presdum |   .0589727   .4312658     0.14   0.891    -.7862927    .9042381
    prempres |  -.3559427    .255747    -1.39   0.164    -.8571975    .1453122
      assind |  -1.168592   .3137564    -3.72   0.000    -1.783543   -.5536409
    treatrat |   -.302518   .2011354    -1.50   0.133    -.6967362    .0917002
      majpow |   1.182541    .240246     4.92   0.000     .7116673    1.653414
      autbor |   .2088073   .0901546     2.32   0.021     .0321075     .385507
       _cons |  -.7934124   .5264754    -1.51   0.132    -1.825285    .2384604
-------------+----------------------------------------------------------------

. log close
       log:  E:\partiesdata\jop02rep.smcl
  log type:  smcl
 closed on:   2 Aug 2002, 16:07:15
-------------