Announcement

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

  • outreg2 not working properly with Stata14

    I installed Stata14 last week, and the outreg2 files (latest version I found was Aug 17, 2014). However when I use the outreg2 command, it does not recognize the selected variables I want in the output and presents all of the regression variables, most of which I do not want in the table. Does any one have information about this?

  • #2
    outreg2 (SSC, as you are asked to explain) is a user-written command, so StataCorp make precisely no specific promises about it. But there seems to be no obvious reason why Stata 14 should break it. I think that you need to give a reproducible example showing your problem so that people who use outreg2 (not me) can comment.

    Please note our strong preferences for full real names: see FAQ Advice Section 6.
    Last edited by Nick Cox; 20 Apr 2015, 09:33.

    Comment


    • #3
      my dep var is lfp and my variable of interest is policy1, and I also control for a series of state-year variables. when I type:
      "outreg2 lfp policy1 using "output.xls", replace"

      the file "output.xls" includes results for policy1 but also all the other state-year variables, which I do not want in my table. Thanks. I don't know how to fix my user name.

      Comment


      • #4
        A reproducible example means one that people can reproduce for themselves. Here is one explanation of that idea: http://stackoverflow.com/help/mcve

        FAQ Advice Section 6 which I referred you to explains how to fix your name. Here it is: http://www.statalist.org/forums/help

        Comment


        • #5
          Dear Diana, your model will not work in any of the Stata versions as it incorrectly specify.
          Type "help outreg2" for detailed examples.
          The basic idea is as follows:
          Code:
          *STEP 1: Load your data
              sysuse auto,clear
          *STEP 2: estimate your model (eg., reg lfp policy1 i.state)
              regress mpg foreign weight i.rep78
          *STEP 3: Save your model
              est store model_A
          *STEP 4: Use outreg2 to present your estimations
              outreg2 [model_A] using "output.xls", replace see

          Comment


          • #6
            I have been using outreg2 for the last 5 years and can confirm that it is a mistake in the new version of outreg2. I went back to my Stata 11 package on an old laptop and retrieved outreg2.ado and other related files from there. It now outregs only the selected variables. Apparently developers of outreg2 command forgot some condition check and the program works with default setting ignoring varlist. Solution: use older version of outreg2 until the authors correct their mistake.

            Comment


            • #7
              Sergey: I suggest that your post needs extension.

              The question from "Diana K" never got as far as a reproducible example and indeed seemed problematic itself. She was active here only 20/21 April 2015.

              In turn your advice to use an older version of outreg2 needs some more precision.

              The version on SSC is

              Code:
              outreg2 2.3.2  17aug2014
              Note that this remains a version issued before the release of Stata 14.

              Which version are you recommending? Have you clarified the problem with the program author (just one person), who is not a member here?

              Comment


              • #8
                Originally posted by Nick Cox View Post
                Sergey: I suggest that your post needs extension.

                The question from "Diana K" never got as far as a reproducible example and indeed seemed problematic itself. She was active here only 20/21 April 2015.

                In turn your advice to use an older version of outreg2 needs some more precision.

                The version on SSC is

                Code:
                outreg2 2.3.2 17aug2014
                Note that this remains a version issued before the release of Stata 14.

                Which version are you recommending? Have you clarified the problem with the program author (just one person), who is not a member here?
                Hi Nick
                I guess the problem is not related to the Stata version 14 but to the version of the outreg2. I am using Stata 14 and an older version of outreg2 command and varlist works fine. (just need to completely delete the new version of outreg2 from ~/ApplicationSupport/Stata and better restart Stata, cause otherwise it seems to find and use the version with the mistake). The outreg2 version, which works OK, is 2.2.2 from 04Apr2009, of course later version might work too, cause we never know when exactly the screw up in coding happened. I did send an email to the author just now.
                Best
                S

                Comment


                • #9
                  Originally posted by Sergey Mityakov View Post
                  Hi Nick
                  I guess the problem is not related to the Stata version 14 but to the version of the outreg2. I am using Stata 14 and an older version of outreg2 command and varlist works fine. (just need to completely delete the new version of outreg2 from ~/ApplicationSupport/Stata and better restart Stata, cause otherwise it seems to find and use the version with the mistake). The outreg2 version, which works OK, is 2.2.2 from 04Apr2009, of course later version might work too, cause we never know when exactly the screw up in coding happened. I did send an email to the author just now.
                  Best
                  S
                  Hi Sergey,
                  Thanks for your explanations. How can I download this 2.2.2 from 04Apr2009 version of outreg2 ado?
                  Best

                  Comment

                  Working...
                  X