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: prediction after y-logged oheckman regression


From   "Vanessa Carrion" <vcarrion@vt.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: prediction after y-logged oheckman regression
Date   Fri, 3 May 2013 17:18:20 -0400

Hi,

I am running an oheckman model in which y variable is logged. I read that in
order to get an anti-logged prediction of yhat, one should proceed like
this:

1. Run the regression and predict yhat,
2. Then exponentiate the predicted yhat, and finally
3. Multiply the exponentiated predicted yhat by the mean value of residuals
from the regression.

After doing so, my yhat becomes a column of missing values. Am I doing
something wrong?

On the other hand, I read that predlog is useful for OLS regression.
However, I don't know how to implement it for an oheckman.

Thank you!

Vanessa

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


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