Dear all,
I am aware that there have been questions about SUREG regressions before, but mine is a bit different:
I am trying to estimate a system of equations with constraints using robust standard errors, as I have reason to belive that my errors are not iid.
Since Stata's sureg command does not allow robust errors, I did some research and found the mysureg command, which can be accessed here:
http://www.stata-press.com/data/ml4.html
This command allows for robust errors. However, Stata seems to have some issues calculating the system as it iterates the ML function more than 100 times and displays the MLF is not concave after 20 or so iterations. When I try to estimate the same system via sureg, there is no problem with the estimation.
I find this a bit puzzling, as the maximization procedure between sureg and mysureg should not really be different. They both use ML to estimate the same system of equations.
Does anyone have an idea why the one converges and the other does not?
I also tried to set initial values for the mysureg MLF by typing
,
where val is a vector of parameter estimates for the system obtained by sureg.
However, when I afterwards type ml check, I get an r(2000) error and am not able to start the optimization procedure at all.
So, I am left a bit confused if mysureg is actually the command I want to use here. Does any of you have any suggestions what I should further try?
I am aware that there have been questions about SUREG regressions before, but mine is a bit different:
I am trying to estimate a system of equations with constraints using robust standard errors, as I have reason to belive that my errors are not iid.
Since Stata's sureg command does not allow robust errors, I did some research and found the mysureg command, which can be accessed here:
http://www.stata-press.com/data/ml4.html
This command allows for robust errors. However, Stata seems to have some issues calculating the system as it iterates the ML function more than 100 times and displays the MLF is not concave after 20 or so iterations. When I try to estimate the same system via sureg, there is no problem with the estimation.
I find this a bit puzzling, as the maximization procedure between sureg and mysureg should not really be different. They both use ML to estimate the same system of equations.
Does anyone have an idea why the one converges and the other does not?
I also tried to set initial values for the mysureg MLF by typing
Code:
ml model mysureg $equations, constraints($constr) vce(robust) ml init val
where val is a vector of parameter estimates for the system obtained by sureg.
However, when I afterwards type ml check, I get an r(2000) error and am not able to start the optimization procedure at all.
So, I am left a bit confused if mysureg is actually the command I want to use here. Does any of you have any suggestions what I should further try?
Comment