Announcement

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

  • Outreg2 and summarize statistics

    Dear all,
    I try to get my summarize statistics by using outreg2.

    Code:
    sum
    outreg2 using myfile, sum(log) replace eqkeep(N se mean min max coef se) see
    I get the following error message:

    matsize too small
    You have attempted to create a matrix with too many rows or columns or attempted to fit a model with too many variables. You need to increase matsize; it is currently 400. Use set matsize; see help matsize.
    However, I definitely have less than 400 variables so I don’t understand the error message.
    As I want only a small number of variables in my table, I used the following code from help outreg2 trying to solve the problem like this.

    Code:
    outreg2 using myfile, sum(log) replace keep(GermanFDIs GDP EnvPolicyIndex Stringency Clarity) eqkeep(N se mean min max coef se) see
    However, the error message remains the same.

  • #2
    Have you tried increasing the maximum matrix size?
    Code:
    help matsize

    Comment


    • #3
      Sorry, I tried it, but didn't notice that I have to include it into my do file. As I didn't do that, I got the error message again and had to use
      Code:
      set matsize 800
      again. Then it works!

      Comment


      • #4
        Quote from help matsize:

        permanently specifies that, in addition to making the change right now, the matsize setting be remembered and become the default setting when you invoke Stata.
        Code:
        set matsize 800, permanently

        Comment


        • #5
          Great, thank you!

          Comment


          • #6
            Dear all,
            I am using outreg2 to display my descriptive statistics in word.
            I get the message:

            Following variable is string, not included:
            Countryj country_name_ISO Industryi Agriculturalmachinerytractors Arablelandhectares Totalemploymentinagriculture TotalassetsofGermanmultinatio Totalnumberofmultinationalfir changeenvironmentalpolicy Changeinchemicals ChangeinMechEng ChangeinElectricity ChangeinMotorVehicles Following variable has no observation
            Hit Enter to continue.”
            Therefore I used the keep option to display only the variables I need for my descriptive statistics. This solves the problem with the string variables.
            However, the message
            Hit Enter to continue.
            remains.

            My problem is that I need a do file that works without interruptions when handing in my thesis.
            Is there any possibility?

            Comment


            • #7
              Teresa,

              your code was
              Code:
               
               outreg2 using myfile, sum(log) replace [...] see
              just drop the -see- option.

              Comment


              • #8
                Thank you!

                Comment

                Working...
                X