Announcement

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

  • significance test between constant terms of two different portfolios

    Dear users of Statalist,

    I have 2*5 double sorted portfolios and I would like to test the significance of the constant terms between two portfolios.

    What I've done so far is the following:
    Code:
    // at each quarter: sort stocks into two portfolios based on their institutional ownership
    by rdate, sort: egen io_group = xtile(ownership), nq(2)
    
    // at each quarter: sort stocks in low institutional ownership group and high institutional ownership group respectively into 5 groups based on their social scores 
    by rdate io_group, sort: egen score_quintile = xtile(socialscore), nq(5)
    
    // compute the equally-weighted returns of portfolios formed on the quintiles of social scores at each quarter 
    sort rdate io_group score_quintile
    by rdate io_group score_quintile: egen pret=mean(excessreturn)
    
    // we keep only one observation per quarter-institutional ownership-social score quintile 
    duplicates drop rdate io_group score_quintile, force 
    
    // compute the CAPM alphas for each portfolio: portfolio P11 refers to the portfolio of stocks of low institutional ownership and lowest quintile of social scores, P25 refers to the portfolio of stocks of high institutional ownership and highest quintile of social scores 
     gen alpha = .
     forvalues i = 1/2 {
        forvalues j = 1/5 {
          reg pret mktrf if (io_group==`i') & (score_quintile==`j')     //mktrf is the market excess return  
          outreg2 using table3, excel bdec(3) stats(coef tstat) tdec(2) nonotes 
          replace alpha = _b[_cons] if io_group == `i' & score_quintile ==`j'
        }
     }

    For now, I have alphas of portfolios formed based on social scores in the sample of low institutional ownership and high institutional ownership.I would like to compute and test the significance of the difference between alphas(the constant terms of regressions) of the portfolio P15 and portfolio P11 and the difference between alphas of the portfolio P25 and portfolio P21.More specifically, in each sample (firms of low institutional ownership or high institutional ownership, I would like to compare and test the significance of alphas of portfolio with highest social scores and alphas of portfolio with lowest social scores.

    I would like to also test the significance of the difference between the spreads(the difference between alpha P15-alpha P11 and alpha P25-alpha P21).

    In short, I seek to do the same thing as in the red rectangle in the table below (robust Newey-West (1987) t-statistics are reported in parentheses):
    Click image for larger version

Name:	1.png
Views:	1
Size:	88.5 KB
ID:	1669827




    I tried my best to state my problem as clearly as possible and I'd like to thank you in advance for any valuable advice and help.

    Here is an extract of my current data:
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input double(rdate mktrf) float(io_group score_quintile pret alpha)
    15795 -1.65 1 1            .   .0505924
    15795 -1.65 1 2            . .030939957
    15795 -1.65 1 3            .  .03088566
    15795 -1.65 1 4            .  .04419843
    15795 -1.65 1 5            .  .02381743
    15795 -1.65 1 .            .          .
    15795 -1.65 2 1            .  .03029218
    15795 -1.65 2 2            . .029775864
    15795 -1.65 2 3            .  .02672335
    15795 -1.65 2 4            . .025443764
    15795 -1.65 2 5            . .026201123
    15795 -1.65 2 .            .          .
    15795 -1.65 . .            .          .
    15886  -.17 1 1     .3435377   .0505924
    15886  -.17 1 2    .08502242 .030939957
    15886  -.17 1 3    .19393073  .03088566
    15886  -.17 1 4    .12327705  .04419843
    15886  -.17 1 5    .13493845  .02381743
    15886  -.17 1 .    .22667165          .
    15886  -.17 2 1     .2026721  .03029218
    15886  -.17 2 2    .22140093 .029775864
    15886  -.17 2 3    .13633959  .02672335
    15886  -.17 2 4    .16820045 .025443764
    15886  -.17 2 5    .19008897 .026201123
    15886  -.17 2 .    .21229225          .
    15886  -.17 . .     .1177743          .
    15978  -.96 1 1   .013684333   .0505924
    15978  -.96 1 2    .06183974 .030939957
    15978  -.96 1 3  -.011653104  .03088566
    15978  -.96 1 4     .0311849  .04419843
    15978  -.96 1 5    .05043896  .02381743
    15978  -.96 1 .    .12082233          .
    15978  -.96 2 1    .04019295  .03029218
    15978  -.96 2 2     .0311509 .029775864
    15978  -.96 2 3    .04290957  .02672335
    15978  -.96 2 4   .008771131 .025443764
    15978  -.96 2 5    .05210209 .026201123
    15978  -.96 2 .    .08380613          .
    15978  -.96 . .    .02712074          .
    16070   .01 1 1    .19408153   .0505924
    16070   .01 1 2    .07767887 .030939957
    16070   .01 1 3    .08270334  .03088566
    16070   .01 1 4    .10934102  .04419843
    16070   .01 1 5    .12344606  .02381743
    16070   .01 1 .    .15927666          .
    16070   .01 2 1    .13614993  .03029218
    16070   .01 2 2      .174243 .029775864
    16070   .01 2 3     .1499734  .02672335
    16070   .01 2 4    .12489418 .025443764
    16070   .01 2 5    .12758258 .026201123
    16070   .01 2 .    .14843191          .
    16070   .01 . .    .14874525          .
    16161     0 1 1   .014269484   .0505924
    16161     0 1 2   .034955855 .030939957
    16161     0 1 3   .017997812  .03088566
    16161     0 1 4  -.029656284  .04419843
    16161     0 1 5     .0182078  .02381743
    16161     0 1 .    .06061478          .
    16161     0 2 1  .0026539804  .03029218
    16161     0 2 2   .030466346 .029775864
    16161     0 2 3    .05469561  .02672335
    16161     0 2 4    .04070667 .025443764
    16161     0 2 5    .02181926 .026201123
    16161     0 2 .     .0390017          .
    16161     0 . .   .008688615          .
    16252   .48 1 1  .0045106304   .0505924
    16252   .48 1 2   -.01369509 .030939957
    16252   .48 1 3   -.01494146  .03088566
    16252   .48 1 4   -.01883998  .04419843
    16252   .48 1 5  -.032066233  .02381743
    16252   .48 1 . -.0031058835          .
    16252   .48 2 1    .07111678  .03029218
    16252   .48 2 2    .04519347 .029775864
    16252   .48 2 3  -.001190891  .02672335
    16252   .48 2 4   .028608523 .025443764
    16252   .48 2 5   .023474427 .026201123
    16252   .48 2 .   .016408863          .
    16252   .48 . .   .067791395          .
    16344   .06 1 1  -.008275456   .0505924
    16344   .06 1 2    .04520285 .030939957
    16344   .06 1 3  -.029116403  .03088566
    16344   .06 1 4   -.05764899  .04419843
    16344   .06 1 5   -.03761478  .02381743
    16344   .06 1 .  -.020807166          .
    16344   .06 2 1  -.006838386  .03029218
    16344   .06 2 2  -.014781592 .029775864
    16344   .06 2 3  -.034003496  .02672335
    16344   .06 2 4  -.007011445 .025443764
    16344   .06 2 5   -.02536957 .026201123
    16344   .06 2 .  -.018418022          .
    16344   .06 . 1   -.11654709          .
    16344   .06 . .    .02564771          .
    16436  -.14 1 1    .11657377   .0505924
    16436  -.14 1 2    .05655047 .030939957
    16436  -.14 1 3    .08888225  .03088566
    16436  -.14 1 4   .035002757  .04419843
    16436  -.14 1 5    .10658953  .02381743
    16436  -.14 1 .      .131198          .
    16436  -.14 2 1    .13029574  .03029218
    16436  -.14 2 2    .07498024 .029775864
    end
    format %td rdate

  • #2
    Yuyi:
    a tempative answer may be:
    Code:
    .  forvalues i = 1/2 {
      2.     forvalues j = 1/5 {
      3. reg pret mktrf if io_group==`i' & score_quintile==`j'
      4. estimate store alfa_`i'_`j'
      5.     }
      6.  }
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.01
           Model |  .000185343         1  .000185343   Prob > F        =    0.9284
        Residual |  .103826434         5  .020765287   R-squared       =    0.0018
    -------------+----------------------------------   Adj R-squared   =   -0.1979
           Total |  .104011777         6  .017335296   Root MSE        =     .1441
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0128062   .1355509    -0.09   0.928    -.3612508    .3356384
           _cons |   .0955945   .0562215     1.70   0.150    -.0489275    .2401165
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      2.45
           Model |  .002130861         1  .002130861   Prob > F        =    0.1784
        Residual |  .004350466         5  .000870093   R-squared       =    0.3288
    -------------+----------------------------------   Adj R-squared   =    0.1945
           Total |  .006481327         6  .001080221   Root MSE        =     .0295
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0434221    .027747    -1.56   0.178    -.1147481    .0279039
           _cons |   .0451845   .0115084     3.93   0.011     .0156011    .0747678
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.01
           Model |  .000065439         1  .000065439   Prob > F        =    0.9301
        Residual |  .038463612         5  .007692722   R-squared       =    0.0017
    -------------+----------------------------------   Adj R-squared   =   -0.1980
           Total |  .038529051         6  .006421509   Root MSE        =    .08771
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0076094   .0825037    -0.09   0.930    -.2196919    .2044731
           _cons |   .0460463   .0342195     1.35   0.236    -.0419177    .1340104
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.37
           Model |  .001986959         1  .001986959   Prob > F        =    0.5680
        Residual |  .026618689         5  .005323738   R-squared       =    0.0695
    -------------+----------------------------------   Adj R-squared   =   -0.1166
           Total |  .028605647         6  .004767608   Root MSE        =    .07296
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0419303   .0686344    -0.61   0.568    -.2183605       .1345
           _cons |   .0232101    .028467     0.82   0.452    -.0499667    .0963869
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.69
           Model |  .003768881         1  .003768881   Prob > F        =    0.4450
        Residual |  .027436752         5   .00548735   R-squared       =    0.1208
    -------------+----------------------------------   Adj R-squared   =   -0.0551
           Total |  .031205633         6  .005200939   Root MSE        =    .07408
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0577483    .069681    -0.83   0.445    -.2368692    .1213725
           _cons |   .0460516   .0289011     1.59   0.172    -.0282412    .1203443
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.00
           Model |  8.3781e-06         1  8.3781e-06   Prob > F        =    0.9741
        Residual |  .035871674         5  .007174335   R-squared       =    0.0002
    -------------+----------------------------------   Adj R-squared   =   -0.1997
           Total |  .035880052         6  .005980009   Root MSE        =     .0847
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |   .0027227   .0796754     0.03   0.974    -.2020894    .2075348
           _cons |   .0826005   .0330464     2.50   0.055     -.002348     .167549
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         7
    -------------+----------------------------------   F(1, 5)         =      0.00
           Model |  5.0166e-06         1  5.0166e-06   Prob > F        =    0.9819
        Residual |  .043930005         5  .008786001   R-squared       =    0.0001
    -------------+----------------------------------   Adj R-squared   =   -0.1999
           Total |  .043935022         6  .007322504   Root MSE        =    .09373
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |   .0021069   .0881716     0.02   0.982    -.2245456    .2287593
           _cons |   .0805957   .0365704     2.20   0.079    -.0134114    .1746029
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         6
    -------------+----------------------------------   F(1, 4)         =      0.14
           Model |  .000894548         1  .000894548   Prob > F        =    0.7290
        Residual |  .025908409         4  .006477102   R-squared       =    0.0334
    -------------+----------------------------------   Adj R-squared   =   -0.2083
           Total |  .026802957         5  .005360591   Root MSE        =    .08048
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0281543   .0757588    -0.37   0.729    -.2384945    .1821859
           _cons |   .0553991   .0336623     1.65   0.175    -.0380624    .1488605
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         6
    -------------+----------------------------------   F(1, 4)         =      0.02
           Model |  .000144026         1  .000144026   Prob > F        =    0.8850
        Residual |  .024244256         4  .006061064   R-squared       =    0.0059
    -------------+----------------------------------   Adj R-squared   =   -0.2426
           Total |  .024388282         5  .004877656   Root MSE        =    .07785
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |    .011297   .0732854     0.15   0.885    -.1921758    .2147698
           _cons |    .061787   .0325632     1.90   0.131    -.0286231     .152197
    ------------------------------------------------------------------------------
    
          Source |       SS           df       MS      Number of obs   =         6
    -------------+----------------------------------   F(1, 4)         =      0.13
           Model |  .001002819         1  .001002819   Prob > F        =    0.7351
        Residual |  .030482961         4   .00762074   R-squared       =    0.0318
    -------------+----------------------------------   Adj R-squared   =   -0.2102
           Total |   .03148578         5  .006297156   Root MSE        =     .0873
    
    ------------------------------------------------------------------------------
            pret | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
           mktrf |  -.0298095   .0821753    -0.36   0.735    -.2579647    .1983458
           _cons |    .062068   .0365133     1.70   0.164    -.0393093    .1634453
    ------------------------------------------------------------------------------
    
    . suest alfa_1_1 alfa_1_2 alfa_1_3 alfa_1_4 alfa_1_5 alfa_2_2 alfa_2_3, cluster()
    
    Simultaneous results for alfa_1_1, alfa_1_2, alfa_1_3, alfa_1_4, alfa_1_5, alfa_2_2, alfa_2_3
    
                                                                Number of obs = 48
    
    --------------------------------------------------------------------------------
                   |               Robust
                   | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
    ---------------+----------------------------------------------------------------
    alfa_1_1_mean  |
             mktrf |  -.0128062   .0881573    -0.15   0.885    -.1855913    .1599789
             _cons |   .0955945   .0462709     2.07   0.039     .0049052    .1862838
    ---------------+----------------------------------------------------------------
    alfa_1_1_lnvar |
             _cons |  -3.874473   .3637208   -10.65   0.000    -4.587352   -3.161593
    ---------------+----------------------------------------------------------------
    alfa_1_2_mean  |
             mktrf |  -.0434221   .0278741    -1.56   0.119    -.0980544    .0112101
             _cons |   .0451845   .0104253     4.33   0.000     .0247512    .0656177
    ---------------+----------------------------------------------------------------
    alfa_1_2_lnvar |
             _cons |   -7.04691   .2629613   -26.80   0.000    -7.562305   -6.531516
    ---------------+----------------------------------------------------------------
    alfa_1_3_mean  |
             mktrf |  -.0076094    .059946    -0.13   0.899    -.1251013    .1098825
             _cons |   .0460463   .0280122     1.64   0.100    -.0088565    .1009492
    ---------------+----------------------------------------------------------------
    alfa_1_3_lnvar |
             _cons |  -4.867481    .350862   -13.87   0.000    -5.555157   -4.179804
    ---------------+----------------------------------------------------------------
    alfa_1_4_mean  |
             mktrf |  -.0419303   .0316846    -1.32   0.186    -.1040309    .0201703
             _cons |   .0232101   .0242968     0.96   0.339    -.0244108     .070831
    ---------------+----------------------------------------------------------------
    alfa_1_4_lnvar |
             _cons |   -5.23558   .2608067   -20.07   0.000    -5.746751   -4.724408
    ---------------+----------------------------------------------------------------
    alfa_1_5_mean  |
             mktrf |  -.0577483   .0495126    -1.17   0.243    -.1547913    .0392946
             _cons |   .0460516   .0247401     1.86   0.063    -.0024381    .0945412
    ---------------+----------------------------------------------------------------
    alfa_1_5_lnvar |
             _cons |   -5.20531   .1832343   -28.41   0.000    -5.564442   -4.846177
    ---------------+----------------------------------------------------------------
    alfa_2_2_mean  |
             mktrf |   .0021069   .0453558     0.05   0.963     -.086789    .0910027
             _cons |   .0805957   .0307201     2.62   0.009     .0203854    .1408061
    ---------------+----------------------------------------------------------------
    alfa_2_2_lnvar |
             _cons |  -4.734596   .3023929   -15.66   0.000    -5.327275   -4.141916
    ---------------+----------------------------------------------------------------
    alfa_2_3_mean  |
             mktrf |  -.0281543   .0410695    -0.69   0.493     -.108649    .0523404
             _cons |   .0553991   .0281669     1.97   0.049      .000193    .1106051
    ---------------+----------------------------------------------------------------
    alfa_2_3_lnvar |
             _cons |  -5.039482   .2544663   -19.80   0.000    -5.538227   -4.540737
    --------------------------------------------------------------------------------
    
    . test [alfa_1_2_mean]_cons=[alfa_1_3_mean]_cons
    
     ( 1)  [alfa_1_2_mean]_cons - [alfa_1_3_mean]_cons = 0
    
               chi2(  1) =    0.00
             Prob > chi2 =    0.9770
    
    .
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Dear Carlo,

      Thank you for your reply. It seems that your code only tests the significance of the difference in portfolio alphas. Do you have an idea about how I can test the difference of difference in portfolio alphas(the same logic as the term "diff" in the screenshot: it computes and test the significance of the difference between 0.49 and -0.21)?

      Comment


      • #4
        Dear Carlo,

        Thank you for your reply. It seems that your code only tests the significance of the difference in portfolio alphas. Do you have an idea about how I can test the difference of difference in portfolio alphas(the same logic as the term "diff" in the screenshot: it computes and test the significance of the difference between 0.49 and -0.21)?

        Comment


        • #5
          Dear Carlo,

          Thank you for your reply. It seems that your code only tests the significance of the difference in portfolio alphas. Do you have an idea about how I can test the difference of difference in portfolio alphas(the same logic as the term "diff" in the screenshot: it computes and test the significance of the difference between 0.49 and -0.21)?

          Comment


          • #6
            Sorry for the duplicative messages, my computer bugged

            Comment


            • #7
              Yuyi:
              you may want to consider something along the following lines (please note -regress- instead of -newey-, as you do not provide -lag(#)-):
              Code:
              . suest alfa_1_1 alfa_1_2 alfa_1_3 alfa_1_4 alfa_1_5 alfa_2_1 alfa_2_2 alfa_2_3 alfa_2_4 alfa_2_5, cluster()
              
              Simultaneous results for alfa_1_1, alfa_1_2, alfa_1_3, alfa_1_4, alfa_1_5, alfa_2_1, alfa_2_2, alfa_2_3, alfa_2_4, alfa_2_5
              
                                                                          Number of obs = 67
              
              --------------------------------------------------------------------------------
                             |               Robust
                             | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
              ---------------+----------------------------------------------------------------
              alfa_1_1_mean  |
                       mktrf |  -.0128062   .0878925    -0.15   0.884    -.1850724      .15946
                       _cons |   .0955945   .0461319     2.07   0.038     .0051776    .1860114
              ---------------+----------------------------------------------------------------
              alfa_1_1_lnvar |
                       _cons |  -3.874473   .3626284   -10.68   0.000    -4.585211   -3.163734
              ---------------+----------------------------------------------------------------
              alfa_1_2_mean  |
                       mktrf |  -.0434221   .0277904    -1.56   0.118    -.0978903    .0110461
                       _cons |   .0451845    .010394     4.35   0.000     .0248126    .0655564
              ---------------+----------------------------------------------------------------
              alfa_1_2_lnvar |
                       _cons |   -7.04691   .2621715   -26.88   0.000    -7.560757   -6.533063
              ---------------+----------------------------------------------------------------
              alfa_1_3_mean  |
                       mktrf |  -.0076094   .0597659    -0.13   0.899    -.1247485    .1095297
                       _cons |   .0460463    .027928     1.65   0.099    -.0086916    .1007843
              ---------------+----------------------------------------------------------------
              alfa_1_3_lnvar |
                       _cons |  -4.867481   .3498083   -13.91   0.000    -5.553092   -4.181869
              ---------------+----------------------------------------------------------------
              alfa_1_4_mean  |
                       mktrf |  -.0419303   .0315894    -1.33   0.184    -.1038444    .0199838
                       _cons |   .0232101   .0242239     0.96   0.338    -.0242678     .070688
              ---------------+----------------------------------------------------------------
              alfa_1_4_lnvar |
                       _cons |   -5.23558   .2600234   -20.14   0.000    -5.745216   -4.725943
              ---------------+----------------------------------------------------------------
              alfa_1_5_mean  |
                       mktrf |  -.0577483   .0493639    -1.17   0.242    -.1544999    .0390032
                       _cons |   .0460516   .0246658     1.87   0.062    -.0022925    .0943956
              ---------------+----------------------------------------------------------------
              alfa_1_5_lnvar |
                       _cons |   -5.20531    .182684   -28.49   0.000    -5.563364   -4.847256
              ---------------+----------------------------------------------------------------
              alfa_2_1_mean  |
                       mktrf |   .0027227   .0357135     0.08   0.939    -.0672744    .0727199
                       _cons |   .0826005   .0274906     3.00   0.003     .0287199    .1364811
              ---------------+----------------------------------------------------------------
              alfa_2_1_lnvar |
                       _cons |  -4.937245   .2677103   -18.44   0.000    -5.461948   -4.412543
              ---------------+----------------------------------------------------------------
              alfa_2_2_mean  |
                       mktrf |   .0021069   .0452196     0.05   0.963     -.086522    .0907357
                       _cons |   .0805957   .0306279     2.63   0.009     .0205662    .1406253
              ---------------+----------------------------------------------------------------
              alfa_2_2_lnvar |
                       _cons |  -4.734596   .3014847   -15.70   0.000    -5.325495   -4.143696
              ---------------+----------------------------------------------------------------
              alfa_2_3_mean  |
                       mktrf |  -.0281543   .0409461    -0.69   0.492    -.1084072    .0520987
                       _cons |   .0553991   .0280823     1.97   0.049     .0003588    .1104393
              ---------------+----------------------------------------------------------------
              alfa_2_3_lnvar |
                       _cons |  -5.039482   .2537021   -19.86   0.000    -5.536729   -4.542235
              ---------------+----------------------------------------------------------------
              alfa_2_4_mean  |
                       mktrf |    .011297   .0404416     0.28   0.780    -.0679671    .0905611
                       _cons |    .061787   .0262646     2.35   0.019     .0103093    .1132646
              ---------------+----------------------------------------------------------------
              alfa_2_4_lnvar |
                       _cons |   -5.10587   .2891121   -17.66   0.000    -5.672519   -4.539221
              ---------------+----------------------------------------------------------------
              alfa_2_5_mean  |
                       mktrf |  -.0298095    .036061    -0.83   0.408    -.1004877    .0408688
                       _cons |    .062068   .0293844     2.11   0.035     .0044756    .1196605
              ---------------+----------------------------------------------------------------
              alfa_2_5_lnvar |
                       _cons |  -4.876882    .303854   -16.05   0.000    -5.472425   -4.281339
              --------------------------------------------------------------------------------
              
              . lincom ([alfa_1_1_mean]_cons-[alfa_1_5_mean]_cons)+([alfa_2_1_mean]_cons-[alfa_2_5_mean]_cons)
              
               ( 1)  [alfa_1_1_mean]_cons - [alfa_1_5_mean]_cons + [alfa_2_1_mean]_cons - [alfa_2_5_mean]_cons = 0
              
              ------------------------------------------------------------------------------
                           | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
              -------------+----------------------------------------------------------------
                       (1) |   .0700754    .065998     1.06   0.288    -.0592783     .199429
              ------------------------------------------------------------------------------
              
              . lincom ([alfa_1_1_mean]_cons-[alfa_1_5_mean]_cons)
              
               ( 1)  [alfa_1_1_mean]_cons - [alfa_1_5_mean]_cons = 0
              
              ------------------------------------------------------------------------------
                           | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
              -------------+----------------------------------------------------------------
                       (1) |   .0495429   .0523121     0.95   0.344    -.0529869    .1520727
              ------------------------------------------------------------------------------
              
              
              . lincom ([alfa_2_1_mean]_cons-[alfa_2_5_mean]_cons)
              
               ( 1)  [alfa_2_1_mean]_cons - [alfa_2_5_mean]_cons = 0
              
              ------------------------------------------------------------------------------
                           | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
              -------------+----------------------------------------------------------------
                       (1) |   .0205324    .040239     0.51   0.610    -.0583346    .0993995
              ------------------------------------------------------------------------------
              
              .
              Kind regards,
              Carlo
              (Stata 19.0)

              Comment


              • #8
                Thank you so much!

                Comment

                Working...
                X