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 on April 23, and its replacement, is already up and running.

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

st: Generalized residuals after ordered probit estimation

Subject   st: Generalized residuals after ordered probit estimation
Date   Sat, 22 Oct 2011 19:42:33 +0200 (CEST)

Dear Stata-Listers,

I have some problems in calculating the generalized residuals after the
estimation of an ordered probit model.
For y = [0,1,2] it should be something like this:

predict `xb_hat', xb
gen r = 0
replace r = (-normalden(_b[/cut1] - xb_hat))/(normal(_b[/cut1] - xb_hat)) 
if (y == 0)
replace r = (normalden(_b[/cut1] - xb_hat) - normalden(_b[/cut2] -
xb_hat))/(normal(_b[/cut2] - xb_hat)-normal(_b[/cut1] - xb_hat))  if (y ==
replace r = normalden(_b[/cut2] - xb_hat)/(1 - normal(_b[/cut2] - xb_hat))
 if (y == 2)

Unfortunately, the sum of my residuals is never even close to zero. Do you
have any advice?
Perhaps I didn't really understood Stata's parameterization of the

*   For searches and help try:

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