Inverse Mills raito estimation

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Posts: 35
Joined: Wed Apr 04, 2012 10:38 am

Inverse Mills raito estimation

Postby oksanakim » Wed Sep 20, 2017 7:31 pm


I have used the Heckit in Eviews 9 but the output is very doubtful, so I decided to estimate the first-stage probit model first and then put Inverse Mills ratio in the second equation estimated with OLS - kind of old style before Heckit was not in Eviews.

I found and used a code to compute Inverse Mills raito in old posts (my probit first-stage equation is called "femaledirfirststage":

eqfemaledirfirststage.makeresid ordinary
eqfemaledirfirststage..makeresid(g) general yprob
series imills2 = general*(1-yprob)/ordinary

But the program returns the message "ordinary is not defined", and the iMills2 series have N/A in all the fields. How do I fix the above code?

Also, is it true that inverse mills ratio is simply residuals series automatically stored in Eviews from estimation of the first-stage probit model? Thanks a lot for any advice!!!

Return to “Estimation”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 7 guests