Announcement

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

  • Create several nested regression tables in the same file with asdoc

    Dear all,

    I want to create several nested regression tables in the same file and do it with option reset in asdoc. However, the created file can't open with MS Word. My code is as follows. If anybody has an idea as to how I can do this, I would be very grateful

    Code:
    * Table1
    asdoc reg y1 x1 x2, nest save(myfile)
    asdoc reg y2 x1 x2, nest save(myfile)
    
    * Table2
    asdoc reg y1 x3 x4, nest reset save(myfile)
    asdoc reg y2 x3 x4, nest save(myfile)
    Best,

    Jishuang

  • #2
    The bug has been fixed. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
    net install asdoc, from(http://fintechprofessor.com) replace

    Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.

    Please note that the new version of asdoc does not need the save(filename) to be specified with each line. File saving is now easy. Just use global save "Whatever file name" or use option save() first time with asdoc, then asdoc will remember the file name until Stata is closed or another name is written to the global save macro

    Example:
    Code:
    asdoc reg y1 x1 x2, nest save(myfile) replace
    asdoc reg y2 x1 x2, nest 
    
    * Table2
    asdoc reg y1 x3 x1, nest reset 
    asdoc reg y2 x3 x1, nest
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	35.0 KB
ID:	1518328


    Please do remember to cite asdoc. To cite:
    In-text citation
    Tables were created using asdoc, a Stata program written by Shah (2018).

    Bibliography
    Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.
    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

    Working...
    X