Announcement

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

  • GLM diagnostics -glmdiag-

    Hi,

    I have two questions:

    (a) I found a do file (http://www.uphs.upenn.edu/dgimhsr/stat-cstanal.htm), which allows me to run some GLM diagnostics. I ran the do file, then the GLM, and then the command glmdiag.

    STATA mentions this: . glmdiag
    ==0 invalid name
    r(198);

    Do you have any suggestions? I cannot find the problem.

    (b)I tried to use this ado file, however I am not very familiar with this concept. I used -mkdir- to create a personal folder for the ado files. Could you please let me know what is the process after this? I copied the ado file to the new folder (manually), I then ran the GLM and the -glmdiag- command. But stata reported this:

    glmdiag
    ==0 invalid name
    r(198);

    What do you suggest?

    Thank you in advance.

    Kind regards,

    Nikos




  • #2
    do NOT make your own folders; see "h sysdir" (and the accompanying manual entry)

    Comment


    • #3
      Thank you Rich. I had made it, based on the path provided by the sysdir command, as you said. But it didn't work.

      Comment


      • #4
        You need to predict fitted values after your glm command.

        Thus:
        glm dep_var ind_var,family() link()
        predict p1,mu
        glmdiag

        Comment

        Working...
        X