Announcement

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

  • problem unbalanced panel data for threshold models

    Dear all

    i'm working on pay PHD thesis and i will use the threshold model but ,unfortunately, i can not get balanced panel data

    using the 'xtbalance' i get the following msg
    ( im using stata 15.0 version)
    Click image for larger version

Name:	Capture.PNG
Views:	2
Size:	3.5 KB
ID:	1495288

    please i need your help
    best regards

  • #2
    First, some warnings. The answer I give below is against my better judgement. I hope someone with more knowledge of "the threshold model" whatever that may be (you don't tell us the command) will comment on whether what you are attempting is necessary (we see a lot of questions about balanced panel data where the answer is "balance is not necessary").

    The xtbalance command (user written software from SSC) is over 10 years old and has not been updated to what I assume is a newer syntax of egen which uses rowmiss() instead of rmiss(). You can fix this by editing the xtbalance.ado file. In Stata's command window
    Code:
    doedit "`c(sysdir_plus)'/x/xtbalance.ado"
    and in the do-file editor window, change rmiss to rowmiss on line 34. Save the do-file. Then in Stata's command window run
    Code:
    do "`c(sysdir_plus)'/x/xtbalance.ado"
    to cause the ado file to be rerun, replacing the program with the corrected version.

    This may solve your problem, or it may just take you a few lines further to another piece of outdated code.

    I would be much happier if you could get better advice that what I am giving you.

    Comment


    • #3
      Dear William

      thank you so much for your answer

      but unfortunately it does not work
      i get the same problem

      Click image for larger version

Name:	Capture1.PNG
Views:	1
Size:	6.3 KB
ID:	1495334

      Comment


      • #4
        I have confirmed that the rmiss() function continues to exist in egen, so (a) my half-hearted answer at post #2 was incorrect, and (b) there is apparently something wrong with the installation of Stata on your system, since egen apparently is unable to identify the functions defined for it.

        At this point I suggest you reinstall xtbalance
        Code:
        ssc uninstall xtbalance
        ssc install xtbalance
        to restore your version of xtbalance to the original code.

        But, looking back on your previous posts to Statalist, I see you have used an unlicensed copy of Stata. It seems likely to me that the copy you are now using, licensed or not licensed, was not installed correctly, or fully. The ado file for the egen function rowmiss() will be named _growmiss.ado and the which command confirms its existence on my setup
        Code:
        . which _growmiss.ado
        /Applications/Stata/ado/base/_/_growmiss.ado
        *! version 1.0.0  04oct2004
        as well as rmiss()
        Code:
        . which _grmiss.ado
        /Applications/Stata/ado/base/_/_grmiss.ado
        *! version 3.0.0  04oct2004

        Comment


        • #5
          Dear William

          thanks a lot for your help
          i changed stata version and it works

          Best regards
          Sedki

          Comment

          Working...
          X