Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Poisson residuals


From   Fabien Bertho <fabien.bertho@sciences-po.org>
To   statalist@hsphsun2.harvard.edu
Subject   st: Poisson residuals
Date   Thu, 24 Nov 2011 10:01:41 +0100 (CET)

Hello,

I am trying to compute residuals after Poisson regressions.

First, I used the following code:

predict yhat
gen poisson_residual= y - yhat

Then, I tried the Stata command

predict poisson_residual_stdp, stdp

Finally, I tried this one

predict poisson_residual_score, score


The first code gives exactly the same values as the third one. And I don't understand the difference with the second computation. 

Please, what is the difference between both and and which is the right value?

Thank you.

Fabien BERTHO

--------------------------------------------------------------------------
Tous les courriers électroniques émis depuis la messagerie
de Sciences Po doivent respecter des conditions d'usages.
Pour les consulter rendez-vous sur
http://www.ressources-numeriques.sciences-po.fr/confidentialite_courriel.htm

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index