Announcement

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

  • GAM download in stata

    how to download GAM (generalized additive model) in stata ?

  • #2
    You can start with -search generalized additive models- and see what user-created packages exist.

    Comment


    • #3
      I have downloaded but it shows following error

      GAMFIT failure, $.out not found
      file $.out not found

      Comment


      • #4
        The complete error message was maybe:
        Code:
        GAMFIT failure, gam.exe not found
        GAMFIT failure, $.out not found
        and running
        Code:
        which gam
        findfile gam.exe
        might show you have installed gam.ado in the PLUS directory, but Stata cannot find gam.exe

        if so, you may try:
        Code:
        copy "http://fmwww.bc.edu/repec/bocode/g/gam.zip" "`c(sysdir_plus)'g/" , replace
        unzipfile "`c(sysdir_plus)'g/gam.zip" , replace
        then test
        Code:
        which gam
        findfile gam.exe
        
        sysuse auto , clear
        gam mpg weight displacement, df(weight:3, displ:4)
        gam foreign mpg, family(binomial) df(3)
        xi: gam foreign mpg i.rep78, family(binomial) df(mpg:2)

        Comment


        • #5
          thank you so much. It worked. really appreciated.

          Comment


          • #6
            Dear Bjarte (and All),

            I found this post (about GAM) and your advice useful. I will very much appreciate your further advice about the following:

            If I run GAM using a dataset like auto.dta, GAM works. However, using my own dataset, STATA returns the following message:

            GAMFIT failure, $.out not found
            stats not found


            What am I doing wrong? And how do I fix it?

            Thanks in advance.

            Regards,
            Itai

            Comment

            Working...
            X