Announcement

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

  • Outreg2 giving me extra models

    Dear StataList

    I'm running the following code bloc to export a table.


    Code:
            xtreg FDI GDP_Growth GDPperCapita asinhInflation Unemp TradeOpen stocks WUI , fe robust
                outreg2 using "Draft_1_baseline.doc", word replace
                outreg2 using "Draft_1_baseline.tex",  replace
            xtreg FDI GDP_Growth GDPperCapita asinhInflation Unemp TradeOpen stocks GPR, fe robust
                outreg2 using "Draft_1_baseline.doc", word
                outreg2 using "Draft_1_baseline.tex",  
            xtreg FDI GDP_Growth GDPperCapita asinhInflation Unemp TradeOpen stocks VIX, fe robust
                outreg2 using "Draft_1_baseline.doc", word
                outreg2 using "Draft_1_baseline.tex",
    I'm running 3 regressions but for some reason outreg2 is giving me 4 models.

    When I run the first 2 I only get 2.
    When I run the first and third, I get 2
    When I run the last 2, I only get 2

    But for some reason when I all 3 together, I get 4 models.


  • #2
    outreg2 is from SSC, as you are asked to explain (FAQ Advice #12). You could be highlighting part of the code and running some commands after the initial table has been generated. Probably add the option -append- to the second and third outreg2 command lines. In any case, a reproducible example is needed to reproduce your issue, if there is indeed an issue.

    Comment

    Working...
    X