Dear all,
I compute xtreg, re with robust standard errors:
To calculate any misspecification, I do the following test:

The p-value is significant, accordingly there is a misspecification. Now to my topic, which is why I am posting here:
I have checked that my independent variable is no mathematical functions of dependent variables, I have included my independent variable as a squared term, I have log-transformed any non-linear variables, I have changed the number of yhat, I have changed the independent variable once and changed the independent variable and the two moderators on another occasion. None of this helped to fix the misspecification. Only the selection of a new dependent variable removed the misspecification. However, this cannot be a solution, since I want to examine the dependent variable on the one hand and have derived it theoretically on the other hand. It can't be the data set itself, because I found out from several samples of this data set that my model has no misspecification within the samples.
So my question is, what else can I do to fix misspecification in a model without having to change my dependent variable?
Thanks a lot for your help and support!
I compute xtreg, re with robust standard errors:
Code:
quietly xtreg c.BNP c.TO c.VRI c.ALR c.TO#c.VRI c.TO#c.ALR HH c.LMN c.POL c.ZRI c.SDT,fe vce(robust)
Code:
predict yhat, xb gen yhat2 = yhat^2 gen yhat3 = yhat^3 gen yhat4 = yhat^4 quietly xtreg c.BNP c.TO c.VRI c.ALR c.TO#c.VRI c.TO#c.ALR HH c.LMN c.POL c.ZRI c.SDT yhat2 yhat3 yhat4,fe vce(robust) test yhat2=yhat3=yhat4=0
The p-value is significant, accordingly there is a misspecification. Now to my topic, which is why I am posting here:
I have checked that my independent variable is no mathematical functions of dependent variables, I have included my independent variable as a squared term, I have log-transformed any non-linear variables, I have changed the number of yhat, I have changed the independent variable once and changed the independent variable and the two moderators on another occasion. None of this helped to fix the misspecification. Only the selection of a new dependent variable removed the misspecification. However, this cannot be a solution, since I want to examine the dependent variable on the one hand and have derived it theoretically on the other hand. It can't be the data set itself, because I found out from several samples of this data set that my model has no misspecification within the samples.
So my question is, what else can I do to fix misspecification in a model without having to change my dependent variable?
Thanks a lot for your help and support!
Comment