Dear all,
I am running a FMM using a GLM with poisson and log link. My dependent variable is log transformed: ln(Y+1).
However, when I transform back the predictions, only by reversing the transformation - "exp(yhat)-1", I have positive bias in the prediction for one of the classes (for the other one, the Y is basically zero, so the prediction is alright).
I tried already multiply (exp((`e(rmse)'^2)/2)) while back transforming as estimate of the error variance, but the result was basically the same I had before. I also tried regress the transformed back predicted values on the original Y variable, with no intercept, and then use the coefficient as adjustment term (coefficient*(exp(yhat)-1)), but again without success.
Any thoughts how could I fix this bias in my predicted values when I transform back?
Thanks.
Related Posts with Back log transformation with bias - FMM - GLM Poisson log link
Screen dataI guess this is a simple question. This is a monthly dataset. Permno is an unique code for firms. …
corresponding commands for manually adjusting graph Dear All, As requested by Nick Cox, I start this new thread. The original one is here (https://www.…
Graph like this!Dear All, How can I can draw a graph like thisArray which can be found here https://stats.stackexcha…
Help with connecting variables based on id #'sHi All, I am working with a smaller dataset of approximately 500 observations in Stata 15.1. I am i…
Unexpected IPO dealsDear Statalists, I am doing the research on some unexpected Initial Public Offering (IPO) events. Ba…
Subscribe to:
Post Comments (Atom)
0 Response to Back log transformation with bias - FMM - GLM Poisson log link
Post a Comment