----------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\chris\Dropbox\Interventions\Submissions\JOGSS\Final draft\logfile-jogss.txt
  log type:  text
 opened on:  15 Dec 2020, 16:28:51

. 
. 
. 
. 
. 
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. * PLAYING THE ETHNIC CARD
. *
. * Ben Jones and Chris Linebarger
. *
. * December 15, 2020
. *
. * Journal of Global Security Studies
. *
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. ********************************************************************************************************************
> **********************************
. 
. *load data
. use "C:\Users\chris\Dropbox\Interventions\Data\playing the ethnic card - JOGSS - 12-15-2020.dta", clear

. 
. 
. #delimit;
delimiter now ;
. ****************************************************************************************************;
. ****************************************************************************************************;
. * ANALYSIS;
. ****************************************************************************************************;
. ****************************************************************************************************;
. **************************************************;
. * BIVARIATE MODELS;
. **************************************************;
. logit rebintonset_miss l_leaderexits  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -165.93424  
Iteration 1:   log pseudolikelihood = -162.61325  
Iteration 2:   log pseudolikelihood =  -160.7696  
Iteration 3:   log pseudolikelihood =  -160.7522  
Iteration 4:   log pseudolikelihood =  -160.7522  

Logistic regression                             Number of obs     =      1,870
                                                Wald chi2(4)      =      15.75
                                                Prob > chi2       =     0.0034
Log pseudolikelihood =  -160.7522               Pseudo R2         =     0.0312

                                (Std. Err. adjusted for 302 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   l_leaderexits |   .0593391   .0184611     3.21   0.001     .0231559    .0955222
              tm |  -.0640892   .1831217    -0.35   0.726    -.4230011    .2948228
             tm2 |  -.0014749   .0206397    -0.07   0.943    -.0419279    .0389781
             tm3 |   .0000641   .0005369     0.12   0.905    -.0009883    .0011165
           _cons |  -4.015848   .4059944    -9.89   0.000    -4.811583   -3.220114
----------------------------------------------------------------------------------

. est sto ex1;

. logit rebintonset_miss l_cumirr  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -165.93424  
Iteration 1:   log pseudolikelihood = -160.35252  
Iteration 2:   log pseudolikelihood =  -157.0399  
Iteration 3:   log pseudolikelihood = -157.01033  
Iteration 4:   log pseudolikelihood = -157.01032  

Logistic regression                             Number of obs     =      1,870
                                                Wald chi2(4)      =      19.38
                                                Prob > chi2       =     0.0007
Log pseudolikelihood = -157.01032               Pseudo R2         =     0.0538

                                (Std. Err. adjusted for 302 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        l_cumirr |   .2719152   .0760384     3.58   0.000     .1228828    .4209477
              tm |  -.0274352   .1856692    -0.15   0.883    -.3913401    .3364697
             tm2 |  -.0048924   .0208778    -0.23   0.815    -.0458121    .0360273
             tm3 |   .0001618    .000543     0.30   0.766    -.0009025    .0012261
           _cons |  -4.318082   .4514749    -9.56   0.000    -5.202957   -3.433208
----------------------------------------------------------------------------------

. est sto cumirr1;

. logit rebintonset_miss l_cumirrpost  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -165.93424  
Iteration 1:   log pseudolikelihood = -159.98145  
Iteration 2:   log pseudolikelihood = -158.37796  
Iteration 3:   log pseudolikelihood = -158.37243  
Iteration 4:   log pseudolikelihood = -158.37243  

Logistic regression                             Number of obs     =      1,870
                                                Wald chi2(4)      =      15.22
                                                Prob > chi2       =     0.0043
Log pseudolikelihood = -158.37243               Pseudo R2         =     0.0456

                                (Std. Err. adjusted for 302 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_cumirrpost |   .3019176   .0949641     3.18   0.001     .1157914    .4880437
              tm |  -.0357069   .1841069    -0.19   0.846    -.3965498     .325136
             tm2 |  -.0041219   .0206976    -0.20   0.842    -.0446884    .0364446
             tm3 |    .000138   .0005404     0.26   0.798    -.0009211    .0011972
           _cons |  -4.261056   .4348715    -9.80   0.000    -5.113388   -3.408723
----------------------------------------------------------------------------------

. est sto cumirrpos1;

. logit rebintonset_miss l_revrsgovstability  tm* if ethdom2==1 &  year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -86.696467  
Iteration 1:   log pseudolikelihood = -81.793867  
Iteration 2:   log pseudolikelihood = -79.833929  
Iteration 3:   log pseudolikelihood = -79.795832  
Iteration 4:   log pseudolikelihood = -79.795201  
Iteration 5:   log pseudolikelihood = -79.795199  

Logistic regression                             Number of obs     =        827
                                                Wald chi2(4)      =      19.57
                                                Prob > chi2       =     0.0006
Log pseudolikelihood = -79.795199               Pseudo R2         =     0.0796

                                   (Std. Err. adjusted for 153 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2783173   .0704574     3.95   0.000     .1402234    .4164113
                 tm |   .3470346    .245993     1.41   0.158    -.1351028    .8291721
                tm2 |  -.0391452   .0270643    -1.45   0.148    -.0921902    .0138998
                tm3 |   .0009004   .0007043     1.28   0.201      -.00048    .0022808
              _cons |  -5.412636   .8810626    -6.14   0.000    -7.139487   -3.685785
-------------------------------------------------------------------------------------

. est sto govsta1;

. logit rebintonset_miss l_revrssocio  tm* if ethdom2==1 &  year > 1989 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -86.696467  
Iteration 1:   log pseudolikelihood = -83.077503  
Iteration 2:   log pseudolikelihood = -82.517563  
Iteration 3:   log pseudolikelihood = -82.498951  
Iteration 4:   log pseudolikelihood = -82.498616  
Iteration 5:   log pseudolikelihood = -82.498616  

Logistic regression                             Number of obs     =        827
                                                Wald chi2(4)      =      15.85
                                                Prob > chi2       =     0.0032
Log pseudolikelihood = -82.498616               Pseudo R2         =     0.0484

                                (Std. Err. adjusted for 153 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_revrssocio |   .2211252   .0969186     2.28   0.023     .0311683     .411082
              tm |   .3017532   .2445714     1.23   0.217    -.1775979    .7811044
             tm2 |  -.0318598   .0278874    -1.14   0.253    -.0865181    .0227986
             tm3 |   .0006632   .0007587     0.87   0.382    -.0008238    .0021502
           _cons |  -5.637802   .9609204    -5.87   0.000    -7.521172   -3.754433
----------------------------------------------------------------------------------

. est sto sociosta1;

. estout ex1 cumirr1 cumirrpos1 govsta1 sociosta1, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio tm*) ///
>         noabb sty(tex) ;

            &         ex1   &     cumirr1   &  cumirrpos1   &     govsta1   &   sociosta1   \\
            &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   \\
rebintonset_miss&               &               &               &               &               \\
l_leaderexits&       0.059** &               &               &               &               \\
            &     (0.018)   &               &               &               &               \\
l_cumirr    &               &       0.272***&               &               &               \\
            &               &     (0.076)   &               &               &               \\
l_cumirrpost&               &               &       0.302** &               &               \\
            &               &               &     (0.095)   &               &               \\
l_revrsgovstability&               &               &               &       0.278***&               \\
            &               &               &               &     (0.070)   &               \\
l_revrssocio&               &               &               &               &       0.221*  \\
            &               &               &               &               &     (0.097)   \\
tm          &      -0.064   &      -0.027   &      -0.036   &       0.347   &       0.302   \\
            &     (0.183)   &     (0.186)   &     (0.184)   &     (0.246)   &     (0.245)   \\
tm2         &      -0.001   &      -0.005   &      -0.004   &      -0.039   &      -0.032   \\
            &     (0.021)   &     (0.021)   &     (0.021)   &     (0.027)   &     (0.028)   \\
tm3         &       0.000   &       0.000   &       0.000   &       0.001   &       0.001   \\
            &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   \\
_cons       &      -4.016***&      -4.318***&      -4.261***&      -5.413***&      -5.638***\\
            &     (0.406)   &     (0.451)   &     (0.435)   &     (0.881)   &     (0.961)   \\
N           &        1870   &        1870   &        1870   &         827   &         827   \\
ll          &    -160.752   &    -157.010   &    -158.372   &     -79.795   &     -82.499   \\
aic         &     331.504   &     324.021   &     326.745   &     169.590   &     174.997   \\

.                 ***************************************************************************;
. * MULTIVARIATE MODELS;
. ***************************************************************************;
. *************************;
. * MODEL 6;
. *************************;
. logit rebintonset_miss c.l_leaderexits l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrad
> e_l  l1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -142.93539  
Iteration 2:   log pseudolikelihood = -135.87054  
Iteration 3:   log pseudolikelihood = -135.82386  
Iteration 4:   log pseudolikelihood = -135.82381  
Iteration 5:   log pseudolikelihood = -135.82381  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      82.23
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -135.82381               Pseudo R2         =     0.0902

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   l_leaderexits |   .0832349   .0301212     2.76   0.006     .0241984    .1422714
                 |
      govint_any |
             L1. |   .9247745   .6464034     1.43   0.153     -.342153    2.191702
                 |
           jtdem |
             L1. |  -.0776716   .9155494    -0.08   0.932    -1.872116    1.716772
                 |
        cinc_100 |
             L1. |   .3574756   .1078698     3.31   0.001     .1460547    .5688965
                 |
      cinc_3_100 |
             L1. |   .0369836   .0499995     0.74   0.459    -.0610137    .1349809
                 |
         defense |
             L1. |  -.3940604   .5682303    -0.69   0.488    -1.507771    .7196505
                 |
 smoothtotrade_l |
             L1. |   -.243195   .1168594    -2.08   0.037    -.4722352   -.0141548
                 |
 cum_rebintonset |
             L1. |   .0505692   .0320097     1.58   0.114    -.0121686    .1133069
                 |
              tm |  -.1075233   .2017177    -0.53   0.594    -.5028827    .2878362
             tm2 |   .0034581   .0223667     0.15   0.877    -.0403799     .047296
             tm3 |  -.0000932   .0005635    -0.17   0.869    -.0011976    .0010113
           _cons |  -4.745474    .708667    -6.70   0.000    -6.134436   -3.356512
----------------------------------------------------------------------------------

. est sto ex2;

. gen sample1 = e(sample);

. *************************;
. * MODEL 7;
. *************************;
. logit rebintonset_miss c.l_cumirr l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l l
> 1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -147.53683  
Iteration 2:   log pseudolikelihood = -133.22188  
Iteration 3:   log pseudolikelihood = -133.11215  
Iteration 4:   log pseudolikelihood = -133.11195  
Iteration 5:   log pseudolikelihood = -133.11195  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      91.33
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -133.11195               Pseudo R2         =     0.1084

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        l_cumirr |   .2931253   .0821929     3.57   0.000     .1320301    .4542205
                 |
      govint_any |
             L1. |    .998995   .6603444     1.51   0.130    -.2952562    2.293246
                 |
           jtdem |
             L1. |   .3878246   .6352058     0.61   0.541    -.8571558    1.632805
                 |
        cinc_100 |
             L1. |   .3311304    .126522     2.62   0.009     .0831519     .579109
                 |
      cinc_3_100 |
             L1. |   .0706685   .0569777     1.24   0.215    -.0410057    .1823428
                 |
         defense |
             L1. |  -.5247568   .5642862    -0.93   0.352    -1.630738    .5812239
                 |
 smoothtotrade_l |
             L1. |  -.2189281   .1196534    -1.83   0.067    -.4534445    .0155882
                 |
 cum_rebintonset |
             L1. |   .0272211   .0454562     0.60   0.549    -.0618714    .1163135
                 |
              tm |  -.0887908   .2116771    -0.42   0.675    -.5036703    .3260887
             tm2 |   .0018556   .0231316     0.08   0.936    -.0434815    .0471927
             tm3 |  -.0000318   .0005825    -0.05   0.956    -.0011736    .0011099
           _cons |  -4.977369   .7418544    -6.71   0.000    -6.431377   -3.523361
----------------------------------------------------------------------------------

. est sto cumirr2;

. gen sample2 = e(sample);

.         *marginal effects and figure;
.         margins, predict(pr) at(l_cumirr=(0(1)8));

Predictive margins                              Number of obs     =      1,615
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)

1._at        : l_cumirr        =           0

2._at        : l_cumirr        =           1

3._at        : l_cumirr        =           2

4._at        : l_cumirr        =           3

5._at        : l_cumirr        =           4

6._at        : l_cumirr        =           5

7._at        : l_cumirr        =           6

8._at        : l_cumirr        =           7

9._at        : l_cumirr        =           8

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    .009261   .0031615     2.93   0.003     .0030646    .0154574
          2  |   .0123384   .0035512     3.47   0.001     .0053783    .0192986
          3  |   .0164069   .0040999     4.00   0.000     .0083712    .0244425
          4  |    .021763   .0051017     4.27   0.000     .0117639     .031762
          5  |   .0287775   .0070308     4.09   0.000     .0149973    .0425577
          6  |   .0379046   .0104251     3.64   0.000     .0174719    .0583374
          7  |   .0496864   .0158199     3.14   0.002       .01868    .0806927
          8  |   .0647487   .0237869     2.72   0.006     .0181273    .1113702
          9  |   .0837838   .0349453     2.40   0.017     .0152922    .1522753
------------------------------------------------------------------------------

. #delimit
delimiter now ;
. label variable l_cumirr "Cumulative Irregular Leader Exits";

. marginsplot ,  title("") recastci(rarea) plot1opts(msymbol(none) lp(dash) lw(thick)) ci1opts(fintensity(40)) scheme(
> s1mono) xlabel(0(1)35) ytitle("XXX") addplot(histogram l_cumirr if sample2==1, percent yaxis(2) yscale(alt) ytitle("
> Dubious") fcolor(%15)  ytitle("XXX")
> legend(order(1 "95% Confidence interval" 2 "Pr(Rebel Support Onset)" 3 "Cumulative Irregular Leader Exits") col(1) )
> )   ;

  Variables that uniquely identify margins: l_cumirr

. *graph export "C:\Users\chris\Dropbox\Interventions\Text\model7.pdf", as(pdf) name("Graph") replace
> ;
. *************************;
. * MODEL 8;
. *************************;
. logit rebintonset_miss c.l_cumirrpost l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade
> _l l1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -141.78665  
Iteration 2:   log pseudolikelihood = -132.98437  
Iteration 3:   log pseudolikelihood = -132.93217  
Iteration 4:   log pseudolikelihood = -132.93212  
Iteration 5:   log pseudolikelihood = -132.93212  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      73.47
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -132.93212               Pseudo R2         =     0.1096

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_cumirrpost |   .3963641    .103052     3.85   0.000     .1943858    .5983423
                 |
      govint_any |
             L1. |   .9985385   .6332651     1.58   0.115    -.2426383    2.239715
                 |
           jtdem |
             L1. |   .2031574   .6765343     0.30   0.764    -1.122825     1.52914
                 |
        cinc_100 |
             L1. |   .3815246   .1175903     3.24   0.001     .1510518    .6119974
                 |
      cinc_3_100 |
             L1. |   .0812636    .054879     1.48   0.139    -.0262973    .1888246
                 |
         defense |
             L1. |  -.5594131   .5350624    -1.05   0.296    -1.608116      .48929
                 |
 smoothtotrade_l |
             L1. |  -.2360101   .1124364    -2.10   0.036    -.4563814   -.0156389
                 |
 cum_rebintonset |
             L1. |    .038774   .0385946     1.00   0.315    -.0368701    .1144181
                 |
              tm |  -.0766534     .21246    -0.36   0.718    -.4930674    .3397607
             tm2 |   .0007244   .0230149     0.03   0.975    -.0443839    .0458327
             tm3 |  -.0000173   .0005803    -0.03   0.976    -.0011547    .0011201
           _cons |  -5.192426   .7337549    -7.08   0.000    -6.630559   -3.754293
----------------------------------------------------------------------------------

. est sto cumirrpost2;

. gen sample3 = e(sample);

.         *marginal effects and figure;
. #delimit;
delimiter now ;
. margins , predict(pr) at(l_cumirrpost=(0(1)6));

Predictive margins                              Number of obs     =      1,615
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)

1._at        : l_cumirrpost    =           0

2._at        : l_cumirrpost    =           1

3._at        : l_cumirrpost    =           2

4._at        : l_cumirrpost    =           3

5._at        : l_cumirrpost    =           4

6._at        : l_cumirrpost    =           5

7._at        : l_cumirrpost    =           6

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0084167    .002968     2.84   0.005     .0025996    .0142338
          2  |   .0123917   .0035134     3.53   0.000     .0055055    .0192778
          3  |   .0181702   .0043414     4.19   0.000     .0096612    .0266792
          4  |   .0264972   .0061146     4.33   0.000     .0145127    .0384817
          5  |    .038359   .0099182     3.87   0.000     .0189196    .0577984
          6  |    .055008   .0169401     3.25   0.001     .0218061    .0882099
          7  |    .077945   .0284267     2.74   0.006     .0222297    .1336603
------------------------------------------------------------------------------

. #delimit;
delimiter now ;
. marginsplot ,  title("") recastci(rarea) plot1opts(msymbol(none) lp(dash) lw(thick)) ci1opts(fintensity(40)) scheme(
> s1mono) xlabel(0(1)6) ytitle("XXX") addplot(histogram l_cumirrpost if sample3==1, percent yaxis(2) yscale(alt) ytitl
> e("Dubious") fcolor(%15)  ytitle("Pr(Wall construction)")
> legend(order(1 "95% Confidence interval" 2 "Pr(Rebel Support Onset)" 3 "Cumulative Irregular Post Tenure Fates") col
> (1) ))      ;

  Variables that uniquely identify margins: l_cumirrpost

.         #delimit;
delimiter now ;
.                 *graph export "C:\Users\chris\Dropbox\Interventions\Text\model8.pdf", as(pdf) name("Graph") replace
> ;
.                         *************************;
. * MODEL 9;
. *************************;
. logit rebintonset_miss c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smooth
> totrade_l l1.cum_rebintonset  tm* if ethdom2==1 & year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -81.197693  
Iteration 2:   log pseudolikelihood = -69.531464  
Iteration 3:   log pseudolikelihood = -69.020523  
Iteration 4:   log pseudolikelihood =  -69.00739  
Iteration 5:   log pseudolikelihood = -69.007284  
Iteration 6:   log pseudolikelihood = -69.007284  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      78.65
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -69.007284               Pseudo R2         =     0.1848

                                   (Std. Err. adjusted for 132 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2627299   .0663368     3.96   0.000     .1327121    .3927477
                    |
         govint_any |
                L1. |   1.469091   .8414931     1.75   0.081    -.1802048    3.118388
                    |
              jtdem |
                L1. |   .4115834   .8389401     0.49   0.624    -1.232709    2.055876
                    |
           cinc_100 |
                L1. |   .3900646   .1626279     2.40   0.016     .0713197    .7088094
                    |
         cinc_3_100 |
                L1. |  -.0845194   .0649166    -1.30   0.193    -.2117536    .0427148
                    |
            defense |
                L1. |  -.9323822   .8660014    -1.08   0.282    -2.629714    .7649493
                    |
    smoothtotrade_l |
                L1. |  -.1671602   .1745093    -0.96   0.338    -.5091922    .1748717
                    |
    cum_rebintonset |
                L1. |   .0221333   .0353106     0.63   0.531    -.0470742    .0913409
                    |
                 tm |   .2256607   .2195178     1.03   0.304    -.2045862    .6559077
                tm2 |  -.0291859   .0250149    -1.17   0.243    -.0782142    .0198424
                tm3 |   .0006586   .0006286     1.05   0.295    -.0005733    .0018906
              _cons |  -6.071243   .8895326    -6.83   0.000    -7.814695   -4.327791
-------------------------------------------------------------------------------------

. est sto govsta2;

. gen sample4 = e(sample);

.                 *marginal effects and figure;
. #delimit;
delimiter now ;
.         margins, predict(pr) at(l_revrsgovstability=(0(1)11));

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)

1._at        : l_revrsgov~y    =           0

2._at        : l_revrsgov~y    =           1

3._at        : l_revrsgov~y    =           2

4._at        : l_revrsgov~y    =           3

5._at        : l_revrsgov~y    =           4

6._at        : l_revrsgov~y    =           5

7._at        : l_revrsgov~y    =           6

8._at        : l_revrsgov~y    =           7

9._at        : l_revrsgov~y    =           8

10._at       : l_revrsgov~y    =           9

11._at       : l_revrsgov~y    =          10

12._at       : l_revrsgov~y    =          11

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0075119   .0037341     2.01   0.044     .0001933    .0148306
          2  |   .0096485    .004244     2.27   0.023     .0013305    .0179665
          3  |   .0123664   .0047845     2.58   0.010      .002989    .0217438
          4  |   .0158126   .0053758     2.94   0.003     .0052762     .026349
          5  |   .0201663   .0060788     3.32   0.001      .008252    .0320805
          6  |   .0256426   .0070285     3.65   0.000     .0118671    .0394182
          7  |   .0324963   .0084638     3.84   0.000     .0159075    .0490851
          8  |   .0410222   .0107207     3.83   0.000     .0200101    .0620344
          9  |   .0515535   .0141759     3.64   0.000     .0237693    .0793377
         10  |   .0644545   .0191884     3.36   0.001      .026846    .1020631
         11  |   .0801075    .026074     3.07   0.002     .0290034    .1312117
         12  |   .0988908   .0350922     2.82   0.005     .0301112    .1676703
------------------------------------------------------------------------------

. #delimit;
delimiter now ;
. marginsplot ,  title("") recastci(rarea) plot1opts(msymbol(none) lp(dash) lw(thick)) ci1opts(fintensity(40)) scheme(
> s1mono) xlabel(0(1)12) ytitle("XXX") addplot(histogram l_revrsgovstability if sample4==1, percent yaxis(2) yscale(al
> t) ytitle("Dubious") fcolor(%15)  ytitle("Pr(Wall construction)")
> legend(order(1 "95% Confidence interval" 2 "Pr(Rebel Support Onset)" 3 "Cumulative Irregular Post Tenure Fates") col
> (1) ))      ;

  Variables that uniquely identify margins: l_revrsgovstability

.         #delimit;
delimiter now ;
.                 *graph export "C:\Users\chris\Dropbox\Interventions\Text\model9.pdf", as(pdf) name("Graph") replace
> ;
.                 *************************;
. *calculating substantive effects of model 9, discussed in paper (-1 std dev to +1 std dev);
. *************************;
. #delimit;
delimiter now ;
. sum c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l l1.cum_re
> bintonset if sample4==1;

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
l_revrsgov~y |        739    3.968877    2.213921          0         11
             |
  govint_any |
         L1. |        739    .5723951    .4950663          0          1
             |
       jtdem |
         L1. |        739    .0838972    .2774213          0          1
             |
    cinc_100 |
         L1. |        739    1.446735    2.300941   .0086541   14.78703
             |
  cinc_3_100 |
         L1. |        739    1.836618    3.922738   .0042151   15.65189
-------------+---------------------------------------------------------
             |
     defense |
         L1. |        739    .1894452    .3921273          0          1
             |
smoothtotr~l |
         L1. |        739    3.410071    2.777955          0    10.0085
             |
cum_rebint~t |
         L1. |        739    4.242219    4.969779          0         27

. logit rebintonset_miss l_revrsgovstability l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_
> l l_cum_rebintonset tm* if ethdom2==1  & year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -81.197693  
Iteration 2:   log pseudolikelihood = -69.531464  
Iteration 3:   log pseudolikelihood = -69.020523  
Iteration 4:   log pseudolikelihood =  -69.00739  
Iteration 5:   log pseudolikelihood = -69.007284  
Iteration 6:   log pseudolikelihood = -69.007284  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      78.65
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -69.007284               Pseudo R2         =     0.1848

                                   (Std. Err. adjusted for 132 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2627299   .0663368     3.96   0.000     .1327121    .3927477
       l_govint_any |   1.469091   .8414931     1.75   0.081    -.1802048    3.118388
            l_jtdem |   .4115834   .8389401     0.49   0.624    -1.232709    2.055876
         l_cinc_100 |   .3900646   .1626279     2.40   0.016     .0713197    .7088094
       l_cinc_3_100 |  -.0845194   .0649166    -1.30   0.193    -.2117536    .0427148
          l_defense |  -.9323822   .8660014    -1.08   0.282    -2.629714    .7649493
  l_smoothtotrade_l |  -.1671602   .1745093    -0.96   0.338    -.5091922    .1748717
  l_cum_rebintonset |   .0221333   .0353106     0.63   0.531    -.0470742    .0913409
                 tm |   .2256607   .2195178     1.03   0.304    -.2045862    .6559077
                tm2 |  -.0291859   .0250149    -1.17   0.243    -.0782142    .0198424
                tm3 |   .0006586   .0006286     1.05   0.295    -.0005733    .0018906
              _cons |  -6.071243   .8895326    -6.83   0.000    -7.814695   -4.327791
-------------------------------------------------------------------------------------

. margins, predict(pr) at(l_revrsgovstability=1.74191 l_jtdem=1  l_cinc_3_100=1.836618 l_cinc_100= 1.446735 l_defense=
> 0 l_smoothtotrade_l=3.410071  l_cum_rebintonset=4.253 )  ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =     1.74191
               l_jtdem         =           1
               l_cinc_100      =    1.446735
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .0144069   .0095862     1.50   0.133    -.0043818    .0331955
------------------------------------------------------------------------------

. margins, predict(pr) at(l_revrsgovstability=6.201526 l_jtdem=1  l_cinc_3_100=1.836618 l_cinc_100= 1.446735 l_defense
> =0 l_smoothtotrade_l=3.410071  l_cum_rebintonset=4.253 )    ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =    6.201526
               l_jtdem         =           1
               l_cinc_100      =    1.446735
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .0441664   .0318114     1.39   0.165    -.0181827    .1065155
------------------------------------------------------------------------------

. margins, predict(pr) at(l_govint_any=1 l_revrsgovstability=4.0 l_jtdem=1  l_cinc_3_100=1.836618 l_cinc_100= 1.446735
>  l_defense=0 l_smoothtotrade_l=3.410071  l_cum_rebintonset=4.253 )  ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =           4
               l_govint_any    =           1
               l_jtdem         =           1
               l_cinc_100      =    1.446735
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .0376504   .0256182     1.47   0.142    -.0125603    .0878611
------------------------------------------------------------------------------

.   margins, predict(pr) at(l_govint_any=2 l_revrsgovstability=4.0  l_jtdem=1  l_cinc_3_100=1.836618 l_cinc_100= 1.446
> 735 l_defense=0 l_smoothtotrade_l=3.410071  l_cum_rebintonset=4.253 ) ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =           4
               l_govint_any    =           2
               l_jtdem         =           1
               l_cinc_100      =    1.446735
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .1412416   .1352475     1.04   0.296    -.1238386    .4063217
------------------------------------------------------------------------------

. margins, predict(pr) at(l_cinc_100 = 1.39 l_revrsgovstability=4.0  l_jtdem=1  l_cinc_3_100=1.836618  l_defense=0 l_s
> moothtotrade_l=3.410071  l_cum_rebintonset=4.253 )    ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =           4
               l_jtdem         =           1
               l_cinc_100      =        1.39
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .0250444   .0172197     1.45   0.146    -.0087055    .0587943
------------------------------------------------------------------------------

. margins, predict(pr) at(l_cinc_100  = 5.5 l_revrsgovstability=4.0  l_jtdem=1  l_cinc_3_100=1.836618 l_defense=0 l_sm
> oothtotrade_l=3.410071  l_cum_rebintonset=4.253 )   ;

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =           4
               l_jtdem         =           1
               l_cinc_100      =         5.5
               l_cinc_3_100    =    1.836618
               l_defense       =           0
               l_smoothto~l    =    3.410071
               l_cum_rebi~t    =       4.253

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .1073304   .0790187     1.36   0.174    -.0475434    .2622041
------------------------------------------------------------------------------

.         *************************;
. *Russia simulation      discussed in paper;
. *************************;
. #delimit;
delimiter now ;
. logit rebintonset_miss c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smooth
> totrade_l l_cum_rebintonset tm* if ethdom2==1 & year > 1989 & gwnoa_3 != 365, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -83.737299  
Iteration 1:   log pseudolikelihood = -79.841672  
Iteration 2:   log pseudolikelihood = -69.129558  
Iteration 3:   log pseudolikelihood = -68.699044  
Iteration 4:   log pseudolikelihood =  -68.68974  
Iteration 5:   log pseudolikelihood = -68.689684  
Iteration 6:   log pseudolikelihood = -68.689684  

Logistic regression                             Number of obs     =        703
                                                Wald chi2(11)     =      80.96
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -68.689684               Pseudo R2         =     0.1797

                                   (Std. Err. adjusted for 122 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2687799   .0677423     3.97   0.000     .1360074    .4015524
                    |
         govint_any |
                L1. |   1.471664   .8461097     1.74   0.082    -.1866801    3.130009
                    |
              jtdem |
                L1. |   .3784873   .8335569     0.45   0.650    -1.255254    2.012229
                    |
           cinc_100 |
                L1. |   .3846595   .1639495     2.35   0.019     .0633245    .7059945
                    |
         cinc_3_100 |
                L1. |  -.0437559   .0689794    -0.63   0.526     -.178953    .0914411
                    |
            defense |
                L1. |  -.8947343   .8529277    -1.05   0.294    -2.566442    .7769732
                    |
    smoothtotrade_l |
                L1. |  -.1618181   .1790429    -0.90   0.366    -.5127358    .1890997
                    |
  l_cum_rebintonset |   .0236935   .0353275     0.67   0.502    -.0455472    .0929341
                 tm |   .2306094   .2169901     1.06   0.288    -.1946833    .6559021
                tm2 |  -.0292877   .0247392    -1.18   0.236    -.0777757    .0192002
                tm3 |   .0006571   .0006223     1.06   0.291    -.0005624    .0018767
              _cons |   -6.14786   .8899414    -6.91   0.000    -7.892113   -4.403607
-------------------------------------------------------------------------------------

. sum c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l tm* if gw
> noa_3 == 365 & ethdom2 == 1;

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
l_revrsgov~y |         38    4.107456    3.238685         .5   9.083333
             |
  govint_any |
         L1. |         77    .6883117    .4662205          0          1
             |
       jtdem |
         L1. |         67           0           0          0          0
             |
    cinc_100 |
         L1. |         77    .4358477    .3906285   .0365916   1.411065
             |
  cinc_3_100 |
         L1. |         77    12.12797    5.618382   4.080007   17.60274
-------------+---------------------------------------------------------
             |
     defense |
         L1. |         77    .0649351    .2480271          0          1
             |
smoothtotr~l |
         L1. |         72    3.569095    3.064401          0   7.565317
             |
          tm |         92    5.815217    6.885132          0         26
         tm2 |         92    80.70652     152.531          0        676
         tm3 |         92    1455.076     3516.94          0      17576

. *-1 STD to +1 STD;
. #delimit;
delimiter now ;
.         margins, predict(pr) at(l_revrsgovstability=(1.18989 6.661962) l1.govint_any==1 l1.jtdem=0 l1.cinc_100=0.435
> 8477 l1.cinc_3_100 = 12.12797 l1.defense=0 l1.smoothtotrade_l=3.569  l_cum_rebintonset=7.103896 (mean) tm tm2 tm3);

Adjusted predictions                            Number of obs     =        703
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)

1._at        : l_revrsgov~y    =     1.18989
               L.govint_any    =           1
               L.jtdem         =           0
               L.cinc_100      =    .4358477
               L.cinc_3_100    =    12.12797
               L.defense       =           0
               L.smoothto~l    =       3.569
               l_cum_rebi~t    =    7.103896
               tm              =    8.765292 (mean)
               tm2             =    125.8435 (mean)
               tm3             =     2171.94 (mean)

2._at        : l_revrsgov~y    =    6.661962
               L.govint_any    =           1
               L.jtdem         =           0
               L.cinc_100      =    .4358477
               L.cinc_3_100    =    12.12797
               L.defense       =           0
               L.smoothto~l    =       3.569
               l_cum_rebi~t    =    7.103896
               tm              =    8.765292 (mean)
               tm2             =    125.8435 (mean)
               tm3             =     2171.94 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0046527   .0046093     1.01   0.313    -.0043813    .0136868
          2  |   .0199407    .016266     1.23   0.220    -.0119401    .0518214
------------------------------------------------------------------------------

.     *Russia 2014;
. #delimit;
delimiter now ;
. margins, predict(pr) at(l_revrsgovstability=(3.8) l1.govint_any==1 l1.jtdem=0 l1.cinc_100=0.4358477 l1.cinc_3_100 = 
> 12.12797 l1.defense=0 l1.smoothtotrade_l=3.569 (mean) tm tm2 tm3);

Predictive margins                              Number of obs     =        703
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =         3.8
               L.govint_any    =           1
               L.jtdem         =           0
               L.cinc_100      =    .4358477
               L.cinc_3_100    =    12.12797
               L.defense       =           0
               L.smoothto~l    =       3.569
               tm              =    8.765292 (mean)
               tm2             =    125.8435 (mean)
               tm3             =     2171.94 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |   .0087513   .0076739     1.14   0.254    -.0062892    .0237919
------------------------------------------------------------------------------

. *Russia 2004;
. margins, predict(pr) at(l_revrsgovstability=(.7) l1.govint_any==1 l1.jtdem=0 l1.cinc_100=0.4358477 l1.cinc_3_100 = 1
> 2.12797 l1.defense=0 l1.smoothtotrade_l=3.569 (mean) tm tm2 tm3);

Predictive margins                              Number of obs     =        703
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)
at           : l_revrsgov~y    =          .7
               L.govint_any    =           1
               L.jtdem         =           0
               L.cinc_100      =    .4358477
               L.cinc_3_100    =    12.12797
               L.defense       =           0
               L.smoothto~l    =       3.569
               tm              =    8.765292 (mean)
               tm2             =    125.8435 (mean)
               tm3             =     2171.94 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _cons |    .003823   .0038175     1.00   0.317    -.0036591    .0113051
------------------------------------------------------------------------------

.                                         *************************;
. * MODEL 10;
. *************************;
. logit rebintonset_miss c.l_revrssocio l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade
> _l  l1.cum_rebintonset tm* if ethdom2==1 & year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -80.589077  
Iteration 2:   log pseudolikelihood = -71.013381  
Iteration 3:   log pseudolikelihood = -70.457529  
Iteration 4:   log pseudolikelihood = -70.441956  
Iteration 5:   log pseudolikelihood = -70.441813  
Iteration 6:   log pseudolikelihood = -70.441813  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      41.57
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -70.441813               Pseudo R2         =     0.1678

                                (Std. Err. adjusted for 132 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_revrssocio |   .2720274   .1387282     1.96   0.050      .000125    .5439298
                 |
      govint_any |
             L1. |   1.528346    .739065     2.07   0.039     .0798051    2.976887
                 |
           jtdem |
             L1. |   .9585084   .8440331     1.14   0.256    -.6957661    2.612783
                 |
        cinc_100 |
             L1. |   .4306541   .1556302     2.77   0.006     .1256246    .7356836
                 |
      cinc_3_100 |
             L1. |  -.0090125    .059242    -0.15   0.879    -.1251247    .1070998
                 |
         defense |
             L1. |  -.9952087   .7648776    -1.30   0.193    -2.494341     .503924
                 |
 smoothtotrade_l |
             L1. |  -.2757219   .1813071    -1.52   0.128    -.6310772    .0796335
                 |
 cum_rebintonset |
             L1. |  -.0194305   .0399938    -0.49   0.627    -.0978169    .0589559
                 |
              tm |   .2554824    .229842     1.11   0.266    -.1949996    .7059644
             tm2 |  -.0306658   .0259549    -1.18   0.237    -.0815365    .0202049
             tm3 |   .0006727   .0006449     1.04   0.297    -.0005914    .0019367
           _cons |  -6.620706   1.398965    -4.73   0.000    -9.362627   -3.878785
----------------------------------------------------------------------------------

. est sto sociosta2;

. gen sample5 = e(sample);

. *marginal effects and figure;
.         #delimit;
delimiter now ;
.         margins, predict(pr) at(l_revrssocio=(0(1)11));

Predictive margins                              Number of obs     =        739
Model VCE    : Robust

Expression   : Pr(rebintonset_miss), predict(pr)

1._at        : l_revrssocio    =           0

2._at        : l_revrssocio    =           1

3._at        : l_revrssocio    =           2

4._at        : l_revrssocio    =           3

5._at        : l_revrssocio    =           4

6._at        : l_revrssocio    =           5

7._at        : l_revrssocio    =           6

8._at        : l_revrssocio    =           7

9._at        : l_revrssocio    =           8

10._at       : l_revrssocio    =           9

11._at       : l_revrssocio    =          10

12._at       : l_revrssocio    =          11

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0040502   .0039247     1.03   0.302     -.003642    .0117425
          2  |   .0052535   .0044118     1.19   0.234    -.0033934    .0139004
          3  |   .0068012   .0048592     1.40   0.162    -.0027226    .0163251
          4  |   .0087877   .0052222     1.68   0.092    -.0014476    .0190231
          5  |   .0113317   .0054545     2.08   0.038     .0006411    .0220222
          6  |   .0145812   .0055424     2.63   0.009     .0037183    .0254441
          7  |   .0187197    .005615     3.33   0.001     .0077145    .0297249
          8  |   .0239704   .0061855     3.88   0.000      .011847    .0360937
          9  |   .0305997    .008233     3.72   0.000     .0144632    .0467362
         10  |   .0389187   .0125942     3.09   0.002     .0142345    .0636029
         11  |   .0492799   .0197065     2.50   0.012     .0106559    .0879039
         12  |    .062069   .0299728     2.07   0.038     .0033234    .1208147
------------------------------------------------------------------------------

. #delimit;
delimiter now ;
. marginsplot ,  title("") recastci(rarea) plot1opts(msymbol(none) lp(dash) lw(thick)) ci1opts(fintensity(40)) scheme(
> s1mono) xlabel(0(1)12) ytitle("XXX") addplot(histogram l_revrssocio if sample5==1, percent yaxis(2) yscale(alt) ytit
> le("Dubious") fcolor(%15)  ytitle("Pr(Wall construction)")
> legend(order(1 "95% Confidence interval" 2 "Pr(Rebel Support Onset)" 3 "Cumulative Irregular Post Tenure Fates") col
> (1) ))      ;

  Variables that uniquely identify margins: l_revrssocio

.                 #delimit;
delimiter now ;
.                 *graph export "C:\Users\chris\Dropbox\Interventions\Text\model10.pdf", as(pdf) name("Graph") replace
> ;
.                         *Create table 2         
> estout ex2 cumirr2 cumirrpost2 govsta2 sociosta2, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l  l1.cum_rebintonset  tm*) //
> /
>         noabb sty(tex)  ;
.                                                         ************************************************************
> ***************;
. * DESCRIPTVE STATISTICS;
. ***************************************************************************;
.                 sum rebintonset_miss l_leaderexits l_cumirr l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_
> 100 l_defense l_smoothtotrade_l  l_cum_rebintonset  tm* if ethdom2==1;

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
rebintonse~s |      2,273    .0228773    .1495451          0          1
l_leaderex~s |      1,969     6.35094    5.761455          0         37
    l_cumirr |      1,969    1.788217     1.99449          0          8
l_cumirrpost |      1,969    1.593702    1.697524          0          6
l_govint_any |      1,969    .5901473    .4919313          0          1
-------------+---------------------------------------------------------
     l_jtdem |      1,839    .0560087    .2300011          0          1
  l_cinc_100 |      1,969    1.242628    2.072245   .0086541   14.78703
l_cinc_3_100 |      1,967    1.601149    3.970772   .0042151   17.60274
   l_defense |      1,969    .1868969    .3899278          0          1
l_smoothto~l |      1,810    2.791242    2.653865          0    10.0085
-------------+---------------------------------------------------------
l_cum_rebi~t |      1,969     2.55612    4.039694          0         27
          tm |      2,273    6.061153     6.34604          0         30
         tm2 |      2,273    76.99208    132.1118          0        900
         tm3 |      2,273    1250.205    3012.405          0      27000

. estpost summarize rebintonset_miss l_leaderexits l_cumirr l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_10
> 0 l_defense l_smoothtotrade_l l_cum_rebintonset tm*  if ethdom2==1  ;

             |  e(count)   e(sum_w)    e(mean)     e(Var)      e(sd)     e(min)     e(max)     e(sum) 
-------------+----------------------------------------------------------------------------------------
rebintonse~s |      2273       2273   .0228773   .0223637   .1495451          0          1         52 
l_leaderex~s |      1969       1969    6.35094   33.19436   5.761455          0         37      12505 
    l_cumirr |      1969       1969   1.788217   3.977991    1.99449          0          8       3521 
l_cumirrpost |      1969       1969   1.593702   2.881586   1.697524          0          6       3138 
l_govint_any |      1969       1969   .5901473   .2419964   .4919313          0          1       1162 
     l_jtdem |      1839       1839   .0560087   .0529005   .2300011          0          1        103 
  l_cinc_100 |      1969       1969   1.242628     4.2942   2.072245   .0086541   14.78703   2446.734 
l_cinc_3_100 |      1967       1967   1.601149   15.76703   3.970772   .0042151   17.60274    3149.46 
   l_defense |      1969       1969   .1868969   .1520437   .3899278          0          1        368 
l_smoothto~l |      1810       1810   2.791242   7.043002   2.653865          0    10.0085   5052.149 
l_cum_rebi~t |      1969       1969    2.55612   16.31913   4.039694          0         27       5033 
          tm |      2273       2273   6.061153   40.27223    6.34604          0         30      13777 
         tm2 |      2273       2273   76.99208   17453.51   132.1118          0        900     175003 
         tm3 |      2273       2273   1250.205    9074583   3012.405          0      27000    2841715 

. esttab, varlabels(`e(labels)') cells(" mean sd min max") tex;

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{1}{cccc}}
\hline\hline
            &\multicolumn{4}{c}{(1)}                            \\
            &\multicolumn{4}{c}{}                               \\
            &        mean&          sd&         min&         max\\
\hline
rebintonset\_miss&    .0228773&    .1495451&           0&           1\\
l\_leaderexits&     6.35094&    5.761455&           0&          37\\
l\_cumirr    &    1.788217&     1.99449&           0&           8\\
l\_cumirrpost&    1.593702&    1.697524&           0&           6\\
l\_govint\_any&    .5901473&    .4919313&           0&           1\\
l\_jtdem     &    .0560087&    .2300011&           0&           1\\
l\_cinc\_100  &    1.242628&    2.072245&    .0086541&    14.78703\\
l\_cinc\_3\_100&    1.601149&    3.970772&    .0042151&    17.60274\\
l\_defense   &    .1868969&    .3899278&           0&           1\\
l\_smoothtotrade\_l&    2.791242&    2.653865&           0&     10.0085\\
l\_cum\_rebintonset&     2.55612&    4.039694&           0&          27\\
tm          &    6.061153&     6.34604&           0&          30\\
tm2         &    76.99208&    132.1118&           0&         900\\
tm3         &    1250.205&    3012.405&           0&       27000\\
\hline
\(N\)       &        2372&            &            &            \\
\hline\hline
\end{tabular}
}

. estpost summarize l_revrsgovstability l_revrssocio  if ethdom2==1  & year > 1989;

             |  e(count)   e(sum_w)    e(mean)     e(Var)      e(sd)     e(min)     e(max)     e(sum) 
-------------+----------------------------------------------------------------------------------------
l_revrsgov~y |       881        881   3.971718   4.972045   2.229808          0         11   3499.083 
l_revrssocio |       881        881   6.588157   4.156022   2.038632          1         11   5804.167 

. esttab, varlabels(`e(labels)') cells(" mean sd min max") tex;

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{1}{cccc}}
\hline\hline
            &\multicolumn{4}{c}{(1)}                            \\
            &\multicolumn{4}{c}{}                               \\
            &        mean&          sd&         min&         max\\
\hline
l\_revrsgovstability&    3.971718&    2.229808&           0&          11\\
l\_revrssocio&    6.588157&    2.038632&           1&          11\\
\hline
\(N\)       &         881&            &            &            \\
\hline\hline
\end{tabular}
}

. ***************************************************************************;
. * MODEL DIAGNOSTICS;
. ***************************************************************************;
. *************************;
. *Check VIF and Tolerance        ;
. *************************;
. *Check VIF and Tolerance        ;
. #delimit;
delimiter now ;
.         collin  l_leaderexits l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebin
> tonset tm* if   sample1==1 ;
(obs=1,615)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
l_leaderexits      1.22    1.10    0.8203      0.1797
l_govint_any      1.33    1.15    0.7524      0.2476
   l_jtdem      1.18    1.09    0.8476      0.1524
l_cinc_100      1.93    1.39    0.5181      0.4819
l_cinc_3_100      1.42    1.19    0.7029      0.2971
 l_defense      1.20    1.10    0.8335      0.1665
l_smoothtotrade_l      1.69    1.30    0.5920      0.4080
l_cum_rebintonset      1.28    1.13    0.7833      0.2167
        tm     47.57    6.90    0.0210      0.9790
       tm2    233.99   15.30    0.0043      0.9957
       tm3     89.42    9.46    0.0112      0.9888
----------------------------------------------------
  Mean VIF     34.75

                           Cond
        Eigenval          Index
---------------------------------
    1     5.7167          1.0000
    2     1.4825          1.9637
    3     1.2285          2.1571
    4     0.9187          2.4945
    5     0.8859          2.5403
    6     0.6296          3.0134
    7     0.4404          3.6030
    8     0.3095          4.2978
    9     0.1866          5.5349
    10     0.1387          6.4192
    11     0.0611          9.6700
    12     0.0018         56.2941
---------------------------------
 Condition Number        56.2941 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0003

.                 collin  l_cumirr l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_re
> bintonset tm* if   sample2==1 ;
(obs=1,615)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
  l_cumirr      1.29    1.14    0.7737      0.2263
l_govint_any      1.33    1.15    0.7524      0.2476
   l_jtdem      1.09    1.04    0.9197      0.0803
l_cinc_100      1.95    1.40    0.5125      0.4875
l_cinc_3_100      1.44    1.20    0.6934      0.3066
 l_defense      1.31    1.14    0.7658      0.2342
l_smoothtotrade_l      1.70    1.30    0.5877      0.4123
l_cum_rebintonset      1.35    1.16    0.7399      0.2601
        tm     47.57    6.90    0.0210      0.9790
       tm2    233.93   15.29    0.0043      0.9957
       tm3     89.37    9.45    0.0112      0.9888
----------------------------------------------------
  Mean VIF     34.76

                           Cond
        Eigenval          Index
---------------------------------
    1     5.5329          1.0000
    2     1.5482          1.8904
    3     1.2222          2.1276
    4     0.9984          2.3541
    5     0.8838          2.5021
    6     0.6290          2.9659
    7     0.4851          3.3773
    8     0.3210          4.1519
    9     0.1776          5.5810
    10     0.1392          6.3043
    11     0.0609          9.5306
    12     0.0018         55.3773
---------------------------------
 Condition Number        55.3773 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0003

.                 collin  l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cu
> m_rebintonset tm* if   sample3==1 ;
(obs=1,615)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
l_cumirrpost      1.25    1.12    0.7994      0.2006
l_govint_any      1.33    1.15    0.7517      0.2483
   l_jtdem      1.13    1.06    0.8885      0.1115
l_cinc_100      1.93    1.39    0.5190      0.4810
l_cinc_3_100      1.45    1.20    0.6903      0.3097
 l_defense      1.27    1.13    0.7854      0.2146
l_smoothtotrade_l      1.69    1.30    0.5923      0.4077
l_cum_rebintonset      1.31    1.14    0.7648      0.2352
        tm     47.57    6.90    0.0210      0.9790
       tm2    233.92   15.29    0.0043      0.9957
       tm3     89.36    9.45    0.0112      0.9888
----------------------------------------------------
  Mean VIF     34.75

                           Cond
        Eigenval          Index
---------------------------------
    1     5.5572          1.0000
    2     1.5298          1.9060
    3     1.2311          2.1246
    4     0.9803          2.3810
    5     0.8920          2.4960
    6     0.6287          2.9730
    7     0.4669          3.4501
    8     0.3332          4.0838
    9     0.1825          5.5186
    10     0.1365          6.3811
    11     0.0601          9.6164
    12     0.0018         55.4970
---------------------------------
 Condition Number        55.4970 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0003

.                 collin  l_revrsgovstability l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade
> _l l_cum_rebintonset tm* if   sample4==1 ;
(obs=739)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
l_revrsgovstability      1.13    1.06    0.8861      0.1139
l_govint_any      1.23    1.11    0.8128      0.1872
   l_jtdem      1.11    1.06    0.8972      0.1028
l_cinc_100      1.91    1.38    0.5231      0.4769
l_cinc_3_100      1.55    1.25    0.6442      0.3558
 l_defense      1.14    1.07    0.8800      0.1200
l_smoothtotrade_l      1.96    1.40    0.5106      0.4894
l_cum_rebintonset      1.41    1.19    0.7093      0.2907
        tm     59.03    7.68    0.0169      0.9831
       tm2    292.76   17.11    0.0034      0.9966
       tm3    109.44   10.46    0.0091      0.9909
----------------------------------------------------
  Mean VIF     42.97

                           Cond
        Eigenval          Index
---------------------------------
    1     6.0179          1.0000
    2     1.3956          2.0765
    3     1.2135          2.2269
    4     0.9591          2.5048
    5     0.8233          2.7036
    6     0.6166          3.1241
    7     0.3849          3.9541
    8     0.3067          4.4296
    9     0.1547          6.2370
    10     0.0842          8.4555
    11     0.0421         11.9525
    12     0.0013         67.6312
---------------------------------
 Condition Number        67.6312 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0002

.                 collin  l_revrssocio l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cu
> m_rebintonset tm* if   sample5==1 ;
(obs=739)

  Collinearity Diagnostics

                        SQRT                   R-
  Variable      VIF     VIF    Tolerance    Squared
----------------------------------------------------
l_revrssocio      1.31    1.14    0.7660      0.2340
l_govint_any      1.23    1.11    0.8127      0.1873
   l_jtdem      1.17    1.08    0.8579      0.1421
l_cinc_100      1.93    1.39    0.5173      0.4827
l_cinc_3_100      1.58    1.26    0.6316      0.3684
 l_defense      1.16    1.08    0.8608      0.1392
l_smoothtotrade_l      1.85    1.36    0.5402      0.4598
l_cum_rebintonset      1.36    1.17    0.7361      0.2639
        tm     59.27    7.70    0.0169      0.9831
       tm2    292.91   17.11    0.0034      0.9966
       tm3    109.39   10.46    0.0091      0.9909
----------------------------------------------------
  Mean VIF     43.01

                           Cond
        Eigenval          Index
---------------------------------
    1     6.1452          1.0000
    2     1.4009          2.0944
    3     1.2166          2.2475
    4     0.9602          2.5298
    5     0.8485          2.6911
    6     0.6080          3.1793
    7     0.3801          4.0208
    8     0.1925          5.6494
    9     0.1524          6.3511
    10     0.0698          9.3860
    11     0.0245         15.8523
    12     0.0013         68.3846
---------------------------------
 Condition Number        68.3846 
 Eigenvalues & Cond Index computed from scaled raw sscp (w/ intercept)
 Det(correlation matrix)    0.0002

.                         *************************;
. *check for influential observations ;
. *************************;
.         *M6
> 
> #delimit;
. logit rebintonset_miss l_leaderexits l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cu
> m_rebintonset tm* if ethdom2==1, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -142.93539  
Iteration 2:   log pseudolikelihood = -135.87054  
Iteration 3:   log pseudolikelihood = -135.82386  
Iteration 4:   log pseudolikelihood = -135.82381  
Iteration 5:   log pseudolikelihood = -135.82381  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      82.23
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -135.82381               Pseudo R2         =     0.0902

                                 (Std. Err. adjusted for 262 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
    l_leaderexits |   .0832349   .0301212     2.76   0.006     .0241984    .1422714
     l_govint_any |   .9247745   .6464034     1.43   0.153     -.342153    2.191702
          l_jtdem |  -.0776716   .9155494    -0.08   0.932    -1.872116    1.716772
       l_cinc_100 |   .3574756   .1078698     3.31   0.001     .1460547    .5688965
     l_cinc_3_100 |   .0369836   .0499995     0.74   0.459    -.0610137    .1349809
        l_defense |  -.3940604   .5682303    -0.69   0.488    -1.507771    .7196505
l_smoothtotrade_l |   -.243195   .1168594    -2.08   0.037    -.4722352   -.0141548
l_cum_rebintonset |   .0505692   .0320097     1.58   0.114    -.0121686    .1133069
               tm |  -.1075233   .2017177    -0.53   0.594    -.5028827    .2878362
              tm2 |   .0034581   .0223667     0.15   0.877    -.0403799     .047296
              tm3 |  -.0000932   .0005635    -0.17   0.869    -.0011976    .0010113
            _cons |  -4.745474    .708667    -6.70   0.000    -6.134436   -3.356512
-----------------------------------------------------------------------------------

.         #delimit;
delimiter now ;
.                 gen id=_n;

.                 predict hat, hat;
(155,687 missing values generated)

.                 predict p;
(option pr assumed; Pr(rebintonset_miss))
(63,332 missing values generated)

.                 scatter hat p,  yline(0.2) ytitle(Leverage, size(vlarge)) xtitle(Pr(Rebel Support Onset), size(vlarg
> e)) scheme(s1mono);

.                         *graph export "~/Dropbox/Interventions/Text/leverage1-revised.pdf", as(pdf) replace;
.                         *repeat  with influencial obs removed;
.                 #delimit;
delimiter now ;
.                 logit rebintonset_miss l_leaderexits l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoo
> thtotrade_l l_cum_rebintonset tm* if ethdom2==1 & hat < .2, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.27765  
Iteration 1:   log pseudolikelihood = -142.37025  
Iteration 2:   log pseudolikelihood = -135.36318  
Iteration 3:   log pseudolikelihood = -135.33143  
Iteration 4:   log pseudolikelihood =  -135.3314  
Iteration 5:   log pseudolikelihood =  -135.3314  

Logistic regression                             Number of obs     =      1,614
                                                Wald chi2(11)     =      80.77
                                                Prob > chi2       =     0.0000
Log pseudolikelihood =  -135.3314               Pseudo R2         =     0.0934

                                 (Std. Err. adjusted for 261 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
    l_leaderexits |   .0780455   .0324381     2.41   0.016      .014468     .141623
     l_govint_any |   1.047248   .7378814     1.42   0.156    -.3989728    2.493469
          l_jtdem |   .0595316   .8287797     0.07   0.943    -1.564847     1.68391
       l_cinc_100 |   .3976586   .1359132     2.93   0.003     .1312736    .6640436
     l_cinc_3_100 |   .0404457   .0495943     0.82   0.415    -.0567573    .1376486
        l_defense |   -.263775   .5701166    -0.46   0.644    -1.381183    .8536329
l_smoothtotrade_l |  -.2531765   .1149437    -2.20   0.028     -.478462   -.0278909
l_cum_rebintonset |   .0505413   .0323433     1.56   0.118    -.0128504    .1139329
               tm |  -.0943784   .2038572    -0.46   0.643    -.4939311    .3051744
              tm2 |   .0025334   .0224393     0.11   0.910    -.0414469    .0465137
              tm3 |  -.0000813   .0005634    -0.14   0.885    -.0011855     .001023
            _cons |  -4.897712   .8283971    -5.91   0.000    -6.521341   -3.274084
-----------------------------------------------------------------------------------

.                         est sto out1;

.                         /*outreg2 using "C:\Users\Chris\OneDrive\Desktop\robust1.xls", 
>                         alpha(0.001, 0.01, 0.05, 0.1) symbol(***, **, *, +) bdec(2) sdec(2)
>                         e(all)  excel replace;
> */
>                         drop id hat p   ;

.                         *M7
> #delimit;
.         logit rebintonset_miss l_cumirr l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l
> _cum_rebintonset tm* if ethdom2==1, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -147.53683  
Iteration 2:   log pseudolikelihood = -133.22188  
Iteration 3:   log pseudolikelihood = -133.11215  
Iteration 4:   log pseudolikelihood = -133.11195  
Iteration 5:   log pseudolikelihood = -133.11195  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      91.33
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -133.11195               Pseudo R2         =     0.1084

                                 (Std. Err. adjusted for 262 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
         l_cumirr |   .2931253   .0821929     3.57   0.000     .1320301    .4542205
     l_govint_any |    .998995   .6603444     1.51   0.130    -.2952562    2.293246
          l_jtdem |   .3878246   .6352058     0.61   0.541    -.8571558    1.632805
       l_cinc_100 |   .3311304    .126522     2.62   0.009     .0831519     .579109
     l_cinc_3_100 |   .0706685   .0569777     1.24   0.215    -.0410057    .1823428
        l_defense |  -.5247568   .5642862    -0.93   0.352    -1.630738    .5812239
l_smoothtotrade_l |  -.2189281   .1196534    -1.83   0.067    -.4534445    .0155882
l_cum_rebintonset |   .0272211   .0454562     0.60   0.549    -.0618714    .1163135
               tm |  -.0887908   .2116771    -0.42   0.675    -.5036703    .3260887
              tm2 |   .0018556   .0231316     0.08   0.936    -.0434815    .0471927
              tm3 |  -.0000318   .0005825    -0.05   0.956    -.0011736    .0011099
            _cons |  -4.977369   .7418544    -6.71   0.000    -6.431377   -3.523361
-----------------------------------------------------------------------------------

.         #delimit;
delimiter now ;
.                 gen id=_n;

.                 predict hat, hat;
(155,687 missing values generated)

.                 predict p;
(option pr assumed; Pr(rebintonset_miss))
(63,332 missing values generated)

.                 scatter hat p,  yline(0.2) ytitle(Leverage, size(vlarge)) xtitle(Pr(Rebel Support Onset), size(vlarg
> e)) scheme(s1mono);

.                         *graph export "~/Dropbox/Interventions/Text/leverage2-revised.pdf", as(pdf) replace;
.                         *repeat  with influencial obs removed;
.                 #delimit;
delimiter now ;
.                 logit rebintonset_miss l_cumirr l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtot
> rade_l l_cum_rebintonset tm* if ethdom2==1 & hat < .2, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.22131  
Iteration 1:   log pseudolikelihood = -146.96131  
Iteration 2:   log pseudolikelihood = -131.87268  
Iteration 3:   log pseudolikelihood = -131.73926  
Iteration 4:   log pseudolikelihood =  -131.7389  
Iteration 5:   log pseudolikelihood =  -131.7389  

Logistic regression                             Number of obs     =      1,611
                                                Wald chi2(11)     =      90.73
                                                Prob > chi2       =     0.0000
Log pseudolikelihood =  -131.7389               Pseudo R2         =     0.1172

                                 (Std. Err. adjusted for 261 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
         l_cumirr |   .3091825   .0836465     3.70   0.000     .1452384    .4731266
     l_govint_any |   1.253502   .8583702     1.46   0.144    -.4288723    2.935877
          l_jtdem |   .3225853    .549194     0.59   0.557    -.7538152    1.398986
       l_cinc_100 |    .390471   .1579262     2.47   0.013     .0809413    .7000007
     l_cinc_3_100 |   .0760156   .0570078     1.33   0.182    -.0357177    .1877489
        l_defense |  -.4951138   .5957189    -0.83   0.406    -1.662701    .6724737
l_smoothtotrade_l |  -.2229213   .1177118    -1.89   0.058    -.4536322    .0077896
l_cum_rebintonset |   .0292719   .0457183     0.64   0.522    -.0603342    .1188781
               tm |  -.0600391   .2134378    -0.28   0.778    -.4783694    .3582912
              tm2 |   .0003146   .0229942     0.01   0.989    -.0447532    .0453824
              tm3 |  -.0000235   .0005815    -0.04   0.968    -.0011633    .0011162
            _cons |  -5.366226   1.030084    -5.21   0.000    -7.385153   -3.347299
-----------------------------------------------------------------------------------

.                                 est sto out2;

.                                 drop id hat p;

.                                                                                 /*outreg2 using "C:\Users\Chris\OneD
> rive\Desktop\robust2.xls", 
>                         alpha(0.001, 0.01, 0.05, 0.1) symbol(***, **, *, +) bdec(2) sdec(2)
>                         e(all)  excel replace;
>                         */
> 
>                         
>                         
> *M8     
> #delimit;
.                         logit rebintonset_miss l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense
>  l_smoothtotrade_l l_cum_rebintonset tm* if ethdom2==1, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -141.78665  
Iteration 2:   log pseudolikelihood = -132.98437  
Iteration 3:   log pseudolikelihood = -132.93217  
Iteration 4:   log pseudolikelihood = -132.93212  
Iteration 5:   log pseudolikelihood = -132.93212  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      73.47
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -132.93212               Pseudo R2         =     0.1096

                                 (Std. Err. adjusted for 262 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_cumirrpost |   .3963641    .103052     3.85   0.000     .1943858    .5983423
     l_govint_any |   .9985385   .6332651     1.58   0.115    -.2426383    2.239715
          l_jtdem |   .2031574   .6765343     0.30   0.764    -1.122825     1.52914
       l_cinc_100 |   .3815246   .1175903     3.24   0.001     .1510518    .6119974
     l_cinc_3_100 |   .0812636    .054879     1.48   0.139    -.0262973    .1888246
        l_defense |  -.5594131   .5350624    -1.05   0.296    -1.608116      .48929
l_smoothtotrade_l |  -.2360101   .1124364    -2.10   0.036    -.4563814   -.0156389
l_cum_rebintonset |    .038774   .0385946     1.00   0.315    -.0368701    .1144181
               tm |  -.0766534     .21246    -0.36   0.718    -.4930674    .3397607
              tm2 |   .0007244   .0230149     0.03   0.975    -.0443839    .0458327
              tm3 |  -.0000173   .0005803    -0.03   0.976    -.0011547    .0011201
            _cons |  -5.192426   .7337549    -7.08   0.000    -6.630559   -3.754293
-----------------------------------------------------------------------------------

.         #delimit;
delimiter now ;
.                 gen id=_n;

.                 predict hat, hat;
(155,687 missing values generated)

.                 predict p;
(option pr assumed; Pr(rebintonset_miss))
(63,332 missing values generated)

.                 scatter hat p,  yline(0.2) ytitle(Leverage, size(vlarge)) xtitle(Pr(Rebel Support Onset), size(vlarg
> e)) scheme(s1mono);

.                         *graph export "~/Dropbox/Interventions/Text/leverage3-revised.pdf", as(pdf) replace;
.                         *repeat  with influencial obs removed;
.                 #delimit;
delimiter now ;
.                 logit rebintonset_miss l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoot
> htotrade_l l_cum_rebintonset tm* if ethdom2==1 & hat < .2, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -149.27765  
Iteration 1:   log pseudolikelihood = -141.72851  
Iteration 2:   log pseudolikelihood = -132.78211  
Iteration 3:   log pseudolikelihood = -132.72652  
Iteration 4:   log pseudolikelihood = -132.72647  
Iteration 5:   log pseudolikelihood = -132.72647  

Logistic regression                             Number of obs     =      1,614
                                                Wald chi2(11)     =      74.31
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -132.72647               Pseudo R2         =     0.1109

                                 (Std. Err. adjusted for 261 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_cumirrpost |   .3833553   .1074094     3.57   0.000     .1728368    .5938738
     l_govint_any |   1.055316   .6944452     1.52   0.129    -.3057719    2.416403
          l_jtdem |   .2593258    .639161     0.41   0.685    -.9934068    1.512058
       l_cinc_100 |   .4020722   .1364939     2.95   0.003     .1345491    .6695952
     l_cinc_3_100 |    .081656   .0543568     1.50   0.133    -.0248813    .1881934
        l_defense |  -.4789155   .5539034    -0.86   0.387    -1.564546    .6067151
l_smoothtotrade_l |  -.2421578   .1126721    -2.15   0.032    -.4629911   -.0213244
l_cum_rebintonset |   .0386093   .0387605     1.00   0.319    -.0373598    .1145784
               tm |  -.0713389   .2128531    -0.34   0.738    -.4885233    .3458455
              tm2 |   .0003406   .0229948     0.01   0.988    -.0447284    .0454096
              tm3 |  -.0000135   .0005794    -0.02   0.981     -.001149    .0011221
            _cons |  -5.247217   .7923359    -6.62   0.000    -6.800167   -3.694267
-----------------------------------------------------------------------------------

.                                         est sto out3;

.                                         drop id hat p;

.                                                                                 /*outreg2 using "C:\Users\Chris\OneD
> rive\Desktop\robust3.xls", 
>                         alpha(0.001, 0.01, 0.05, 0.1) symbol(***, **, *, +) bdec(2) sdec(2)
>                         e(all)  excel replace;
>                         */
>                         
> *M9             
> #delimit;
.                         logit rebintonset_miss l_revrsgovstability l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_
> defense l_smoothtotrade_l l_cum_rebintonset tm* if ethdom2==1  & year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -81.197693  
Iteration 2:   log pseudolikelihood = -69.531464  
Iteration 3:   log pseudolikelihood = -69.020523  
Iteration 4:   log pseudolikelihood =  -69.00739  
Iteration 5:   log pseudolikelihood = -69.007284  
Iteration 6:   log pseudolikelihood = -69.007284  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      78.65
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -69.007284               Pseudo R2         =     0.1848

                                   (Std. Err. adjusted for 132 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2627299   .0663368     3.96   0.000     .1327121    .3927477
       l_govint_any |   1.469091   .8414931     1.75   0.081    -.1802048    3.118388
            l_jtdem |   .4115834   .8389401     0.49   0.624    -1.232709    2.055876
         l_cinc_100 |   .3900646   .1626279     2.40   0.016     .0713197    .7088094
       l_cinc_3_100 |  -.0845194   .0649166    -1.30   0.193    -.2117536    .0427148
          l_defense |  -.9323822   .8660014    -1.08   0.282    -2.629714    .7649493
  l_smoothtotrade_l |  -.1671602   .1745093    -0.96   0.338    -.5091922    .1748717
  l_cum_rebintonset |   .0221333   .0353106     0.63   0.531    -.0470742    .0913409
                 tm |   .2256607   .2195178     1.03   0.304    -.2045862    .6559077
                tm2 |  -.0291859   .0250149    -1.17   0.243    -.0782142    .0198424
                tm3 |   .0006586   .0006286     1.05   0.295    -.0005733    .0018906
              _cons |  -6.071243   .8895326    -6.83   0.000    -7.814695   -4.327791
-------------------------------------------------------------------------------------

.         #delimit;
delimiter now ;
.                 gen id=_n;

.                 predict hat, hat;
(156,563 missing values generated)

.                 predict p;
(option pr assumed; Pr(rebintonset_miss))
(107,190 missing values generated)

.                 scatter hat p,  yline(0.2) ytitle(Leverage, size(vlarge)) xtitle(Pr(Rebel Support Onset), size(vlarg
> e)) scheme(s1mono);

.                         *graph export "~/Dropbox/Interventions/Text/leverage4-revised.pdf", as(pdf) replace;
.         *repeat  with influencial obs removed;
.                 #delimit;
delimiter now ;
.                 logit rebintonset_miss l_revrsgovstability l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense 
> l_smoothtotrade_l l_cum_rebintonset tm* if ethdom2==1 & hat < .2, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.598269  
Iteration 1:   log pseudolikelihood = -79.521052  
Iteration 2:   log pseudolikelihood = -66.467419  
Iteration 3:   log pseudolikelihood = -65.858219  
Iteration 4:   log pseudolikelihood = -65.836915  
Iteration 5:   log pseudolikelihood = -65.836675  
Iteration 6:   log pseudolikelihood = -65.836675  

Logistic regression                             Number of obs     =        737
                                                Wald chi2(11)     =     116.27
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -65.836675               Pseudo R2         =     0.2218

                                   (Std. Err. adjusted for 130 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |    .282969   .0592895     4.77   0.000     .1667638    .3991743
       l_govint_any |    2.00304   .8735739     2.29   0.022     .2908662    3.715213
            l_jtdem |   .6394792   .5496223     1.16   0.245    -.4377606    1.716719
         l_cinc_100 |   .6066229   .1809864     3.35   0.001     .2518961    .9613497
       l_cinc_3_100 |  -.0594398   .0614634    -0.97   0.334    -.1799059    .0610263
          l_defense |  -.1625446   .6305362    -0.26   0.797    -1.398373    1.073284
  l_smoothtotrade_l |  -.2701081   .1824248    -1.48   0.139    -.6276542     .087438
  l_cum_rebintonset |   .0175219   .0395761     0.44   0.658    -.0600459    .0950897
                 tm |    .237595   .2134645     1.11   0.266    -.1807877    .6559777
                tm2 |  -.0305958   .0246804    -1.24   0.215    -.0789685     .017777
                tm3 |   .0006716   .0006161     1.09   0.276    -.0005359    .0018792
              _cons |  -6.858723   1.068524    -6.42   0.000    -8.952991   -4.764455
-------------------------------------------------------------------------------------

.                                         est sto out4;

.                                         drop id hat p;

.                                 /*outreg2 using "C:\Users\Chris\OneDrive\Desktop\robust4.xls", 
>                         alpha(0.001, 0.01, 0.05, 0.1) symbol(***, **, *, +) bdec(2) sdec(2)
>                         e(all)  excel replace;
>                         */
>         
> 
> *M10
> #delimit;
.         logit rebintonset_miss l_revrssocio l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade
> _l l_cum_rebintonset tm* if ethdom2==1  & year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -80.589077  
Iteration 2:   log pseudolikelihood = -71.013381  
Iteration 3:   log pseudolikelihood = -70.457529  
Iteration 4:   log pseudolikelihood = -70.441956  
Iteration 5:   log pseudolikelihood = -70.441813  
Iteration 6:   log pseudolikelihood = -70.441813  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      41.57
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -70.441813               Pseudo R2         =     0.1678

                                 (Std. Err. adjusted for 132 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_revrssocio |   .2720274   .1387282     1.96   0.050      .000125    .5439298
     l_govint_any |   1.528346    .739065     2.07   0.039     .0798051    2.976887
          l_jtdem |   .9585084   .8440331     1.14   0.256    -.6957661    2.612783
       l_cinc_100 |   .4306541   .1556302     2.77   0.006     .1256246    .7356836
     l_cinc_3_100 |  -.0090125    .059242    -0.15   0.879    -.1251247    .1070998
        l_defense |  -.9952087   .7648776    -1.30   0.193    -2.494341     .503924
l_smoothtotrade_l |  -.2757219   .1813071    -1.52   0.128    -.6310772    .0796335
l_cum_rebintonset |  -.0194305   .0399938    -0.49   0.627    -.0978169    .0589559
               tm |   .2554824    .229842     1.11   0.266    -.1949996    .7059644
              tm2 |  -.0306658   .0259549    -1.18   0.237    -.0815365    .0202049
              tm3 |   .0006727   .0006449     1.04   0.297    -.0005914    .0019367
            _cons |  -6.620706   1.398965    -4.73   0.000    -9.362627   -3.878785
-----------------------------------------------------------------------------------

.         #delimit;
delimiter now ;
.                 gen id=_n;

.                 predict hat, hat;
(156,563 missing values generated)

.                 predict p;
(option pr assumed; Pr(rebintonset_miss))
(107,190 missing values generated)

.                 scatter hat p,  yline(0.2) ytitle(Leverage, size(vlarge)) xtitle(Pr(Rebel Support Onset), size(vlarg
> e)) scheme(s1mono);

.                         *graph export "~/Dropbox/Interventions/Text/leverage5-revised.pdf", as(pdf) replace;
.         *repeat  with influencial obs removed;
.                 #delimit;
delimiter now ;
.                 logit rebintonset_miss l_revrssocio l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoot
> htotrade_l l_cum_rebintonset tm* if ethdom2==1 & hat < .2, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.622978  
Iteration 1:   log pseudolikelihood = -79.590529  
Iteration 2:   log pseudolikelihood = -69.405462  
Iteration 3:   log pseudolikelihood =   -68.9643  
Iteration 4:   log pseudolikelihood = -68.951498  
Iteration 5:   log pseudolikelihood = -68.951396  
Iteration 6:   log pseudolikelihood = -68.951396  

Logistic regression                             Number of obs     =        738
                                                Wald chi2(11)     =      51.12
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -68.951396               Pseudo R2         =     0.1852

                                 (Std. Err. adjusted for 131 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_revrssocio |    .234986   .1425525     1.65   0.099    -.0444117    .5143837
     l_govint_any |   1.866028   .8215582     2.27   0.023      .255804    3.476253
          l_jtdem |   1.133419   .7194726     1.58   0.115    -.2767214    2.543559
       l_cinc_100 |   .5494772   .1771644     3.10   0.002     .2022413    .8967131
     l_cinc_3_100 |  -.0050767   .0574678    -0.09   0.930    -.1177115    .1075581
        l_defense |  -.4060016   .6757818    -0.60   0.548     -1.73051    .9185064
l_smoothtotrade_l |   -.334266   .1884528    -1.77   0.076    -.7036267    .0350946
l_cum_rebintonset |  -.0234642   .0450224    -0.52   0.602    -.1117065     .064778
               tm |   .3034775    .240169     1.26   0.206    -.1672451    .7742002
              tm2 |  -.0341966   .0265963    -1.29   0.199    -.0863244    .0179312
              tm3 |   .0007319   .0006556     1.12   0.264     -.000553    .0020169
            _cons |  -6.886253   1.568187    -4.39   0.000    -9.959844   -3.812662
-----------------------------------------------------------------------------------

.                         /* outreg2 using "C:\Users\Chris\OneDrive\Desktop\robust5.xls", 
>                         alpha(0.001, 0.01, 0.05, 0.1) symbol(***, **, *, +) bdec(2) sdec(2)
>                         e(all)  excel replace;
>                         */
>                         *weirdly this is costa rica-US that is driving this????
>                         list gwnoa gwnoa_3 year l_revrssocio hat if hat > .2 & hat != .;
.                         est sto out5;

.                         drop id hat p;

.                 *Create table 6         ;
. estout out1 out2 out3 out4 out5, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebintonset tm*) ///
>         noabb sty(tex)          ;

            &        out1   &        out2   &        out3   &        out4   &        out5   \\
            &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   \\
rebintonset_miss&               &               &               &               &               \\
l_leaderexits&       0.078*  &               &               &               &               \\
            &     (0.032)   &               &               &               &               \\
l_cumirr    &               &       0.309***&               &               &               \\
            &               &     (0.084)   &               &               &               \\
l_cumirrpost&               &               &       0.383***&               &               \\
            &               &               &     (0.107)   &               &               \\
l_revrsgovstability&               &               &               &       0.283***&               \\
            &               &               &               &     (0.059)   &               \\
l_revrssocio&               &               &               &               &       0.235+  \\
            &               &               &               &               &     (0.143)   \\
l_govint_any&       1.047   &       1.254   &       1.055   &       2.003*  &       1.866*  \\
            &     (0.738)   &     (0.858)   &     (0.694)   &     (0.874)   &     (0.822)   \\
l_jtdem     &       0.060   &       0.323   &       0.259   &       0.639   &       1.133   \\
            &     (0.829)   &     (0.549)   &     (0.639)   &     (0.550)   &     (0.719)   \\
l_cinc_100  &       0.398** &       0.390*  &       0.402** &       0.607***&       0.549** \\
            &     (0.136)   &     (0.158)   &     (0.136)   &     (0.181)   &     (0.177)   \\
l_cinc_3_100&       0.040   &       0.076   &       0.082   &      -0.059   &      -0.005   \\
            &     (0.050)   &     (0.057)   &     (0.054)   &     (0.061)   &     (0.057)   \\
l_defense   &      -0.264   &      -0.495   &      -0.479   &      -0.163   &      -0.406   \\
            &     (0.570)   &     (0.596)   &     (0.554)   &     (0.631)   &     (0.676)   \\
l_smoothtotrade_l&      -0.253*  &      -0.223+  &      -0.242*  &      -0.270   &      -0.334+  \\
            &     (0.115)   &     (0.118)   &     (0.113)   &     (0.182)   &     (0.188)   \\
l_cum_rebintonset&       0.051   &       0.029   &       0.039   &       0.018   &      -0.023   \\
            &     (0.032)   &     (0.046)   &     (0.039)   &     (0.040)   &     (0.045)   \\
tm          &      -0.094   &      -0.060   &      -0.071   &       0.238   &       0.303   \\
            &     (0.204)   &     (0.213)   &     (0.213)   &     (0.213)   &     (0.240)   \\
tm2         &       0.003   &       0.000   &       0.000   &      -0.031   &      -0.034   \\
            &     (0.022)   &     (0.023)   &     (0.023)   &     (0.025)   &     (0.027)   \\
tm3         &      -0.000   &      -0.000   &      -0.000   &       0.001   &       0.001   \\
            &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   \\
_cons       &      -4.898***&      -5.366***&      -5.247***&      -6.859***&      -6.886***\\
            &     (0.828)   &     (1.030)   &     (0.792)   &     (1.069)   &     (1.568)   \\
N           &        1614   &        1611   &        1614   &         737   &         738   \\
ll          &    -135.331   &    -131.739   &    -132.726   &     -65.837   &     -68.951   \\
aic         &     294.663   &     287.478   &     289.453   &     155.673   &     161.903   \\

.                                         ***************************************************************************;
. * ALTERNATIVE SPECIFICATIONS;
. ***************************************************************************;
.         #delimit;
delimiter now ;
. *************************;
. * MODELS WITH OBJECTIVE MEASURES OF INSTABILITY AND GDP ;
. *************************;
. gen lninstability = ln(instability+1);
(19,831 missing values generated)

. gen lngdp_growth = ln(gdp_growth+1);
(14,863 missing values generated)

. *Instability;
. logit rebintonset_miss l1.lninstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotra
> de_l l_cum_rebintonset tm* if ethdom2==1  , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -145.88443  
Iteration 1:   log pseudolikelihood = -140.47632  
Iteration 2:   log pseudolikelihood =  -135.1416  
Iteration 3:   log pseudolikelihood = -135.11316  
Iteration 4:   log pseudolikelihood = -135.11314  
Iteration 5:   log pseudolikelihood = -135.11314  

Logistic regression                             Number of obs     =      1,443
                                                Wald chi2(11)     =      59.46
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -135.11314               Pseudo R2         =     0.0738

                                 (Std. Err. adjusted for 241 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
 rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
    lninstability |
              L1. |   .1020721   .2104921     0.48   0.628    -.3104848     .514629
                  |
       govint_any |
              L1. |   1.228574   .8631345     1.42   0.155    -.4631381    2.920287
                  |
            jtdem |
              L1. |   .6482921   .6216126     1.04   0.297    -.5700463     1.86663
                  |
         cinc_100 |
              L1. |   .4076696   .1652301     2.47   0.014     .0838245    .7315147
                  |
       cinc_3_100 |
              L1. |   .0293058   .0563528     0.52   0.603    -.0811436    .1397551
                  |
          defense |
              L1. |   .0603657   .5716277     0.11   0.916    -1.060004    1.180735
                  |
  smoothtotrade_l |
              L1. |  -.1702139   .1196374    -1.42   0.155    -.4046988    .0642711
                  |
l_cum_rebintonset |   .0677553    .032242     2.10   0.036     .0045621    .1309484
               tm |  -.0524776   .2304568    -0.23   0.820    -.5041647    .3992094
              tm2 |  -.0021027   .0257272    -0.08   0.935    -.0525272    .0483217
              tm3 |   .0000691   .0006758     0.10   0.919    -.0012553    .0013935
            _cons |  -4.846017   1.097025    -4.42   0.000    -6.996146   -2.695888
-----------------------------------------------------------------------------------

.                         est sto instab;

.                         *Growth
> logit rebintonset_miss l1.lngdp_growth l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrad
> e_l l_cum_rebintonset tm* if ethdom2==1  , robust cl(dyadid_ep);
.                         est sto grow ;

.                                                                         *Create table ;
.         estout instab grow, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l1. lninstability l1.lngdp_growth  ///
>         l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l tm*) ///
>         noabb sty(tex)                          ;

            &      instab   &        grow   \\
            &        b/se   &        b/se   \\
rebintonset_miss&               &               \\
L.lninstability&       0.102   &       0.102   \\
            &     (0.210)   &     (0.210)   \\
L.govint_any&       1.229   &       1.229   \\
            &     (0.863)   &     (0.863)   \\
L.jtdem     &       0.648   &       0.648   \\
            &     (0.622)   &     (0.622)   \\
L.cinc_100  &       0.408*  &       0.408*  \\
            &     (0.165)   &     (0.165)   \\
L.cinc_3_100&       0.029   &       0.029   \\
            &     (0.056)   &     (0.056)   \\
L.defense   &       0.060   &       0.060   \\
            &     (0.572)   &     (0.572)   \\
L.smoothtotrade_l&      -0.170   &      -0.170   \\
            &     (0.120)   &     (0.120)   \\
tm          &      -0.052   &      -0.052   \\
            &     (0.230)   &     (0.230)   \\
tm2         &      -0.002   &      -0.002   \\
            &     (0.026)   &     (0.026)   \\
tm3         &       0.000   &       0.000   \\
            &     (0.001)   &     (0.001)   \\
l_cum_rebintonset&       0.068*  &       0.068*  \\
            &     (0.032)   &     (0.032)   \\
_cons       &      -4.846***&      -4.846***\\
            &     (1.097)   &     (1.097)   \\
_           &               &               \\
L.          &               &               \\
            &               &               \\
L.lngdp_growth&               &               \\
            &               &               \\
L.govint_any&               &               \\
            &               &               \\
L.jtdem     &               &               \\
            &               &               \\
L.cinc_100  &               &               \\
            &               &               \\
L.cinc_3_100&               &               \\
            &               &               \\
L.defense   &               &               \\
            &               &               \\
L.smoothtotrade_l&               &               \\
            &               &               \\
lninstability&               &               \\
            &               &               \\
N           &        1443   &        1443   \\
ll          &    -135.113   &    -135.113   \\
aic         &     294.226   &     294.226   \\

. *************************;
. * MODELS INCLUDING OBSERVATIONS AFTER AN ONSET (IE, MISSING OBSERVATIONS);
. *************************;
. logit rebintonset  l_leaderexits l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_re
> bintonset  pys* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -150.84931  
Iteration 1:   log pseudolikelihood = -144.63912  
Iteration 2:   log pseudolikelihood = -139.70966  
Iteration 3:   log pseudolikelihood = -139.65359  
Iteration 4:   log pseudolikelihood = -139.65352  
Iteration 5:   log pseudolikelihood = -139.65352  

Logistic regression                             Number of obs     =      1,700
                                                Wald chi2(11)     =      60.10
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -139.65352               Pseudo R2         =     0.0742

                                 (Std. Err. adjusted for 270 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
      rebintonset |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
    l_leaderexits |    .074681   .0306261     2.44   0.015      .014655    .1347071
     l_govint_any |   .8459875   .6629805     1.28   0.202    -.4534304    2.145405
          l_jtdem |   -.078367    1.05262    -0.07   0.941    -2.141465    1.984731
       l_cinc_100 |   .3512488   .1153405     3.05   0.002     .1251855    .5773121
     l_cinc_3_100 |   .0418213   .0571632     0.73   0.464    -.0702164     .153859
        l_defense |  -.3419284   .5990383    -0.57   0.568    -1.516022    .8321651
l_smoothtotrade_l |  -.2231257   .1261331    -1.77   0.077     -.470342    .0240906
l_cum_rebintonset |   .0467853   .0345249     1.36   0.175    -.0208823    .1144528
              pys |   .1122403   .2026583     0.55   0.580    -.2849627    .5094433
             pys2 |  -.0091287   .0213496    -0.43   0.669    -.0509731    .0327158
             pys3 |    .000105   .0005404     0.19   0.846    -.0009541     .001164
            _cons |  -5.451831   .7487403    -7.28   0.000    -6.919335   -3.984327
-----------------------------------------------------------------------------------

.                         est sto alt1;

. logit rebintonset  l_cumirr l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebinto
> nset  pys* if ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -150.84931  
Iteration 1:   log pseudolikelihood = -148.30508  
Iteration 2:   log pseudolikelihood = -136.63586  
Iteration 3:   log pseudolikelihood = -136.54249  
Iteration 4:   log pseudolikelihood = -136.54237  
Iteration 5:   log pseudolikelihood = -136.54237  

Logistic regression                             Number of obs     =      1,700
                                                Wald chi2(11)     =      65.54
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -136.54237               Pseudo R2         =     0.0948

                                 (Std. Err. adjusted for 270 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
      rebintonset |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
         l_cumirr |    .291573   .0898426     3.25   0.001     .1154847    .4676612
     l_govint_any |   .9101919   .6690761     1.36   0.174    -.4011732    2.221557
          l_jtdem |       .374   .7173253     0.52   0.602    -1.031932    1.779932
       l_cinc_100 |   .3244199   .1302882     2.49   0.013     .0690598    .5797801
     l_cinc_3_100 |   .0784546   .0651607     1.20   0.229     -.049258    .2061672
        l_defense |  -.4674768   .5780263    -0.81   0.419    -1.600387    .6654339
l_smoothtotrade_l |  -.2015724   .1251051    -1.61   0.107     -.446774    .0436292
l_cum_rebintonset |   .0161736   .0529624     0.31   0.760    -.0876308    .1199781
              pys |   .1261646   .2092742     0.60   0.547    -.2840054    .5363345
             pys2 |  -.0099417   .0219151    -0.45   0.650    -.0528946    .0330112
             pys3 |   .0001422   .0005536     0.26   0.797    -.0009429    .0012273
            _cons |  -5.720587   .7515203    -7.61   0.000     -7.19354   -4.247634
-----------------------------------------------------------------------------------

.                         est sto alt2;

. logit rebintonset  l_cumirrpost l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_reb
> intonset  pys* if ethdom2==1  , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -150.84931  
Iteration 1:   log pseudolikelihood = -143.32953  
Iteration 2:   log pseudolikelihood = -136.55408  
Iteration 3:   log pseudolikelihood = -136.50268  
Iteration 4:   log pseudolikelihood = -136.50263  
Iteration 5:   log pseudolikelihood = -136.50263  

Logistic regression                             Number of obs     =      1,700
                                                Wald chi2(11)     =      48.44
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -136.50263               Pseudo R2         =     0.0951

                                 (Std. Err. adjusted for 270 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
      rebintonset |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_cumirrpost |   .3890258   .1127193     3.45   0.001        .1681    .6099516
     l_govint_any |   .9146014   .6438631     1.42   0.155    -.3473471     2.17655
          l_jtdem |   .1412078   .7995916     0.18   0.860    -1.425963    1.708379
       l_cinc_100 |    .375845    .122318     3.07   0.002     .1361061    .6155839
     l_cinc_3_100 |   .0873351   .0630604     1.38   0.166     -.036261    .2109312
        l_defense |     -.5113   .5635923    -0.91   0.364    -1.615921    .5933206
l_smoothtotrade_l |   -.217936   .1190518    -1.83   0.067    -.4512732    .0154012
l_cum_rebintonset |   .0314307     .04281     0.73   0.463    -.0524753    .1153367
              pys |   .1430487   .2100416     0.68   0.496    -.2686252    .5547225
             pys2 |  -.0113864   .0218508    -0.52   0.602    -.0542133    .0314404
             pys3 |   .0001622    .000555     0.29   0.770    -.0009257      .00125
            _cons |  -5.951346    .783094    -7.60   0.000    -7.486182    -4.41651
-----------------------------------------------------------------------------------

.                         est sto alt3;

. logit rebintonset  l_revrsgovstability l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_
> cum_rebintonset pys* if year > 1989 & ethdom2==1 , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -85.932275  
Iteration 1:   log pseudolikelihood = -85.342034  
Iteration 2:   log pseudolikelihood = -71.077033  
Iteration 3:   log pseudolikelihood = -70.522778  
Iteration 4:   log pseudolikelihood = -70.505455  
Iteration 5:   log pseudolikelihood = -70.505213  
Iteration 6:   log pseudolikelihood = -70.505213  

Logistic regression                             Number of obs     =        793
                                                Wald chi2(11)     =     119.88
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -70.505213               Pseudo R2         =     0.1795

                                   (Std. Err. adjusted for 137 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
        rebintonset |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2577581   .0738491     3.49   0.000     .1130166    .4024997
       l_govint_any |   1.533207   .8755899     1.75   0.080    -.1829175    3.249332
            l_jtdem |   .1426936    .976447     0.15   0.884    -1.771107    2.056495
         l_cinc_100 |   .3961311   .1721022     2.30   0.021     .0588171    .7334451
       l_cinc_3_100 |  -.1040871   .0689838    -1.51   0.131    -.2392929    .0311187
          l_defense |  -.8531606    .951214    -0.90   0.370    -2.717506    1.011185
  l_smoothtotrade_l |  -.1501585   .1785925    -0.84   0.400    -.5001934    .1998764
  l_cum_rebintonset |   .0257547   .0410152     0.63   0.530    -.0546336     .106143
                pys |    .464789    .185804     2.50   0.012     .1006198    .8289581
               pys2 |  -.0383367   .0191113    -2.01   0.045    -.0757941   -.0008792
               pys3 |   .0007152   .0004861     1.47   0.141    -.0002375    .0016679
              _cons |  -7.249119   .9463239    -7.66   0.000    -9.103879   -5.394358
-------------------------------------------------------------------------------------

.                         est sto alt4;

. logit rebintonset  l_revrssocio l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_reb
> intonset pys* if year > 1989 & ethdom2==1, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -85.932275  
Iteration 1:   log pseudolikelihood = -82.877097  
Iteration 2:   log pseudolikelihood = -71.874406  
Iteration 3:   log pseudolikelihood = -71.386748  
Iteration 4:   log pseudolikelihood = -71.373355  
Iteration 5:   log pseudolikelihood = -71.373192  
Iteration 6:   log pseudolikelihood = -71.373192  

Logistic regression                             Number of obs     =        793
                                                Wald chi2(11)     =      60.32
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -71.373192               Pseudo R2         =     0.1694

                                 (Std. Err. adjusted for 137 clusters in dyadid_ep)
-----------------------------------------------------------------------------------
                  |               Robust
      rebintonset |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
     l_revrssocio |   .2989173    .142064     2.10   0.035     .0204769    .5773577
     l_govint_any |   1.529901   .8131142     1.88   0.060    -.0637732    3.123576
          l_jtdem |    .682257   1.040207     0.66   0.512    -1.356511    2.721025
       l_cinc_100 |   .4490293   .1612318     2.78   0.005     .1330208    .7650379
     l_cinc_3_100 |  -.0206982   .0697833    -0.30   0.767    -.1574709    .1160745
        l_defense |  -.8911806   .8353972    -1.07   0.286    -2.528529    .7461678
l_smoothtotrade_l |  -.2562239   .1936511    -1.32   0.186    -.6357731    .1233254
l_cum_rebintonset |  -.0180012   .0449136    -0.40   0.689    -.1060303    .0700279
              pys |   .4982145    .170871     2.92   0.004     .1633134    .8331156
             pys2 |  -.0389878   .0193491    -2.01   0.044    -.0769113   -.0010643
             pys3 |     .00069   .0005069     1.36   0.173    -.0003035    .0016835
            _cons |  -8.075865   1.328401    -6.08   0.000    -10.67948   -5.472247
-----------------------------------------------------------------------------------

.                         est sto alt5;

. *Create table   
> estout alt*, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebintonset tm*) ///
>         noabb sty(tex)          ;
.                                         *************************;
. * MODELS WITH ALTERNATE CLUSTERING;
. *************************;
. logit rebintonset_miss c.l_leaderexits l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrad
> e_l  l1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -142.93539  
Iteration 2:   log pseudolikelihood = -135.87054  
Iteration 3:   log pseudolikelihood = -135.82386  
Iteration 4:   log pseudolikelihood = -135.82381  
Iteration 5:   log pseudolikelihood = -135.82381  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      78.61
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -135.82381               Pseudo R2         =     0.0902

                                   (Std. Err. adjusted for 192 clusters in dyadid)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   l_leaderexits |   .0832349   .0290672     2.86   0.004     .0262642    .1402056
                 |
      govint_any |
             L1. |   .9247745   .6465412     1.43   0.153     -.342423    2.191972
                 |
           jtdem |
             L1. |  -.0776716   .9120329    -0.09   0.932    -1.865223     1.70988
                 |
        cinc_100 |
             L1. |   .3574756   .1081167     3.31   0.001     .1455708    .5693804
                 |
      cinc_3_100 |
             L1. |   .0369836   .0484746     0.76   0.445    -.0580249    .1319922
                 |
         defense |
             L1. |  -.3940604   .5627432    -0.70   0.484    -1.497017    .7088961
                 |
 smoothtotrade_l |
             L1. |   -.243195   .1169586    -2.08   0.038    -.4724297   -.0139603
                 |
 cum_rebintonset |
             L1. |   .0505692    .032432     1.56   0.119    -.0129963    .1141347
                 |
              tm |  -.1075233     .20125    -0.53   0.593    -.5019661    .2869195
             tm2 |   .0034581   .0222999     0.16   0.877    -.0402489     .047165
             tm3 |  -.0000932   .0005613    -0.17   0.868    -.0011932    .0010069
           _cons |  -4.745474   .7122492    -6.66   0.000    -6.141457   -3.349491
----------------------------------------------------------------------------------

.                         est sto altcluster1;

. logit rebintonset_miss c.l_cumirr l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l l
> 1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -147.53683  
Iteration 2:   log pseudolikelihood = -133.22188  
Iteration 3:   log pseudolikelihood = -133.11215  
Iteration 4:   log pseudolikelihood = -133.11195  
Iteration 5:   log pseudolikelihood = -133.11195  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      91.59
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -133.11195               Pseudo R2         =     0.1084

                                   (Std. Err. adjusted for 192 clusters in dyadid)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        l_cumirr |   .2931253   .0789334     3.71   0.000     .1384187    .4478319
                 |
      govint_any |
             L1. |    .998995   .6611342     1.51   0.131    -.2968043    2.294794
                 |
           jtdem |
             L1. |   .3878246   .6361468     0.61   0.542    -.8590002    1.634649
                 |
        cinc_100 |
             L1. |   .3311304   .1266711     2.61   0.009     .0828596    .5794012
                 |
      cinc_3_100 |
             L1. |   .0706685   .0548981     1.29   0.198    -.0369298    .1782669
                 |
         defense |
             L1. |  -.5247568   .5561821    -0.94   0.345    -1.614854      .56534
                 |
 smoothtotrade_l |
             L1. |  -.2189281   .1196459    -1.83   0.067    -.4534298    .0155736
                 |
 cum_rebintonset |
             L1. |   .0272211   .0425884     0.64   0.523    -.0562506    .1106928
                 |
              tm |  -.0887908   .2113313    -0.42   0.674    -.5029925    .3254108
             tm2 |   .0018556   .0230953     0.08   0.936    -.0434104    .0471216
             tm3 |  -.0000318   .0005814    -0.05   0.956    -.0011714    .0011077
           _cons |  -4.977369   .7407346    -6.72   0.000    -6.429182   -3.525556
----------------------------------------------------------------------------------

.                         est sto altcluster2;

. logit rebintonset_miss c.l_cumirrpost l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade
> _l l1.cum_rebintonset  tm* if ethdom2==1 , robust cl(dyadid);

Iteration 0:   log pseudolikelihood = -149.29641  
Iteration 1:   log pseudolikelihood = -141.78665  
Iteration 2:   log pseudolikelihood = -132.98437  
Iteration 3:   log pseudolikelihood = -132.93217  
Iteration 4:   log pseudolikelihood = -132.93212  
Iteration 5:   log pseudolikelihood = -132.93212  

Logistic regression                             Number of obs     =      1,615
                                                Wald chi2(11)     =      72.21
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -132.93212               Pseudo R2         =     0.1096

                                   (Std. Err. adjusted for 192 clusters in dyadid)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_cumirrpost |   .3963641   .0989649     4.01   0.000     .2023965    .5903316
                 |
      govint_any |
             L1. |   .9985385   .6342012     1.57   0.115    -.2444729     2.24155
                 |
           jtdem |
             L1. |   .2031574   .6774767     0.30   0.764    -1.124672    1.530987
                 |
        cinc_100 |
             L1. |   .3815246   .1174542     3.25   0.001     .1513187    .6117305
                 |
      cinc_3_100 |
             L1. |   .0812636   .0523621     1.55   0.121    -.0213642    .1838914
                 |
         defense |
             L1. |  -.5594131   .5274978    -1.06   0.289     -1.59329    .4744636
                 |
 smoothtotrade_l |
             L1. |  -.2360101   .1124289    -2.10   0.036    -.4563668   -.0156535
                 |
 cum_rebintonset |
             L1. |    .038774   .0370954     1.05   0.296    -.0339317    .1114796
                 |
              tm |  -.0766534   .2120502    -0.36   0.718    -.4922641    .3389573
             tm2 |   .0007244   .0229702     0.03   0.975    -.0442963    .0457451
             tm3 |  -.0000173   .0005789    -0.03   0.976    -.0011519    .0011173
           _cons |  -5.192426   .7322884    -7.09   0.000    -6.627685   -3.757167
----------------------------------------------------------------------------------

.                         est sto altcluster3;

. logit rebintonset_miss c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smooth
> totrade_l l1.cum_rebintonset  tm* if ethdom2==1 & year > 1989, robust cl(dyadid);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -81.197693  
Iteration 2:   log pseudolikelihood = -69.531464  
Iteration 3:   log pseudolikelihood = -69.020523  
Iteration 4:   log pseudolikelihood =  -69.00739  
Iteration 5:   log pseudolikelihood = -69.007284  
Iteration 6:   log pseudolikelihood = -69.007284  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      78.63
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -69.007284               Pseudo R2         =     0.1848

                                      (Std. Err. adjusted for 116 clusters in dyadid)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2627299   .0658603     3.99   0.000     .1336461    .3918137
                    |
         govint_any |
                L1. |   1.469091   .8424384     1.74   0.081    -.1820575     3.12024
                    |
              jtdem |
                L1. |   .4115834   .8399646     0.49   0.624    -1.234717    2.057884
                    |
           cinc_100 |
                L1. |   .3900646   .1627388     2.40   0.017     .0711023    .7090268
                    |
         cinc_3_100 |
                L1. |  -.0845194   .0674585    -1.25   0.210    -.2167356    .0476968
                    |
            defense |
                L1. |  -.9323822   .8707508    -1.07   0.284    -2.639022     .774258
                    |
    smoothtotrade_l |
                L1. |  -.1671602   .1749429    -0.96   0.339     -.510042    .1757216
                    |
    cum_rebintonset |
                L1. |   .0221333   .0421421     0.53   0.599    -.0604636    .1047303
                    |
                 tm |   .2256607   .2188992     1.03   0.303    -.2033738    .6546953
                tm2 |  -.0291859   .0249783    -1.17   0.243    -.0781424    .0197707
                tm3 |   .0006586   .0006279     1.05   0.294    -.0005721    .0018893
              _cons |  -6.071243   .8930137    -6.80   0.000    -7.821518   -4.320969
-------------------------------------------------------------------------------------

.                         est sto altcluster4;

.                         logit rebintonset_miss c.l_revrssocio l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.
> defense l1.smoothtotrade_l  l1.cum_rebintonset tm* if ethdom2==1 & year > 1989, robust cl(dyadid);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -80.589077  
Iteration 2:   log pseudolikelihood = -71.013381  
Iteration 3:   log pseudolikelihood = -70.457529  
Iteration 4:   log pseudolikelihood = -70.441956  
Iteration 5:   log pseudolikelihood = -70.441813  
Iteration 6:   log pseudolikelihood = -70.441813  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      39.79
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -70.441813               Pseudo R2         =     0.1678

                                   (Std. Err. adjusted for 116 clusters in dyadid)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_revrssocio |   .2720274   .1389077     1.96   0.050    -.0002267    .5442815
                 |
      govint_any |
             L1. |   1.528346   .7400725     2.07   0.039     .0778305    2.978861
                 |
           jtdem |
             L1. |   .9585084    .844555     1.13   0.256    -.6967891    2.613806
                 |
        cinc_100 |
             L1. |   .4306541   .1557673     2.76   0.006     .1253558    .7359524
                 |
      cinc_3_100 |
             L1. |  -.0090125   .0607139    -0.15   0.882    -.1280096    .1099847
                 |
         defense |
             L1. |  -.9952087   .7691215    -1.29   0.196    -2.502659    .5122419
                 |
 smoothtotrade_l |
             L1. |  -.2757219   .1820165    -1.51   0.130    -.6324677     .081024
                 |
 cum_rebintonset |
             L1. |  -.0194305   .0434556    -0.45   0.655     -.104602     .065741
                 |
              tm |   .2554824   .2294661     1.11   0.266    -.1942629    .7052277
             tm2 |  -.0306658    .025933    -1.18   0.237    -.0814936     .020162
             tm3 |   .0006727   .0006446     1.04   0.297    -.0005908    .0019361
           _cons |  -6.620706   1.398705    -4.73   0.000    -9.362117   -3.879294
----------------------------------------------------------------------------------

.                         est sto altcluster5;

. *Create table   
> estout altcluster*, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebintonset tm*) ///
>         noabb sty(tex)          ;
.                         *************************;
. * INTERACTION MODELS;
. *************************;
. logit rebintonset_miss c.l_leaderexits##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l
> 1.smoothtotrade_l l1.cum_rebintonset tm*, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -1141.5956  
Iteration 1:   log pseudolikelihood = -1114.2232  
Iteration 2:   log pseudolikelihood = -1029.9087  
Iteration 3:   log pseudolikelihood = -1020.6461  
Iteration 4:   log pseudolikelihood =  -1020.542  
Iteration 5:   log pseudolikelihood = -1020.5417  
Iteration 6:   log pseudolikelihood = -1020.5417  

Logistic regression                             Number of obs     =     93,970
                                                Wald chi2(13)     =     531.75
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -1020.5417               Pseudo R2         =     0.1060

                                      (Std. Err. adjusted for 12,462 clusters in dyadid_ep)
-------------------------------------------------------------------------------------------
                          |               Robust
         rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------+----------------------------------------------------------------
            l_leaderexits |  -.0243353   .0196861    -1.24   0.216    -.0629193    .0142488
                          |
                L.ethdom2 |
                       1  |   1.499146   .4361249     3.44   0.001     .6443573    2.353936
                          |
L.ethdom2#c.l_leaderexits |
                       1  |   .1078986   .0281877     3.83   0.000     .0526518    .1631454
                          |
               govint_any |
                      L1. |    .444732   .1804791     2.46   0.014     .0909995    .7984644
                          |
                    jtdem |
                      L1. |  -1.214163   .6023127    -2.02   0.044    -2.394674   -.0336518
                          |
                 cinc_100 |
                      L1. |   .0134329   .0514912     0.26   0.794     -.087488    .1143537
                          |
               cinc_3_100 |
                      L1. |   .0690907   .0269344     2.57   0.010     .0163002    .1218812
                          |
                  defense |
                      L1. |   .3087044   .3135285     0.98   0.325    -.3058003     .923209
                          |
          smoothtotrade_l |
                      L1. |  -.0373917    .050851    -0.74   0.462    -.1370579    .0622744
                          |
          cum_rebintonset |
                      L1. |   .0923613   .0166831     5.54   0.000      .059663    .1250596
                          |
                       tm |  -.4731785   .0852195    -5.55   0.000    -.6402057   -.3061513
                      tm2 |    .035013   .0076932     4.55   0.000     .0199346    .0500915
                      tm3 |  -.0007472   .0001754    -4.26   0.000    -.0010909   -.0004035
                    _cons |  -5.562691   .2769482   -20.09   0.000      -6.1055   -5.019883
-------------------------------------------------------------------------------------------

.                         est sto int1;

. logit rebintonset_miss c.l_cumirr##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smo
> othtotrade_l l1.cum_rebintonset tm* , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -1141.5956  
Iteration 1:   log pseudolikelihood = -1070.5878  
Iteration 2:   log pseudolikelihood = -1065.9272  
Iteration 3:   log pseudolikelihood = -1020.0092  
Iteration 4:   log pseudolikelihood = -1019.0716  
Iteration 5:   log pseudolikelihood = -1019.0679  
Iteration 6:   log pseudolikelihood = -1019.0679  

Logistic regression                             Number of obs     =     93,970
                                                Wald chi2(13)     =     477.57
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -1019.0679               Pseudo R2         =     0.1073

                                 (Std. Err. adjusted for 12,462 clusters in dyadid_ep)
--------------------------------------------------------------------------------------
                     |               Robust
    rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
            l_cumirr |   .0234358   .0499732     0.47   0.639    -.0745099    .1213816
                     |
           L.ethdom2 |
                  1  |   1.578123   .3900633     4.05   0.000     .8136132    2.342633
                     |
L.ethdom2#c.l_cumirr |
                  1  |   .2687511   .0952008     2.82   0.005      .082161    .4553412
                     |
          govint_any |
                 L1. |   .4565777   .1805344     2.53   0.011     .1027368    .8104187
                     |
               jtdem |
                 L1. |  -1.041673   .5965732    -1.75   0.081    -2.210935    .1275886
                     |
            cinc_100 |
                 L1. |   .0129872   .0495671     0.26   0.793    -.0841625    .1101369
                     |
          cinc_3_100 |
                 L1. |   .0834987   .0272754     3.06   0.002       .03004    .1369575
                     |
             defense |
                 L1. |   .1092624   .3665488     0.30   0.766      -.60916    .8276848
                     |
     smoothtotrade_l |
                 L1. |  -.0394425   .0497603    -0.79   0.428    -.1369708    .0580858
                     |
     cum_rebintonset |
                 L1. |   .0913067   .0188973     4.83   0.000     .0542687    .1283446
                     |
                  tm |   -.473262   .0854326    -5.54   0.000    -.6407069   -.3058172
                 tm2 |   .0351082   .0077165     4.55   0.000     .0199842    .0502323
                 tm3 |  -.0007523   .0001757    -4.28   0.000    -.0010967   -.0004078
               _cons |  -5.760747    .262434   -21.95   0.000    -6.275108   -5.246386
--------------------------------------------------------------------------------------

.                         est sto int2;

. logit rebintonset_miss c.l_cumirrpost##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1
> .smoothtotrade_l l1.cum_rebintonset   tm*  , robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -1141.5956  
Iteration 1:   log pseudolikelihood = -1072.1451  
Iteration 2:   log pseudolikelihood = -1069.1302  
Iteration 3:   log pseudolikelihood = -1021.0253  
Iteration 4:   log pseudolikelihood = -1020.0956  
Iteration 5:   log pseudolikelihood = -1020.0915  
Iteration 6:   log pseudolikelihood = -1020.0915  

Logistic regression                             Number of obs     =     93,970
                                                Wald chi2(13)     =     474.85
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -1020.0915               Pseudo R2         =     0.1064

                                     (Std. Err. adjusted for 12,462 clusters in dyadid_ep)
------------------------------------------------------------------------------------------
                         |               Robust
        rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------------------+----------------------------------------------------------------
            l_cumirrpost |  -.0199099   .0458294    -0.43   0.664    -.1097338    .0699141
                         |
               L.ethdom2 |
                      1  |   1.520279   .4090112     3.72   0.000      .718632    2.321926
                         |
L.ethdom2#c.l_cumirrpost |
                      1  |   .3651362   .1265457     2.89   0.004     .1171112    .6131612
                         |
              govint_any |
                     L1. |   .4535893   .1798453     2.52   0.012     .1010989    .8060797
                         |
                   jtdem |
                     L1. |  -1.104377   .5966133    -1.85   0.064    -2.273718    .0649636
                         |
                cinc_100 |
                     L1. |   .0197002   .0495544     0.40   0.691    -.0774246    .1168251
                         |
              cinc_3_100 |
                     L1. |   .0810637   .0271918     2.98   0.003     .0277686    .1343587
                         |
                 defense |
                     L1. |   .1579451   .3676554     0.43   0.667    -.5626463    .8785365
                         |
         smoothtotrade_l |
                     L1. |  -.0435902   .0497655    -0.88   0.381    -.1411287    .0539483
                         |
         cum_rebintonset |
                     L1. |   .0920719   .0182386     5.05   0.000     .0563249     .127819
                         |
                      tm |  -.4713931   .0858271    -5.49   0.000    -.6396111   -.3031752
                     tm2 |   .0349578   .0077357     4.52   0.000     .0197961    .0501196
                     tm3 |   -.000748   .0001759    -4.25   0.000    -.0010927   -.0004033
                   _cons |  -5.695731   .2683562   -21.22   0.000    -6.221699   -5.169762
------------------------------------------------------------------------------------------

.                         est sto int3;

. logit rebintonset_miss c.l_revrsgovstability##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.def
> ense l1.smoothtotrade_l l1.cum_rebintonset tm* if year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -523.51821  
Iteration 1:   log pseudolikelihood = -495.38046  
Iteration 2:   log pseudolikelihood = -465.39118  
Iteration 3:   log pseudolikelihood = -457.75325  
Iteration 4:   log pseudolikelihood = -457.70796  
Iteration 5:   log pseudolikelihood = -457.70789  
Iteration 6:   log pseudolikelihood = -457.70789  

Logistic regression                             Number of obs     =     50,112
                                                Wald chi2(13)     =     348.97
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -457.70789               Pseudo R2         =     0.1257

                                             (Std. Err. adjusted for 8,781 clusters in dyadid_ep)
-------------------------------------------------------------------------------------------------
                                |               Robust
               rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------+----------------------------------------------------------------
            l_revrsgovstability |   .0379048   .0706993     0.54   0.592    -.1006634    .1764729
                                |
                      L.ethdom2 |
                             1  |   1.394147   .6597763     2.11   0.035     .1010094    2.687285
                                |
L.ethdom2#c.l_revrsgovstability |
                             1  |   .2885794   .0933613     3.09   0.002     .1055946    .4715641
                                |
                     govint_any |
                            L1. |   .3590096   .2543247     1.41   0.158    -.1394576    .8574769
                                |
                          jtdem |
                            L1. |  -.5434936   .6683797    -0.81   0.416    -1.853494    .7665064
                                |
                       cinc_100 |
                            L1. |   .0183386   .0495046     0.37   0.711    -.0786887    .1153658
                                |
                     cinc_3_100 |
                            L1. |  -.0066095    .044493    -0.15   0.882    -.0938141    .0805951
                                |
                        defense |
                            L1. |    .381308   .4467143     0.85   0.393     -.494236    1.256852
                                |
                smoothtotrade_l |
                            L1. |   .0113953   .0584415     0.19   0.845    -.1031479    .1259385
                                |
                cum_rebintonset |
                            L1. |   .1035201   .0210146     4.93   0.000     .0623322     .144708
                                |
                             tm |  -.2272147   .1170594    -1.94   0.052     -.456647    .0022175
                            tm2 |   .0188768   .0098672     1.91   0.056    -.0004626    .0382161
                            tm3 |  -.0004403   .0002114    -2.08   0.037    -.0008546    -.000026
                          _cons |  -6.905566   .4742979   -14.56   0.000    -7.835173   -5.975959
-------------------------------------------------------------------------------------------------

.                         est sto int4;

. logit rebintonset_miss c.l_revrssocio##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1
> .smoothtotrade_l l1.cum_rebintonset tm* if year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -523.51821  
Iteration 1:   log pseudolikelihood = -478.05794  
Iteration 2:   log pseudolikelihood = -464.76228  
Iteration 3:   log pseudolikelihood = -461.75133  
Iteration 4:   log pseudolikelihood = -461.69523  
Iteration 5:   log pseudolikelihood = -461.69512  
Iteration 6:   log pseudolikelihood = -461.69512  

Logistic regression                             Number of obs     =     50,112
                                                Wald chi2(13)     =     302.45
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -461.69512               Pseudo R2         =     0.1181

                                      (Std. Err. adjusted for 8,781 clusters in dyadid_ep)
------------------------------------------------------------------------------------------
                         |               Robust
        rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------------------+----------------------------------------------------------------
            l_revrssocio |   .0179735   .0855765     0.21   0.834    -.1497534    .1857003
                         |
               L.ethdom2 |
                      1  |   .8926471   1.178234     0.76   0.449     -1.41665    3.201944
                         |
L.ethdom2#c.l_revrssocio |
                      1  |   .2585485   .1638304     1.58   0.115    -.0625533    .5796503
                         |
              govint_any |
                     L1. |   .3493406   .2538517     1.38   0.169    -.1481995    .8468807
                         |
                   jtdem |
                     L1. |  -.4527748   .6903558    -0.66   0.512    -1.805847    .9002977
                         |
                cinc_100 |
                     L1. |   .0206931   .0508955     0.41   0.684    -.0790603    .1204464
                         |
              cinc_3_100 |
                     L1. |   .0209911   .0413586     0.51   0.612    -.0600703    .1020525
                         |
                 defense |
                     L1. |   .2812716   .5153162     0.55   0.585    -.7287297    1.291273
                         |
         smoothtotrade_l |
                     L1. |  -.0035075   .0605753    -0.06   0.954    -.1222328    .1152179
                         |
         cum_rebintonset |
                     L1. |   .0905929   .0233521     3.88   0.000     .0448236    .1363622
                         |
                      tm |    -.22559   .1167932    -1.93   0.053    -.4545004    .0033203
                     tm2 |   .0192373   .0098128     1.96   0.050     4.51e-06      .03847
                     tm3 |  -.0004587   .0002103    -2.18   0.029    -.0008709   -.0000464
                   _cons |  -6.826854   .5717286   -11.94   0.000    -7.947422   -5.706287
------------------------------------------------------------------------------------------

.                         est sto int5;

. *Create table   
> estout int*, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebintonset tm*) ///
>         noabb sty(tex)          ;
.                                 *marginal effects and figure for Model 9;
. #delimit;
delimiter now ;
.         logit rebintonset_miss c.l_revrsgovstability##i.l1.ethdom2 l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_10
> 0 l1.defense l1.smoothtotrade_l l1.cum_rebintonset tm* if year > 1989, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -523.51821  
Iteration 1:   log pseudolikelihood = -495.38046  
Iteration 2:   log pseudolikelihood = -465.39118  
Iteration 3:   log pseudolikelihood = -457.75325  
Iteration 4:   log pseudolikelihood = -457.70796  
Iteration 5:   log pseudolikelihood = -457.70789  
Iteration 6:   log pseudolikelihood = -457.70789  

Logistic regression                             Number of obs     =     50,112
                                                Wald chi2(13)     =     348.97
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -457.70789               Pseudo R2         =     0.1257

                                             (Std. Err. adjusted for 8,781 clusters in dyadid_ep)
-------------------------------------------------------------------------------------------------
                                |               Robust
               rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------+----------------------------------------------------------------
            l_revrsgovstability |   .0379048   .0706993     0.54   0.592    -.1006634    .1764729
                                |
                      L.ethdom2 |
                             1  |   1.394147   .6597763     2.11   0.035     .1010094    2.687285
                                |
L.ethdom2#c.l_revrsgovstability |
                             1  |   .2885794   .0933613     3.09   0.002     .1055946    .4715641
                                |
                     govint_any |
                            L1. |   .3590096   .2543247     1.41   0.158    -.1394576    .8574769
                                |
                          jtdem |
                            L1. |  -.5434936   .6683797    -0.81   0.416    -1.853494    .7665064
                                |
                       cinc_100 |
                            L1. |   .0183386   .0495046     0.37   0.711    -.0786887    .1153658
                                |
                     cinc_3_100 |
                            L1. |  -.0066095    .044493    -0.15   0.882    -.0938141    .0805951
                                |
                        defense |
                            L1. |    .381308   .4467143     0.85   0.393     -.494236    1.256852
                                |
                smoothtotrade_l |
                            L1. |   .0113953   .0584415     0.19   0.845    -.1031479    .1259385
                                |
                cum_rebintonset |
                            L1. |   .1035201   .0210146     4.93   0.000     .0623322     .144708
                                |
                             tm |  -.2272147   .1170594    -1.94   0.052     -.456647    .0022175
                            tm2 |   .0188768   .0098672     1.91   0.056    -.0004626    .0382161
                            tm3 |  -.0004403   .0002114    -2.08   0.037    -.0008546    -.000026
                          _cons |  -6.905566   .4742979   -14.56   0.000    -7.835173   -5.975959
-------------------------------------------------------------------------------------------------

. gen sample_int = e(sample);

. #delimit;
delimiter now ;
.                         predict p;
(option pr assumed; Pr(rebintonset_miss))
(107,190 missing values generated)

.         label variable l_revrsgovstability "Government Instability";

.         #delimit;
delimiter now ;
.                 graph twoway 
>                 (histogram l_revrsgovstability if sample_int==1,  ysize(3) xsize(4) percent scheme(s1mono)  yaxis(1)
>   ytitle("Percentage of Observations",size(medlarge)                axis(1)))
>                 (lfitci p  l_revrsgovstability if sample_int==1 & l1.ethdom2==0, lcolor(gs2) lpattern(dash dot) yaxi
> s(2) clwidth(thick) ytitle("",      size(medlarge) axis(2)) )  
>                 (lfitci p  l_revrsgovstability if sample_int==1 & l1.ethdom2==1, lcolor(gs2)  xtitle(, size(medlarge
> )) yaxis(2) clwidth(thick) ytitle("Pr(Rebel Support Onset)",                size(medlarge) axis(2)) 
>                 ),
>                 legend(order(5 "EGIP/MEG=1" 3 "EGIP/MEG=0" 2 "95% CI" 1 "Government Instability") col(1) );

.         *graph export "C:\Users\chris\Dropbox\Interventions\Text\interaction.tif", as(tif) width(2000)  replace ;
. drop p;

. *************************;
. * MODELS WITHOUT TROOPS
> *************************
> 
> *recalculate counters for these models;
. btscs rebintonset_miss year dyadid_ep, g(tmnotroops);

. gen tmnotroops2 = tmnotroops*tmnotroops;
(647 missing values generated)

. gen tmnotroops3 = tmnotroops*tmnotroops*tmnotroops;
(647 missing values generated)

. *which observations and countries contain pro-rebel troop deployments?;
. tab rebint_troop if ethdom2==1 ;

      rebel |
Interventio |
  n, TROOPS |
  (UCDP/Ext |
   Support) |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |      2,361       99.54       99.54
          1 |         11        0.46      100.00
------------+-----------------------------------
      Total |      2,372      100.00

. tab gwnoa_3 if rebint_troop ==1 & ethdom2==1;

Third Party |
   Gleditch |
    War Num |      Freq.     Percent        Cum.
------------+-----------------------------------
        365 |          1        9.09        9.09
        500 |          1        9.09       18.18
        540 |          1        9.09       27.27
        620 |          4       36.36       63.64
        630 |          1        9.09       72.73
        652 |          1        9.09       81.82
        816 |          2       18.18      100.00
------------+-----------------------------------
      Total |         11      100.00

. logit rebintonset_miss c.l_leaderexits l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrad
> e_l  l1.cum_rebintonset  tmnotroops* if ethdom2==1 & rebint_troop==0, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -141.25766  
Iteration 1:   log pseudolikelihood = -135.81863  
Iteration 2:   log pseudolikelihood = -126.66258  
Iteration 3:   log pseudolikelihood = -126.56602  
Iteration 4:   log pseudolikelihood = -126.56587  
Iteration 5:   log pseudolikelihood = -126.56587  

Logistic regression                             Number of obs     =      1,613
                                                Wald chi2(11)     =      92.75
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -126.56587               Pseudo R2         =     0.1040

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   l_leaderexits |   .0904288   .0310629     2.91   0.004     .0295466     .151311
                 |
      govint_any |
             L1. |   1.081868   .6995741     1.55   0.122    -.2892721    2.453008
                 |
           jtdem |
             L1. |  -.0262802   .9024456    -0.03   0.977    -1.795041    1.742481
                 |
        cinc_100 |
             L1. |   .4000285   .1029188     3.89   0.000     .1983114    .6017456
                 |
      cinc_3_100 |
             L1. |   .0482601   .0460719     1.05   0.295    -.0420392    .1385593
                 |
         defense |
             L1. |   -.580457   .5337659    -1.09   0.277    -1.626619    .4657049
                 |
 smoothtotrade_l |
             L1. |  -.2796657   .1218503    -2.30   0.022     -.518488   -.0408434
                 |
 cum_rebintonset |
             L1. |   .0414332   .0382333     1.08   0.279    -.0335027    .1163692
                 |
      tmnotroops |  -.1093515   .2061787    -0.53   0.596    -.5134543    .2947512
     tmnotroops2 |   .0047925   .0230613     0.21   0.835    -.0404067    .0499918
     tmnotroops3 |  -.0001418   .0005833    -0.24   0.808     -.001285    .0010014
           _cons |   -4.98256   .7314982    -6.81   0.000     -6.41627    -3.54885
----------------------------------------------------------------------------------

.                         est sto troops1;

. logit rebintonset_miss c.l_cumirr l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade_l l
> 1.cum_rebintonset  tmnotroops* if ethdom2==1 & rebint_troop==0, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -141.25766  
Iteration 1:   log pseudolikelihood = -127.83885  
Iteration 2:   log pseudolikelihood = -124.30728  
Iteration 3:   log pseudolikelihood = -124.21741  
Iteration 4:   log pseudolikelihood = -124.21705  
Iteration 5:   log pseudolikelihood = -124.21705  

Logistic regression                             Number of obs     =      1,613
                                                Wald chi2(11)     =      98.08
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -124.21705               Pseudo R2         =     0.1206

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        l_cumirr |   .3029352   .0833759     3.63   0.000     .1395215    .4663489
                 |
      govint_any |
             L1. |   1.166589   .7174782     1.63   0.104    -.2396423    2.572821
                 |
           jtdem |
             L1. |   .4273032   .6612986     0.65   0.518    -.8688182    1.723425
                 |
        cinc_100 |
             L1. |   .3806915   .1190125     3.20   0.001     .1474314    .6139517
                 |
      cinc_3_100 |
             L1. |   .0849604    .052614     1.61   0.106    -.0181612     .188082
                 |
         defense |
             L1. |  -.6448989   .5567494    -1.16   0.247    -1.736108    .4463099
                 |
 smoothtotrade_l |
             L1. |   -.258276   .1185962    -2.18   0.029    -.4907204   -.0258317
                 |
 cum_rebintonset |
             L1. |   .0151231   .0555756     0.27   0.786    -.0938031    .1240494
                 |
      tmnotroops |  -.0910661   .2193251    -0.42   0.678    -.5209354    .3388031
     tmnotroops2 |   .0034053   .0241185     0.14   0.888     -.043866    .0506767
     tmnotroops3 |  -.0000879   .0006112    -0.14   0.886    -.0012858    .0011099
           _cons |  -5.205546   .7857779    -6.62   0.000    -6.745643    -3.66545
----------------------------------------------------------------------------------

.                         est sto troops2;

. logit rebintonset_miss c.l_cumirrpost l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.defense l1.smoothtotrade
> _l l1.cum_rebintonset  tmnotroops* if ethdom2==1 & rebint_troop==0, robust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -141.25766  
Iteration 1:   log pseudolikelihood =  -134.9728  
Iteration 2:   log pseudolikelihood = -124.11719  
Iteration 3:   log pseudolikelihood = -124.01516  
Iteration 4:   log pseudolikelihood = -124.01498  
Iteration 5:   log pseudolikelihood = -124.01498  

Logistic regression                             Number of obs     =      1,613
                                                Wald chi2(11)     =      73.84
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -124.01498               Pseudo R2         =     0.1221

                                (Std. Err. adjusted for 262 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_cumirrpost |   .4122216   .1045233     3.94   0.000     .2073596    .6170836
                 |
      govint_any |
             L1. |   1.162591   .6847752     1.70   0.090    -.1795434    2.504726
                 |
           jtdem |
             L1. |   .2604849   .6880275     0.38   0.705    -1.088024    1.608994
                 |
        cinc_100 |
             L1. |    .431202   .1116818     3.86   0.000     .2123096    .6500943
                 |
      cinc_3_100 |
             L1. |   .0954835   .0504493     1.89   0.058    -.0033953    .1943623
                 |
         defense |
             L1. |  -.6946217   .5142035    -1.35   0.177    -1.702442    .3131986
                 |
 smoothtotrade_l |
             L1. |  -.2749971   .1108719    -2.48   0.013    -.4923021   -.0576922
                 |
 cum_rebintonset |
             L1. |   .0281101    .046672     0.60   0.547    -.0633653    .1195855
                 |
      tmnotroops |  -.0753731   .2190755    -0.34   0.731    -.5047531    .3540069
     tmnotroops2 |   .0018426   .0238845     0.08   0.939    -.0449701    .0486552
     tmnotroops3 |  -.0000621   .0006056    -0.10   0.918     -.001249    .0011248
           _cons |  -5.437914    .767966    -7.08   0.000      -6.9431   -3.932729
----------------------------------------------------------------------------------

.                         est sto troops3;

.                         logit rebintonset_miss c.l_revrsgovstability l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_
> 100 l1.defense l1.smoothtotrade_l l1.cum_rebintonset  tmnotroops* if ethdom2==1 & year > 1989 & rebint_troop==0, rob
> ust cl(dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -81.197693  
Iteration 2:   log pseudolikelihood = -69.531464  
Iteration 3:   log pseudolikelihood = -69.020523  
Iteration 4:   log pseudolikelihood =  -69.00739  
Iteration 5:   log pseudolikelihood = -69.007284  
Iteration 6:   log pseudolikelihood = -69.007284  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      78.65
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -69.007284               Pseudo R2         =     0.1848

                                   (Std. Err. adjusted for 132 clusters in dyadid_ep)
-------------------------------------------------------------------------------------
                    |               Robust
   rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
l_revrsgovstability |   .2627299   .0663368     3.96   0.000     .1327121    .3927477
                    |
         govint_any |
                L1. |   1.469091   .8414931     1.75   0.081    -.1802048    3.118388
                    |
              jtdem |
                L1. |   .4115834   .8389401     0.49   0.624    -1.232709    2.055876
                    |
           cinc_100 |
                L1. |   .3900646   .1626279     2.40   0.016     .0713197    .7088094
                    |
         cinc_3_100 |
                L1. |  -.0845194   .0649166    -1.30   0.193    -.2117536    .0427148
                    |
            defense |
                L1. |  -.9323822   .8660014    -1.08   0.282    -2.629714    .7649493
                    |
    smoothtotrade_l |
                L1. |  -.1671602   .1745093    -0.96   0.338    -.5091922    .1748717
                    |
    cum_rebintonset |
                L1. |   .0221333   .0353106     0.63   0.531    -.0470742    .0913409
                    |
         tmnotroops |   .2256607   .2195178     1.03   0.304    -.2045862    .6559077
        tmnotroops2 |  -.0291859   .0250149    -1.17   0.243    -.0782142    .0198424
        tmnotroops3 |   .0006586   .0006286     1.05   0.295    -.0005733    .0018906
              _cons |  -6.071243   .8895326    -6.83   0.000    -7.814695   -4.327791
-------------------------------------------------------------------------------------

.                         est sto troops4;

.                         logit rebintonset_miss c.l_revrssocio l1.govint_any  l1.jtdem  l1.cinc_100 l1.cinc_3_100 l1.
> defense l1.smoothtotrade_l  l1.cum_rebintonset tmnotroops* if ethdom2==1 & year > 1989 & rebint_troop==0, robust cl(
> dyadid_ep);

Iteration 0:   log pseudolikelihood = -84.647654  
Iteration 1:   log pseudolikelihood = -80.589077  
Iteration 2:   log pseudolikelihood = -71.013381  
Iteration 3:   log pseudolikelihood = -70.457529  
Iteration 4:   log pseudolikelihood = -70.441956  
Iteration 5:   log pseudolikelihood = -70.441813  
Iteration 6:   log pseudolikelihood = -70.441813  

Logistic regression                             Number of obs     =        739
                                                Wald chi2(11)     =      41.57
                                                Prob > chi2       =     0.0000
Log pseudolikelihood = -70.441813               Pseudo R2         =     0.1678

                                (Std. Err. adjusted for 132 clusters in dyadid_ep)
----------------------------------------------------------------------------------
                 |               Robust
rebintonset_miss |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
    l_revrssocio |   .2720274   .1387282     1.96   0.050      .000125    .5439298
                 |
      govint_any |
             L1. |   1.528346    .739065     2.07   0.039     .0798051    2.976887
                 |
           jtdem |
             L1. |   .9585084   .8440331     1.14   0.256    -.6957661    2.612783
                 |
        cinc_100 |
             L1. |   .4306541   .1556302     2.77   0.006     .1256246    .7356836
                 |
      cinc_3_100 |
             L1. |  -.0090125    .059242    -0.15   0.879    -.1251247    .1070998
                 |
         defense |
             L1. |  -.9952087   .7648776    -1.30   0.193    -2.494341     .503924
                 |
 smoothtotrade_l |
             L1. |  -.2757219   .1813071    -1.52   0.128    -.6310772    .0796335
                 |
 cum_rebintonset |
             L1. |  -.0194305   .0399938    -0.49   0.627    -.0978169    .0589559
                 |
      tmnotroops |   .2554824    .229842     1.11   0.266    -.1949996    .7059644
     tmnotroops2 |  -.0306658   .0259549    -1.18   0.237    -.0815365    .0202049
     tmnotroops3 |   .0006727   .0006449     1.04   0.297    -.0005914    .0019367
           _cons |  -6.620706   1.398965    -4.73   0.000    -9.362627   -3.878785
----------------------------------------------------------------------------------

.                         est sto troops5;

. *Create table ;
.         estout troops*, ///
>         cells( b(fmt(3) star ) se(fmt(3) nostar par  ) ) ///
>         starlevel(+ 0.1 * 0.05 ** 0.01 *** 0.001) ///
>         stats(N ll aic, fmt(0 3 3 3 3) pc(@) ) ///
>         order(l_leaderexits l_cumirr l_cumirrpost l_revrsgovstability l_revrssocio ///
>         l_govint_any  l_jtdem  l_cinc_100 l_cinc_3_100 l_defense l_smoothtotrade_l l_cum_rebintonset tm*) ///
>         noabb sty(tex) ;

            &     troops1   &     troops2   &     troops3   &     troops4   &     troops5   \\
            &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   \\
rebintonset_miss&               &               &               &               &               \\
l_leaderexits&       0.090** &               &               &               &               \\
            &     (0.031)   &               &               &               &               \\
l_cumirr    &               &       0.303***&               &               &               \\
            &               &     (0.083)   &               &               &               \\
l_cumirrpost&               &               &       0.412***&               &               \\
            &               &               &     (0.105)   &               &               \\
l_revrsgovstability&               &               &               &       0.263***&               \\
            &               &               &               &     (0.066)   &               \\
l_revrssocio&               &               &               &               &       0.272*  \\
            &               &               &               &               &     (0.139)   \\
tmnotroops  &      -0.109   &      -0.091   &      -0.075   &       0.226   &       0.255   \\
            &     (0.206)   &     (0.219)   &     (0.219)   &     (0.220)   &     (0.230)   \\
tmnotroops2 &       0.005   &       0.003   &       0.002   &      -0.029   &      -0.031   \\
            &     (0.023)   &     (0.024)   &     (0.024)   &     (0.025)   &     (0.026)   \\
tmnotroops3 &      -0.000   &      -0.000   &      -0.000   &       0.001   &       0.001   \\
            &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   &     (0.001)   \\
L.govint_any&       1.082   &       1.167   &       1.163+  &       1.469+  &       1.528*  \\
            &     (0.700)   &     (0.717)   &     (0.685)   &     (0.841)   &     (0.739)   \\
L.jtdem     &      -0.026   &       0.427   &       0.260   &       0.412   &       0.959   \\
            &     (0.902)   &     (0.661)   &     (0.688)   &     (0.839)   &     (0.844)   \\
L.cinc_100  &       0.400***&       0.381** &       0.431***&       0.390*  &       0.431** \\
            &     (0.103)   &     (0.119)   &     (0.112)   &     (0.163)   &     (0.156)   \\
L.cinc_3_100&       0.048   &       0.085   &       0.095+  &      -0.085   &      -0.009   \\
            &     (0.046)   &     (0.053)   &     (0.050)   &     (0.065)   &     (0.059)   \\
L.defense   &      -0.580   &      -0.645   &      -0.695   &      -0.932   &      -0.995   \\
            &     (0.534)   &     (0.557)   &     (0.514)   &     (0.866)   &     (0.765)   \\
L.smoothtotrade_l&      -0.280*  &      -0.258*  &      -0.275*  &      -0.167   &      -0.276   \\
            &     (0.122)   &     (0.119)   &     (0.111)   &     (0.175)   &     (0.181)   \\
L.cum_rebintonset&       0.041   &       0.015   &       0.028   &       0.022   &      -0.019   \\
            &     (0.038)   &     (0.056)   &     (0.047)   &     (0.035)   &     (0.040)   \\
_cons       &      -4.983***&      -5.206***&      -5.438***&      -6.071***&      -6.621***\\
            &     (0.731)   &     (0.786)   &     (0.768)   &     (0.890)   &     (1.399)   \\
_           &               &               &               &               &               \\
l_govint_any&               &               &               &               &               \\
            &               &               &               &               &               \\
l_jtdem     &               &               &               &               &               \\
            &               &               &               &               &               \\
l_cinc_100  &               &               &               &               &               \\
            &               &               &               &               &               \\
l_cinc_3_100&               &               &               &               &               \\
            &               &               &               &               &               \\
l_defense   &               &               &               &               &               \\
            &               &               &               &               &               \\
l_smoothtotrade_l&               &               &               &               &               \\
            &               &               &               &               &               \\
l_cum_rebintonset&               &               &               &               &               \\
            &               &               &               &               &               \\
N           &        1613   &        1613   &        1613   &         739   &         739   \\
ll          &    -126.566   &    -124.217   &    -124.015   &     -69.007   &     -70.442   \\
aic         &     277.132   &     272.434   &     272.030   &     162.015   &     164.884   \\

.                                         clear;

.  log close;
      name:  <unnamed>
       log:  C:\Users\chris\Dropbox\Interventions\Submissions\JOGSS\Final draft\logfile-jogss.txt
  log type:  text
 closed on:  15 Dec 2020, 16:29:42
----------------------------------------------------------------------------------------------------------------------
