Announcement

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

  • error occurred while loading xtsur.ado


    Dear All,
    Greetings
    I use stata 14.1. I try to execute xtsur command . sometimes I get the result but most of the times I get the following error message
    classdef _b_stat() in use
    (nothing dropped)
    (327 lines skipped)
    (error occurred while loading xtsur.ado)
    r(310);

    Please guide me to solve the problem. Your suggestions will be of great help.

  • #2
    Check out this thread. Looks like you need to add "mata clear" to the ado file before the mata section is loaded on line 192.

    Actually it looks like this version of xtsur uses "mata drop *()" on line 192 which might be a little more accurate since I believe this line drops the loaded class definitions only rather than clearing all of the mata content from memory. Should theoretically make load times for commands that use mata slightly faster, but practically speaking I doubt you'd notice the difference.

    Comment


    • #3
      Dear Daniel
      Thank you for the suggestion.

      Comment


      • #4
        Hello Sankarganesh,

        You are very welcome. I hope this solution works for you.

        Comment


        • #5
          Hi Sankarganesh,

          I am having the same problem as you had, and I would like to add the .ado file Daniel suggested to the solder, but didn't find the right directory under STATA folder to replace the old one with this new one. Please let me know where the old .ado file is located. my root folder for my STATA program is C:\Program Files\Stata18, but didn't find the xtsur.ado under the sub folder of C:\Program Files\Stata18\ado, Could you please advise? Thank you very much!

          Comment


          • #6
            Like Sankarganesh K. and Ken Q., I encounter the following response when attempting to run xtsur:

            classdef _tab() in use
            classdef _b_pclass() in use
            classdef _b_stat() in use
            classdef _b_table() in use
            (nothing dropped)
            (327 lines skipped)
            (error occurred while loading xtsur.ado)
            r(310);

            I also looked for xtsur.ado in Stata's ado folder but do not see it. Any suggestions on how to proceed would be most appreciated.

            Comment

            Working...
            X