Announcement

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

  • How to create multiple tables in single word file Using Outreg2 (three different Panel)

    Hi,
    I want to create three separate tables for three panels in a word file. I know how to use append to add regression results in a table but what I want is to use three different tables in three panels in a single word file. I don't know how to do that using outreg2.
    Could anyone please help me?

  • #2
    You can do it with asdoc using the reset option.
    See the following example

    Code:
    * Install asdoc
    ssc install asdoc
    
    * Load the auto dataset
    sysuse auto, clear
    
    * First regression
    asdoc reg price mpg rep78,  nest replace
    
    * Add one more regression
    asdoc reg price mpg rep78 headroom,  nest 
    
    * Start a new table within the same document
    asdoc reg price mpg rep78 headroom,  nest reset
    
    * Yet start another table.
    asdoc reg price mpg rep78 headroom,  nest reset
    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	52.0 KB
ID:	1586851

    Last edited by Attaullah Shah; 21 Dec 2020, 01:04.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment


    • #3
      Hi Shah,
      Thank you for your help. There are some reasons why I can't use asdoc even though I wanted to use asdoc in the first place. The following I can't find in asdoc or I don't know how to do
      1. I want to report 4 decimal place for coefficient but three decimal place for p value.
      2. I want to report adjr2
      3. I don't want to report constant ( so, nocons)
      4. I want to sort variable while reporting. I have different interaction term.
      5. I want to report Joint Significance test for some of the key independent variables.

      I am showing an example of what I am using in outreg2. If you can show me how I will get the same thing in asdoc, I have no problem to use asdoc.

      outreg2 using table8, append word bdec(4) pdec(3) pvalue addtext(Joint F-Test,`: di %9.3f r(F)', Industry FE, YES, Year FE, YES) adjr2 nocons title(ABC) ctitle("A,O") sortvar(X Y Z AB CG ) drop (E F) label

      The above is just an example. I am looking for your answer.
      Last edited by Raja Hasan; 26 Dec 2020, 10:33.

      Comment

      Working...
      X