Announcement

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

  • Deviance residual values logit vs glm

    Hi all

    I am comparing diferents methods to analize logistic regresion by logit command and glm commands.

    I am having problems to compare Deviance residuals values with both method, do you know the reason

    you can check it if you run this this command

    PHP Code:
    sysuse autoclear

    logit foreign mpg

    predict xb
    xb
    predict dev
    deviance

    glm foreign mpg
    family(binomiallink (logit)

    predict xb2xb
    predict dev2
    deviance

    scatter dev xb

    scatter dev2 xb2 

  • #2
    I think we have had this discussion a few times before. See if this thread (and/or the threads it links to) helps.

    https://www.statalist.org/forums/for...ls-after-logit
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 19.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      Thanks Richard for the reference!

      Regards

      Comment

      Working...
      X