Announcement

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

  • Drop year dummies from the outreg2 table

    Hi everyone,
    Afetr running a regression, I used outreg2 to report my results, but I got all the year dummies in the table. I tried using the drop option to get rid of them but they are still there. I also tried using the keep option with just the dependent, independent and control variables, but, the result is that it also get rid of the coefficient of the independent variable.
    Code:
    quietly regress y x control variables i.year
    quietly outreg2 using mydoc, append addtext(Year dummies, YES) keep (y x control variables)

  • #2
    I checked outreg2 and with keep option no year dummies are reported. Do you still face the problem?
    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 attaullah, Thanks for your help. But as I said earlier, when I tried the keep option with just the dependent, independent and control variables, the result is that it also get rid of the coefficient of the independent variable. Thanks.

      Comment


      • #4
        First, there is no need to add dependent variable to keep. Second, if you post your real code, that will enable to see where it goes wrong.
        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


        • #5
          Thanks. Here is my code quietly regress y x control variables i.year quietly outreg2 using mydoc, append addtext(Year dummies, YES) keep (y x control variables)

          Comment


          • #6
            Again, it cannot be actual code as the control variables mean two variables in Stata .
            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


            • #7
              Yes I know, but What I mean by control variables is a whole range of variables like firm size ROA etc. tHanks again

              Comment

              Working...
              X