Announcement

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

  • where can i find "pprob" and "nbprob"?

    I'm using Stata 11 and have been able to find the nbvargr script, but it requires that nbprob and pprob be installed. These are not included in the nbvargr download and I'm not able to find these online.

    Any suggestions as to where i can find these or if there is another way of running nbvargr?

    Thanks,
    Alicia

  • #2
    All part of the same package. Type this in Stata

    Code:
    net describe nbvargr, from(https://stats.idre.ucla.edu/stat/stata/ado/analysis)
    and then install everything using

    Code:
     net install nbvargr

    (I guess wildly that you installed nbvargr with a browser but left other files uncopied.)

    Comment


    • #3
      Perhaps you didn't properly install the nbvargr package.

      First uninstall your present nbvargr package by running -net uninstall nbvargr-.

      Run -findit nbvargr-. Then click on the link "nbvargr from https://stats.idre.ucla.edu/stat/stata/ado/analysis"

      Now on the page that opens upin your viewer, about half way down the page and somewhat off to the right there is another link that says "click here to install." Stata will install nbvargr.ado, as well as pprob.ado, and nbprob.ado, along with their help files and any other ancillaries that the package may require.

      Added: Crossed with #2.
      Last edited by Clyde Schechter; 19 Mar 2019, 16:10.

      Comment


      • #4
        Thank you both for your responses!! However, unfortunately, neither have worked. See below:

        I tried Nick's suggestion and received the following error:

        . net describe nbvargr, from(https://stats.idre.ucla.edu/stat/stata/ado/analys
        > is)
        unknown network protocol
        https://stats.idre.ucla.edu/stat/stata/ado/analysis/ either
        1) is not a valid URL, or
        2) could not be contacted, or
        3) is not a Stata download site (has no stata.toc file).
        r(671);

        . net install nbvargr
        file http://www.stata.com/nbvargr.pkg not found
        could not load nbvargr.pkg from http://www.stata.com/
        r(601);

        Then I tried Clyde's suggestion and selected the link as you stated above from the pop up window, and I got the following error:

        unknown network protocol
        https://stats.idre.ucla.edu/stat/stata/ado/analysis/ either
        1) is not a valid URL, or
        2) could not be contacted, or
        3) is not a Stata download site (has no stata.toc file).

        current site is still http://www.stata.com/

        r(671);
        ------------------------------------------------------------------------------------------------------------------
        (click here to return to the previous screen)

        Comment


        • #5
          Indeed. You did tell us that you are using Stata 11 -- and Stata did not support https. Our mistake. So, you need to use a browser. If that fails, send me a private message with an email address and I will email you the files directly.

          Comment


          • #6
            Hi Nick,

            I'm facing the same problem as Alicia, however I use Stata 12. I tried to use a browser for installing nbvargr, but the page was not found. Is there another option I can try by now?

            Thanks a lot in advance.

            Maja

            Comment


            • #7
              Indeed. I can't find a web page either.

              Correction: https://stats.idre.ucla.edu/stata/ado/analysis/ gives a link to a .zip file.
              Last edited by Nick Cox; 07 Feb 2020, 05:22.

              Comment


              • #8
                Hi Nick,

                thanks a lot. I can now download the zip-file.

                Comment


                • #9
                  Sorry Nick, I need to ask again. I downloaded the package, however I cannot install the package. It does not response when I click it.

                  I read in another thread that I need to put the package into a Stata Plus directory (it is listed when I type the command -adopath-). However, before I try that I wanted to ask again, as I do not want to mess with the structure of the software as I also read to never put anything in the Base directory.

                  Do you got any advice on how to install the package? I am using Mac OS.

                  Comment


                  • #10
                    adopath tells you the setting of PLUS. If your unstated download location was different you need to make adjustments.

                    Stata expects to see community-contributed program files in the folders or subdirectories of PLUS. Thus on my current Windows machine PLUS is


                    Code:
                    C:\Users\Laptop\ado\plus/
                    and for example pprob files belong in p off that and nprob files in n off that. If you speak American "off that" should perhaps be "off of that".

                    Comment


                    • #11
                      Thank you for your quick response. The package was downloaded in my regular "download folder". I wanted to locate the subdirectories of PLUS on my computer to put the package there and used the -adopath- command for it. I got the following result:

                      adopath
                      [1] (UPDATES) "/Applications/Stata/ado/updates/"
                      [2] (BASE) "/Applications/Stata/ado/base/"
                      [3] (SITE) "/Applications/Stata/ado/site/"
                      [4] "."
                      [5] (PERSONAL) "~/Library/Application Support/Stata/ado/personal/"
                      [6] (PLUS) "~/Library/Application Support/Stata/ado/stbplus/"
                      [7] (OLDPLACE) "~/ado/"

                      It states that PLUS is located in the following path_ "~/Library/Application Support/Stata/ado/stbplus/". However the path "Library/Application Support" does not include a Stata-folder. I can only locate the BASE directory on my computer. Do you think I can just create the path/folder structure "~/Library/Application Support/Stata/ado/stbplus/" and drop the package there?

                      Sorry for these basic questions.

                      Comment


                      • #12
                        I don't know enough about Macs to know precisely what is puzzling you.

                        If Stata does the download then ~/Library/Application Support/Stata/ado/stbplus/ is created if it doesn't exist and similarly ~/Library/Application Support/Stata/ado/stbplus/n and ~/Library/Application Support/Stata/ado/stbplus/p and so forth.

                        I suspect you need to create those yourself and then copy the files. Note that they must be unzipped.

                        Comment


                        • #13
                          Thank you very much for your kind help. Somehow I cannot open the files anyways, I think it has something to do with my Mac.

                          I'm not sure whether to start a new thread for the following question:
                          Do you know a similar command(s) that graph the observed proportions along with the poisson and negative binomial probabilities for count variables?

                          Comment


                          • #14
                            Let a Mac user add the following.

                            It states that PLUS is located in the following path_ "~/Library/Application Support/Stata/ado/stbplus/". However the path "Library/Application Support" does not include a Stata-folder. I can only locate the BASE directory on my computer. Do you think I can just create the path/folder structure "~/Library/Application Support/Stata/ado/stbplus/" and drop the package there?
                            You have been looking for your PLUS directory in "/Library/Application Support" which the leading / tells us is located in the root directory.

                            You are told to be looking in "~/Library/Application Support" which the leading ~ tells us is located in your home directory.

                            Unfortunately macOS makes that directory tricky to find, because most users have no need to access it.

                            In the Finder, select the Go menu and you might find an entry for Library. That will take you to the Library in your home directory.

                            Alternatively, in the Finder, select the Go menu, from it select Go to Folder ..., and in the popup that opens, enter ~/Library/Application Support and click the Go button in that window.
                            Last edited by William Lisowski; 09 Feb 2020, 14:22.

                            Comment


                            • #15
                              Thanks a lot William. That did the trick:

                              Originally posted by William Lisowski View Post
                              Alternatively, in the Finder, select the Go menu, from it select Go to Folder ..., and in the popup that opens, enter ~/Library/Application Support and click the Go button in that window.
                              I put the downloaded nbvargr and pprob files (.ado and .hlp) in the "n"/"p"-folders as suggested by Nick. Now Stata can run these commands. Thank you both a lot.

                              Sorry, I have one last question: Nick provided me with a link to downloadable .zip-files. I downloaded nbvargr and pprob. However nbprob is not included there and I couldn't find it elsewhere. Do you got any advice on where to look for it?

                              Comment

                              Working...
                              X