Announcement

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

  • Hide macro using Outreg2

    Hi everyone,

    I am estimating a Tobit Model, which (at the bottom of the table) reports sigma. Given that the model is log-linear, it also reports ln(sigma).
    Ln(sigma) is automatically stored as a macro (e(diparm1) : "lnsigma, exp label("sigma")").
    In the Word-Output, Outreg2 creates an additional column for the lnsigma value, such that the table becomes very big.
    Is there a way to prevent reporting the value, i.e. the creation of its column, in the outreg2 output?

    Thank you very much in advance!
    Marlene

  • #2
    Here is one example using asdoc that can be downloaded from ssc. You can also read the table of contents here about what else asdoc can do.
    Code:
    ssc install asdoc, replace
    sysuse auto
    generate wgt=weight/1000
     asdoc tobit mpg wgt, ll(17) nest replace keep(wgt)
    asdoc tobit mpg wgt rep78 , ll(17) nest  keep(wgt rep78)
    Click image for larger version

Name:	asdoc tobit.png
Views:	1
Size:	22.8 KB
ID:	1479109

    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
      Thank you, Attalluah, for your response.
      I think I was not not clear enough - I am using the intreg command.
      I know of asdoc and am actually using it for my descriptives, but if there is a solution to this problem with outreg2, I'd prefer that, as I have all the analysis adopted to it.

      Best,
      Marlene

      Comment


      • #4
        outreg2 is from SSC, authored by Roy Wada. You are asked to identify the source of user-written commands (review the FAQs). In future, to increase your chances of getting helpful replies, you need to present a minimal reproducible example that illustrates your problem. In any case, columns in outreg2 represent equations, so the solution is simple, i.e., specify the -eqdrop()- option:

        Code:
        outreg2 using myfile, eqdrop(lnsigma)

        Comment


        • #5
          Hi Andrew,
          Sorry for violating the FAQs, I'll have it in mind next time.
          And thank you so much, this was easy in the end, but it saved my day.

          Best,
          Marlene

          Comment

          Working...
          X