Announcement

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

  • UCLA's sgmediation

    At the outset, let me say that I'm still using Stata 12, so perhaps that's the issue.

    I find that sgmediation from UCLA is no longer working. I figured that I perhaps need to reinstall it. I did a "findit sgmediation" from within Stata, and it yielded the following:


    (contacting http://www.stata.com)

    1 package found (Stata Journal and STB listed first)
    ----------------------------------------------------

    sgmediation from https://stats.idre.ucla.edu/stat/stata/ado/analysis
    sgmediation. Program to compute Sobel-Goodman mediation tests. / Philip
    B. Ender / Statistical Computing and Consulting / UCLA Academic Technology
    Services / [email protected] / Stata ado and hlp files in the package /
    distribution-date: 20120324

    That looks normal. However, the link only yields an 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).


    That's unnerving. Is UCLA no longer offering/supporting sgmediation? Have they pulled back from Stata more generally? Tell me this error is merely a temporary technological issue!


  • #2
    Installation just worked for me.

    I think your questions are best answered indirectly. This is a program by Phil Ender, who has retired from UCLA.

    I don't think that it was ever anything but the result of an individual project.

    I don't gather that there is, or was, any sense in which UCLA offer or provide support to outsiders beyond just putting up stuff to download.

    Comment


    • #3
      I'll hazard a guess that the problem has something to do with the use of https rather than http for the UCLA site. That site was updated within the last year or so.

      Try the following, it worked for me, but I cannot confirm that its working wasn't due to a redirection from the http URL back to the https URL.
      Code:
      net install sgmediation, from(http://stats.idre.ucla.edu/stat/stata/ado/analysis)
      If that fails in Stata 12, then try using these URLs
      Code:
      https://stats.idre.ucla.edu/stat/stata/ado/analysis/sgmediation.ado
      https://stats.idre.ucla.edu/stat/stata/ado/analysis/sgmediation.hlp
      in your browser of choice, saving the files to disk and copying them into your personal ado directory as shown by the command
      Code:
      display c(sysdir_personal)

      Comment


      • #4
        Originally posted by William Lisowski View Post
        I'll hazard a guess that the problem has something to do with the use of https rather than http for the UCLA site. That site was updated within the last year or so.

        Try the following, it worked for me, but I cannot confirm that its working wasn't due to a redirection from the http URL back to the https URL.
        Code:
        net install sgmediation, from(http://stats.idre.ucla.edu/stat/stata/ado/analysis)
        Good call! That's exactly what it was, and your installation suggestion worked perfectly. Perhaps UCLA dropped their SSL certificate for that website, leaving the stuff there but making "https" to throw an error.

        Thanks for your help!

        Comment


        • #5
          Thanks for closing the loop on my shot in the dark.

          Now that we know what works, I spent a little time with the "help whatsnew" archives to confirm that the problem was not at UCLA, but rather that Stata had no https (nor ftp) support until Stata 13. The error message reporting "unknown network protocol" was because Stata saw "https" and said, in effect, "hey, what?" There wasn't a problem for you when you previously installed sgmediation from UCLA because their site provided http URLs for Stata's indexing, rather than https URLs, until its recent refresh.

          Comment


          • #6
            Originally posted by William Lisowski View Post
            I'll hazard a guess that the problem has something to do with the use of https rather than http for the UCLA site. That site was updated within the last year or so.

            Try the following, it worked for me, but I cannot confirm that its working wasn't due to a redirection from the http URL back to the https URL.
            Code:
            net install sgmediation, from(http://stats.idre.ucla.edu/stat/stata/ado/analysis)
            If that fails in Stata 12, then try using these URLs
            Code:
            https://stats.idre.ucla.edu/stat/stata/ado/analysis/sgmediation.ado
            https://stats.idre.ucla.edu/stat/stata/ado/analysis/sgmediation.hlp
            in your browser of choice, saving the files to disk and copying them into your personal ado directory as shown by the command
            Code:
            display c(sysdir_personal)
            It seems like the UCLA page on the Sobel-Goodman mediation analysis no longer exists.
            The ado is no longer provided in either of the two links below:
            https://stats.idre.ucla.edu/stata/ado/analysis/
            https://stats.idre.ucla.edu/stata/ado/world/

            Comment

            Working...
            X