Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GMM regression with two endogenous variables and one interaction

    Hello everyone,

    I have questions about GMM regressions.

    In fact, after having obtained my results with fractional logit regression, I would like to do a robustness analysis by checking for endogeneity. However, I'm a beginner and I have a few questions.

    First of all, I need to use the xtset command. My first problem is that I don't have any unique company data by year, so I get this message:

    « . xtset entFE year
    repeated time values within panel
    r(451); »

    To solve this problem, I created a time variable: gen time = _n and then the command . "xtset entFE time" command:

    Panel variable: entFE (unbalanced)
    Time variable: time, 1 to 2126
    Delta: 1 unit

    Then, here is my basic regression:

    fracreg logit forpourcent GEND centBoarddiversity i.GEND#c.centBoarddiversity BoardSize Independentboard CEOChairmanDuality debttoasset_w lnageyear_w lncompanysizemarketcap_w roa_w reelage independent busy master phd charteredaccountant law i.Year i.industryFE , vce(robust)

    forpourcent: is my dependent variable (voting proportion) which takes a continuous value between 0 and 1
    GEND: is my first variable of interest and is equal to 1 if a woman is nominated and 0 if it is a man
    centBoarddiversity: is my second variable of interest and is a mean-centred variable representing the proportion of women on the board (mean-centered because there is an interaction term).
    i.GEND#c.centBoarddiversity: is my interaction variable between my two variables of interest.

    the other variables are control variables.

    I therefore potentially suspect endogeneity on my two variables of interest GEND and centBoarddiversity. I therefore identified instrumental variables (FEMMEFRACTION roa_w and NBADMIN) that influence the endogenous variables (GEND and centBoarddiversity) but not on the dependent variable (forpourcent). (

    Here is my GMM regression:

    ivreg2 forpourcent (centBoarddiversity GEND = L1.FEMMEFRACTION L2.roa_w L3.NBADMIN) i.GEND#c.centBoarddiversity BoardSize Independentboard debttoasset_w lnageyear_w lncompanysizemarketcap_w reelage independent busy master phd charteredaccountant law i.year i.industryFE, gmm2s robust

    The results screen is in attachments.


    My model is therefore significant, with an R2 that I think is OK, a significant underidentification test at 5% and a non-significant Hansen J statistic. Based on these results, I think we can say that my GMM is correct with the relevant instruments.

    Here are my questions:

    1)Is it OK to create a time variable to solve my first problem?
    2) Is my GMM model correct?
    3) Is it possible to do a GMM model with two endogenous variables and an interaction?
    4) Is having 3 instrumental variables coherent? Should we only have two?
    5) Is it necessary for the three instrumental variables (all of them) to influence all the endogenous variables (GEND and centBoarddiversity)? (With standard regressions, I find that FEMMEFRACTION and roa_w are significant on GEND but not the NBADMIN variable; and that NBADMIN and roa_w are significant on centBoarddiversity but not the FEMMEFRACTION variable).
    6) Are there any other tests that need to be carried out to corroborate these results?
    7) Do I need to take any additional precautions (bearing in mind that the VIF and correlations are acceptable)?
    8) Initially the roa_w variable was a control variable (fracreg logit) but I decided to put it as an instrument in the GMM. Is this problematic or acceptable?

    Sorry for the long message and thank you in advance for your help.
    Attached Files

  • #2
    Hello,

    Sorry for this reply but I forgot to ask these two questions:

    In the following code
    Code:
    ivreg2 forpourcent (centBoarddiversity GEND = L1.FEMMEFRACTION L2.roa_w L3.NBADMIN) i.GEND#c.centBoarddiversity BoardSize Independentboard debttoasset_w lnageyear_w lncompanysizemarketcap_w reelage independent busy master phd charteredaccountant law i.year i.industryFE, gmm2s robust
    when I change the position of my instruments, I don't get the same results. How do you choose the right order? Should you choose the order that suits you best?

    Finally, do you know of any other methods to overcome the endogeneity problem following fracreg logit ?

    Thanks again for your help

    Comment


    • #3
      That shouldn't happen. I will point out that you need to treat i.GEND#c.centBoarddiversity as endogenous, and then include interactions among your instruments as IVs. You might use c.GEND to make the output look better.

      As per the FAQ, you get better answers if you show what you typed and what Stata produced -- between code delimiters. Many are hesitant to open attachments due to security concerns.

      There is a way to do this using fractional probit, but it's more complicated. You should sort out the problems with the linear model, first.

      Comment


      • #4
        Thank you very much for your reply, Professor Wooldridge,

        I followed your advice to include the interaction variable as an endogenous variable.

        Here is my new code (I have changed my instrumental variables so that the tests work correctly):

        Code:
        ivreg2 forpourcent (centBoarddiversity GEND c.GEND#c.centBoarddiversity =  loirespect2 FEMMEFRACTION AuditBoardCommittee i.loirespect2#c.FEMMEFRACTION#i.AuditBoardCommittee) BoardSize Independentboard debttoasset_w lnageyear_w lncompanysizemarketcap_w reelage independent busy master phd charteredaccountant law i.year i.industryFE, gmm2s robust
        Here's the result of my GMM.

        Code:
        2-Step GMM estimation
        ---------------------
        
        Estimates efficient for arbitrary heteroskedasticity
        Statistics robust to heteroskedasticity
        
                                                              Number of obs =     2126
                                                              F( 36,  2089) =    16.22
                                                              Prob > F      =   0.0000
        Total (centered) SS     =  178.5353405                Centered R2   =   0.2093
        Total (uncentered) SS   =  1366.402764                Uncentered R2 =   0.8967
        Residual SS             =  141.1696086                Root MSE      =    .2577
        
        ---------------------------------------------------------------------------------------------
                                    |               Robust
                        forpourcent | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
        ----------------------------+----------------------------------------------------------------
                 centBoarddiversity |   .5806532   .2512908     2.31   0.021     .0881323    1.073174
                               GEND |   .0678429   .0282099     2.40   0.016     .0125525    .1231333
                                    |
        c.GEND#c.centBoarddiversity |  -.9182663   .4711931    -1.95   0.051    -1.841788    .0052552
                                    |
                          BoardSize |   .0017764   .0023267     0.76   0.445    -.0027839    .0063367
                   Independentboard |   .4468065   .0405657    11.01   0.000     .3672992    .5263139
                      debttoasset_w |    .149043    .049263     3.03   0.002     .0524892    .2455968
                        lnageyear_w |  -.0125952   .0091578    -1.38   0.169    -.0305441    .0053538
           lncompanysizemarketcap_w |   .0103363   .0046627     2.22   0.027     .0011976    .0194751
                            reelage |   .0186391   .0404159     0.46   0.645    -.0605745    .0978528
                        independent |   .1443881   .0161569     8.94   0.000     .1127212    .1760549
                               busy |  -.0484074   .0126644    -3.82   0.000    -.0732291   -.0235856
                             master |  -.0139694   .0188188    -0.74   0.458    -.0508536    .0229147
                                phd |  -.0168685   .0239396    -0.70   0.481    -.0637892    .0300523
                charteredaccountant |  -.0376221   .0460653    -0.82   0.414    -.1279084    .0526642
                                law |   -.049817    .027853    -1.79   0.074    -.1044079    .0047739
                                    |
                               year |
                              2016  |  -.0820065   .0828584    -0.99   0.322    -.2444059    .0803929
                              2017  |  -.1290298    .082822    -1.56   0.119     -.291358    .0332984
                              2018  |  -.1327316   .0840381    -1.58   0.114    -.2974432      .03198
                              2019  |  -.1715528   .0832738    -2.06   0.039    -.3347664   -.0083392
                              2020  |  -.1788763   .0832963    -2.15   0.032    -.3421341   -.0156185
                              2021  |  -.1731277   .0828717    -2.09   0.037    -.3355533   -.0107021
                              2022  |  -.1644127   .0838108    -1.96   0.050    -.3286789   -.0001465
                              2023  |  -.1541097   .0857997    -1.80   0.072     -.322274    .0140547
                                    |
                         industryFE |
                                 2  |   .0233375   .0286715     0.81   0.416    -.0328575    .0795326
                                 3  |   .0394063   .0331069     1.19   0.234     -.025482    .1042946
                                 4  |  -.0121007    .016032    -0.75   0.450    -.0435229    .0193214
                                 5  |  -.0095239   .0268923    -0.35   0.723    -.0622318    .0431841
                                 6  |   .0151646   .0265764     0.57   0.568    -.0369241    .0672533
                                 7  |   .0974622   .0357746     2.72   0.006     .0273453    .1675791
                                 8  |  -.0781265   .0302113    -2.59   0.010    -.1373396   -.0189134
                                 9  |  -.0775448   .0790576    -0.98   0.327    -.2324949    .0774052
                                10  |   .0744266   .0241226     3.09   0.002     .0271472     .121706
                                11  |  -.0951741   .0715863    -1.33   0.184    -.2354807    .0451325
                                12  |  -.0083838   .0603735    -0.14   0.890    -.1267136     .109946
                                13  |  -.0001754   .0463184    -0.00   0.997    -.0909578     .090607
                                14  |   .0851703   .1491195     0.57   0.568    -.2070985    .3774392
                                    |
                              _cons |   .2719195   .2175335     1.25   0.211    -.1544383    .6982773
        ---------------------------------------------------------------------------------------------
        Underidentification test (Kleibergen-Paap rk LM statistic):            105.227
                                                           Chi-sq(3) P-val =    0.0000
        ------------------------------------------------------------------------------
        Weak identification test (Cragg-Donald Wald F statistic):               38.295
                                 (Kleibergen-Paap rk Wald F statistic):         37.734
        Stock-Yogo weak ID test critical values:  5% maximal IV relative bias     9.53
                                                 10% maximal IV relative bias     6.61
                                                 20% maximal IV relative bias     4.99
                                                 30% maximal IV relative bias     4.30
        Source: Stock-Yogo (2005).  Reproduced by permission.
        NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
        ------------------------------------------------------------------------------
        Hansen J statistic (overidentification test of all instruments):         1.023
                                                           Chi-sq(2) P-val =    0.5996
        ------------------------------------------------------------------------------
        Instrumented:         centBoarddiversity GEND c.GEND#c.centBoarddiversity
        Included instruments: BoardSize Independentboard debttoasset_w lnageyear_w
                              lncompanysizemarketcap_w reelage independent busy master
                              phd charteredaccountant law 2016.year 2017.year 2018.year
                              2019.year 2020.year 2021.year 2022.year 2023.year
                              2.industryFE 3.industryFE 4.industryFE 5.industryFE
                              6.industryFE 7.industryFE 8.industryFE 9.industryFE
                              10.industryFE 11.industryFE 12.industryFE 13.industryFE
                              14.industryFE
        Excluded instruments: loirespect2 FEMMEFRACTION AuditBoardCommittee
                              0b.loirespect2#1.AuditBoardCommittee#c.FEMMEFRACTION
                              1.loirespect2#1.AuditBoardCommittee#c.FEMMEFRACTION
        ------------------------------------------------------------------------------
        As we can see, the Underidentification test (Kleibergen-Paap rk LM statistic) is significant at 5% and the Hansen test is not significant. To my knowledge, this is a good sign for this model.

        I had to include 3 instrumental variables + their interaction for the tests to be OK. Is this a problem, or do I only need to find two instrumental variables with their interaction?

        With this GMM method, I find the same results as with my fracreg logit, can I conclude that my results are robust by controlling the endogeneity of my variables of interest?

        Also, as I don't have any unique company/year data, I couldn't directly do
        Code:
        xtset entFE year
        because I got the error « repeated time values within panel r(451); »:

        So is it acceptable to have created variable time?

        Code:
        gen time = _n //    xtset entFE time
        Thank you for your help.

        Comment

        Working...
        X