Hi all,
I have been trying to calculate the RMSE after poisson with sereval methods, also after the GLM Version the res Option didn't give me the right result, so I think I'm missing something essential here.
1) I know now that poisson doesn't support the Option "predict resid, response" --> "Option residuals not allows"
2) I tried then after reading some other comments on the Internet:
which gives the same result as:
The value it gives me is over 1100 whereas OLS (reg lnflow $xlist dindep* dyear*, vce (cluster $id)) calculates an RMSE of 1.888. In the Output I'm reproducing this should be around 1.9, too.
I read somewhere that the glm function is used for un-paneled date but I'm using unbalanced panel data for analyzing trade flows. Could this matter?
Any thoughts on this?
Please tell me if you need more Information.
Thank you very much!
Karin
I have been trying to calculate the RMSE after poisson with sereval methods, also after the GLM Version the res Option didn't give me the right result, so I think I'm missing something essential here.
1) I know now that poisson doesn't support the Option "predict resid, response" --> "Option residuals not allows"
2) I tried then after reading some other comments on the Internet:
Code:
glm flow $xlist dindep* dyear*, fam(poisson) link(log) vce (cluster $id) predict resid, res gen resid2 = resid^2 sum resid di sqrt(1297812*(945873/945873-945741)) 1139.295
Code:
poisson flow $xlist dindep* dyear*, vce (cluster $id) predict predicted gen residual = flow - predicted gen residual2=residual^2 sum residual2 (or alternatively predict resid, score)
I read somewhere that the glm function is used for un-paneled date but I'm using unbalanced panel data for analyzing trade flows. Could this matter?
Any thoughts on this?
Please tell me if you need more Information.
Thank you very much!
Karin
Comment