I am running an inverse hyperbolic sine regression with the survey command and have a question about back-transforming the inverse hyperbolic sine variable to create predictions. Here is my code:
Code:
gen ihs_inc=asinh(income) svyset [pw=fex] svy: reg ihs_inc i.male i.edu age predict yhat replace yhat=sinh(yhat)
Code:
replace yhat=exp(e(mse)/2)
However (and herein lies the problem), because I am using svy to regress, Stata does not produce e(mse). (I think this is linked to the fact that svy uses robust standard errors?)
Does anyone have any thoughts for how to get around this problem so that I can create the prediction?
Thanks very much in advance,
Jimmy
0 Response to Back-transform inverse hyperbolic sine variable after survey regression
Post a Comment