Running predict() after tobit() in package AER

不羁的心 提交于 2019-12-06 06:42:45

Generally predict-"response" results have been back-transformed to the original scale of data from whatever modeling transformations were used in a regression, whereas the "linear" predictions are the linear predictors on the link transformed scale. In the case of tobit which has an identity link, they should be the same.

You can check my meta-prediction easily enough. I just checked it with the example on the ?tobit page:

plot(predict(fm.tobit2, type="response"), predict(fm.tobit2,type="linear"))
Richard

I posted a similar question on stats.stackexchange and I got an answer that could be useful for you:

https://stats.stackexchange.com/questions/149091/censored-regression-in-r

There one of the authors of the package shows how to calculate the mean of (ie. prediction) of $Y$ where $Y = max(Y^*,0)$. Using the package AER this has to be done somewhat "by hand".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!