Announcement

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

  • Error message: no room to add more variables

    Hi all,
    I am trying to combine three DHS surveys by appending them all using following command.


    use "/Users/Desktop/Paper/2008.DTA"
    append using "/Users/Desktop/Paper/2013.DTA"
    save "/Users/Desktop/Paper/2008_13.DTA", replace
    clear
    use "/Users/Desktop/Paper/2008_13.DTA"
    append using "/Users/Desktop/Paper/2018.DTA"
    save "/Users/Desktop/Paper/Pooled_data.DTA", replace

    I get the following message:

    "no room to add more variables
    Up to 5,000 variables are currently allowed, although you could reset the maximum using set
    maxvar; see help memory."


    My memory setting is as follows:

    Memory settings
    set maxvar 20000 2048-32767; max. vars allowed
    set matsize 10000 10-11000; max. # vars in models
    set niceness 5 0-10
    set min_memory 0 0-1600g
    set max_memory . 32m-1600g or .
    set segmentsize 32m 1m-32g

    I cannot figure out what the problem is, as my total variable count is below 20000, and I can't seem to find explanation anywhere except to increase maxvar setting, which i already did.

    Any help would be highly appreciated. Thanks in advance.







  • #2
    Shubham:
    welcome to this forum.
    See -help limits-.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Hi Carlo,
      I just did but still cannot find the solution. The number of variables I am trying to append is within the max limits. I am really sorry, but I can't seem to be able to diagnose the problem with -help limits-.

      Comment


      • #4
        Hi Shubham
        It may be possible that your installation is corrupted.
        So the next step would be to reinstall Stata, and try again, or directly contact Stata technical support.
        HTH

        Comment


        • #5
          Hi Shubham,
          Did you check the memory? maybe the memory being used is already too big. If else, I suggest just reinstalling your STATA.

          Comment


          • #6
            Originally posted by FernandoRios View Post
            Hi Shubham
            It may be possible that your installation is corrupted.
            So the next step would be to reinstall Stata, and try again, or directly contact Stata technical support.
            HTH
            Hi Fernando, thanks for your reply. Reinstallation did not work and i guess I should contact technical support.

            Comment


            • #7
              Originally posted by Graceh Kim View Post
              Hi Shubham,
              Did you check the memory? maybe the memory being used is already too big. If else, I suggest just reinstalling your STATA.
              Hi Graceh, it did not work either. Thanks for the reply. If there are other troubleshootings, please let me know. Thanks.

              Comment


              • #8
                Two questions, because I'm not very familiar with the DHS data.

                How many variables are in each of your three DHS datasets?

                Do most of the variables have the same name in each of the three datasets, or do some of the variable names include the year as part of the variable name?

                Comment

                Working...
                X