Based on a Hausman/test I have to choose a fixed model instead of a random effects model. I cannot use -xtreg, fe- because I have the time-invariant variable Male (and in another regression MBA...but the possible solution for Male is probably also usable for MBA). When I use -xtreg, re- I do not get a significant result for Male (neither for MBA)
Therefore, I decided to use -xthtaylor- because that seems to be the best solution. However, there's only 1 not so clear example on the Internet (I searched for about 30-45 minutes for another example).
Based on the example of https://kb.iu.edu/d/bcfo the variable -ed- is the endogenous time-invariant regressor but when I look at that data, -ed- seems to change over time.
In my case, Male (gender) (and MBA) do not change over time and my other independent variables do change over time (I assume they're endogenous time-varying variables based on the error below)
"There are no time-varying exogeneous variables in the model.
If you have those variables specified, they may have been removed because of collinearity."
Hopefully someone can help me.
Kind regards,
Victoria
Therefore, I decided to use -xthtaylor- because that seems to be the best solution. However, there's only 1 not so clear example on the Internet (I searched for about 30-45 minutes for another example).
Based on the example of https://kb.iu.edu/d/bcfo the variable -ed- is the endogenous time-invariant regressor but when I look at that data, -ed- seems to change over time.
In my case, Male (gender) (and MBA) do not change over time and my other independent variables do change over time (I assume they're endogenous time-varying variables based on the error below)
Code:
xthtaylor alpha MRP SMB HML MOM Male, endog(Male) constant(Male) xthtaylor alpha MRP SMB HML MOM Male, endog(MRP SMB HML MOM) constant(Male)
If you have those variables specified, they may have been removed because of collinearity."
Hopefully someone can help me.
Kind regards,
Victoria
Comment