Announcement

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

  • Problems with asdoc, add more than one model in a table

    Hey statalists,


    I tried to make a table like the one at the picture.That are the results of the logistic regressions of different models.
    I tried it to run the logistic regression for each model and store it with estimate store model_1 usw..
    In a second step I merging the ouptputs with the code
    asdoc esttab model_1 model_1a model_1b model_2 model_2a model_2b model_3 model_3a model_3b, replace
    but the output in word is not like expected.

    Has anybody a idea where my problem is?

    Thanks in advanced

    Best wishes from Germany
    Maja

    The Output I need:
    Click image for larger version

Name:	Bildschirmfoto 2019-05-20 um 23.34.22.png
Views:	2
Size:	283.5 KB
ID:	1499248




    My Output:


    Click image for larger version

Name:	Bildschirmfoto 2019-05-21 um 09.14.59.png
Views:	1
Size:	119.1 KB
ID:	1499249


  • #2
    You are mixing asdoc and esttab command, while there is no need for doing so. asdoc can create nested regression tables on its own. Here is a detailed YouTube video.
    For nested regression tables, you need to use option nest. See the following example:
    Code:
    ssc install asdoc, replace
    webuse lbw
    asdoc logistic low i.race smoke ptl ht ui, nest replace
    asdoc logistic low age lwt i.race smoke ptl ht ui, nest
    asdoc logistic low age lwt i.race smoke ptl ht , nest
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	48.3 KB
ID:	1499265
    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