Announcement

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

  • outreg2 keep option does not work

    Hello,

    I am in desperate need for some help for my thesis regarding Stata.

    I would like to make use of the outreg2 command. However, when I use this command and specify the variables that should be kept, he ignores these variables and creates a list of all variables after which I get the notion that
    I attempted to create a matrix with too many variables. However, I do not even want that much variables, however the code doesn't listen to my commands to keep only certain variables.

    I used the following command:
    outreg2 using x.doc, replace sum(log) keep(var x var y var z)

    What is wrong with this way of typing which variables should be kept?

    Thanks in advance!



  • #2
    Sorry for the edit of the post as I misunderstood your question earlier. I guess you need to:

    Code:
    outreg2 using filename, replace word sum(log) drop(varlist)
    Last edited by Nampuna D. Gultom; 31 Mar 2021, 04:21.

    Comment


    • #3
      Originally posted by Ella Bedwing View Post
      Hello,

      I am in desperate need for some help for my thesis regarding Stata.

      I would like to make use of the outreg2 command. However, when I use this command and specify the variables that should be kept, he ignores these variables and creates a list of all variables after which I get the notion that
      I attempted to create a matrix with too many variables. However, I do not even want that much variables, however the code doesn't listen to my commands to keep only certain variables.

      I used the following command:
      outreg2 using x.doc, replace sum(log) keep(var x var y var z)

      What is wrong with this way of typing which variables should be kept?

      Thanks in advance!

      Hi Ella,

      The -keep- option in outreg2 is working smoothly for me. Try this.
      Code:
      sysuse auto, clear
      reg price headroom weight, r
          outreg2 using example.xls, replace keep(headroom)
      If this does work, you may want to re-install the -outreg2- command in your computer by typing: sac install outreg2, replace

      Hope this help

      Comment

      Working...
      X