Announcement

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

  • Different coefficients on the same independent variables in regression analysis based on dummy variables

    Dear community members,

    I would like to make the table on the left side of the picture below (mine is on right). It has three different coefficients on the same independent variables based on three dummy variables. However, whenever I create the table, using outreg2, only one column was printed out. Would there be a solution to this?

    Click image for larger version

Name:	Picture1-min.png
Views:	1
Size:	557.0 KB
ID:	1694382


  • #2
    John:
    take a look at the wonderful -table- suite of commands in Stata 17.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      The very first example in
      Code:
      help outreg2
      (see the commands under Example 0) creates a table with two columns, one for each model. You should compare with that and see what you might be doing wrong. For instance, are you specifying the -replace- option, so that the version of your file with the first model is getting overwritten? You may need to change that.

      For others: outreg2 is a community-contributed command; see
      Code:
      net describe outreg2, from(http://fmwww.bc.edu/RePEc/bocode/o)

      Comment


      • #4
        Dear all, appreciate your contributions to my thread. The table on the left was based on the result of one single regression analysis, which is why all three columns shared the same Adj.R^2. Somehow, the authors allowed the coefficients to vary by bank assets in a single (not separate three regressions) regression, using a "reghdfe" package. I think they added two indicator variables in the independent variable part and printed out the result as above. FYI, I have no problem with three accumulated regression results from three separate regressions based on sub-samples. Sorry for the confusion.
        Last edited by John Charlse Doe; 22 Dec 2022, 07:01.

        Comment

        Working...
        X