Announcement

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

  • Installing an ado-file

    Hi,
    I have dowloaded an ado-file for updating the mvdcmp command but I'm not able to install the package
    Please how I can do it

    Claudia Silva
    Med student

  • #2
    Run the command -adopath-. Read down the output you get until you find the path for PLUS. Then move all those files to the m subdirectory in that directory (folder). That's it. You're good to go.

    Comment


    • #3
      You can also put the files in your personal ado directory. I actually think that this is what we are supposed to do, the plus directory is for files that Stata installs itself.

      You can discover where are those two directories by -adopath- (as Clyde said), or by -sysdir-.

      Finally you would need to restart your Stata, so do not panic if you put the files in personal or plus, and Stata still cannot find them, it will find them after you restart.

      Comment


      • #4
        Stata doesn't much care about the difference between PLUS and PERSONAL, but it won't install in PERSONAL unless you tell it to. It's rare that restarting Stata is needed here.

        Comment


        • #5
          Nick, regarding what you say about the restarting, strangely this is not my experience.

          Most recently I wrote an egen command in an ado file, and I had to restart my Stata 15.1 every time when I changed something in the ado file. If I did not restart, Stata would not see the changes I have made in the ado file.

          Originally posted by Nick Cox View Post
          Stata doesn't much care about the difference between PLUS and PERSONAL, but it won't install in PERSONAL unless you tell it to. It's rare that restarting Stata is needed here.

          Comment


          • #6
            The most likely explanation for this is that you needed to flush the program(s) in memory with program drop or discard -- not that you need to restart Stata. Restarting Stata would sometimes be the simplest way to get Stata to know where to look for Mata code just installed; otherwise I've installed or re-installed ados thousands of times and never needed to restart Stata.

            Comment


            • #7
              Originally posted by Nick Cox View Post
              Restarting Stata would sometimes be the simplest way to get Stata to know where to look for Mata code just installed;
              Agreed. However,

              Code:
              mata mata mlib index
              should work in most situations without the need to restart.

              Comment


              • #8
                #7 daniel klein That was the intended allusion to the second simplest method -- and the best.

                Comment


                • #9
                  Originally posted by Clyde Schechter View Post
                  Run the command -adopath-. Read down the output you get until you find the path for PLUS. Then move all those files to the m subdirectory in that directory (folder). That's it. You're good to go.
                  Sorry Clyde,
                  How can you move those files to that directory?

                  Comment

                  Working...
                  X