Announcement

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

  • Package File already exists despite Package not found

    I am trying to install a Chi-Squared Goodness of Fit package into Stata 15.1 but each time I try to install it I receive an error message (see below) this happens even with the . When I try to uninstall the package is not found.
    Code:
     ssc install csgof
    checking csgof consistency and verifying not already installed...
    installing into c:\ado\plus\...
    file c:\ado\plus\next.trk already exists
    Code:
    ssc uninstall csgof
    package not found
    I am not sure how to remove that package or how to install a package so that I can run the chi-square goodness of fit, or uninstall a package that doesn't exist.

  • #2
    -csgof- is not on SSC, it appears. It's at the UCLA site. See below
    Code:
    . ssc install csgof
    ssc install: "csgof" not found at SSC, type search csgof
    (To find all packages at SSC that start with c, type ssc describe c)
    r(601);
    
    . search csgof
    
    .==========================
    1 package found (Stata Journal and STB listed first)
    ----------------------------------------------------
    
    csgof from https://stats.idre.ucla.edu/stat/stata/ado/analysis
        csgof. Chi-Square Goodness of Fit / Statistical Consulting Group /
        Institute for Digital Research and Education, UCLA / idrestatucla.edu /
        STATA ado and hlp files in the package / distribution-date: 20150326
    
    (click here to return to the previous screen)
    
    (end of search)
    
    .==========================
    To find the precise directory in which you've installed -csgof-, type

    Code:
    which csgof, all

    Comment


    • #3
      As it has been mentioned,

      1. csgof is limited in not supporting if or in qualifiers

      2. The help file reports it as testing a hypothesis about percents, which the code fortunately implements as a test of a hypothesis about frequencies.

      Those qualifications don't apply to chitest or chitesti -- which are from SSC and in the package tab_chi.

      Comment


      • #4
        Thank you for that, is there a way to uninstall packages not on the ssc list? I have tried to install tab_chi but I received the same error as above.

        Comment


        • #5
          Naturally. ssc (in the last millennium I was second author of the first version) is just a wrapper for other commands, so see the help for ado.

          Otherwise, your next.trk seems messed up. I don't think it's especially dangerous to delete it, but it's at your risk. What you could do is rename it and see whether you can live without it. .

          Comment

          Working...
          X