Announcement

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

  • xtsur

    Hi All,
    I am estimating GL cost function using a panel data. I have the cost function and input-output ratio functions and ran all using xtsur command as below;

    #delim ;
    xtsur (TC c.Q#c.Pn c.Q#c.Pl c.Q#c.Zm c.Q#c.sqrPlsqrPn
    c.Q#c.sqrZmsqrPn c.Q#c.sqrZmsqrPl c.sqrQ#c.PnsqrK c.sqrQ#c.PlsqrK
    c.sqrQ#c.ZmsqrK PnK PlK ZmK) (N_Q sqrPlDsqrPn sqrZmDsqrPn sqrKDsqrQ KoverY)
    (L_Q sqrPnDsqrPl sqrZmDsqrPl sqrKDsqrQ KoverY) (Qd_Q sqrPnDsqrZm sqrPlDsqrZm sqrKDsqrQ KoverY)
    ;
    #delim cr

    But I had the error message below of which I don't understand what it means or how to fix it. Any one with an idea?


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

    Thanks,
    Francis

  • #2
    Francis.
    is your copy of Stata fully updated?
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      Hi Carlo,
      Yes, I am using stata 12 and updated it just before the estimation.

      Thanks,
      francis

      Comment


      • #4
        Francis:
        the following Stata thread might be useful: https://www.stata.com/statalist/arch.../msg00969.html
        Kind regards,
        Carlo
        (StataNow 18.5)

        Comment


        • #5
          .
          I am also facing the same issue ... Any leads on this?
          I also tried xtsur installation but in vain.

          Thanks in advance.

          Comment


          • #6
            Thanks so much Carlo Lazzaro. After using the command findit ccmatch and installing ccmatch the problem with xtsur dissapeared.
            Best regards,

            Comment


            • #7
              Hello,

              this code is due to a bug in mata: https://www.statalist.org/forums/for...rtual-function

              To resolve it, open the xtsur.ado file, and at the beginning of the mata section (line 192 in version 1.0.4), add the following line:

              Code:
              mata clear
              This works for me.

              Best wishes,
              Paul-Olivier.
              ​​​​​​​

              Comment


              • #8
                The current version of xtsug is version 1.0.4. Adding mata clear at line 192 (beginning of the mata section) worked for me as well. bob kraut

                Comment


                • #9
                  I had the same problem with the xtsur file and edited it for the "mata clear" as above. Now I'm getting a "command IsStop is unrecognized". I see the isStop code at a few places in the xtsur.edo file, but I can't find any documentation for or reference to such a command anywhere. Help? Running an updated version of Stata14.

                  Comment

                  Working...
                  X