I don't see the Stata is doing anything wrong. You are comparing (post#13) REML estimation from Stata version-11 vs. ML estimation from Stata-version 13. Two are completely different estimation process and naturally will differ. Unlike ML, in REML, the likelihood function is based only on the distribution of residuals at the random part, while in ML the function is maximized based on both fixed and random part.
ML is negatively biased if you have small sample size, and that is happening here as you have only 14 countries. Since it is not being able to compute the variance, it gives you what would have received from OLS. Thus, they don't differ. REML is a better choice when you have a small number of Cluster.
Since you have a small number of cluster, to avoid bias, I would not rely on the LR test from REML even though it is signficant. I would try fitting a null model first with random effect option and will do a Score/Lagrange multiplier test:
If that produces non-zero level-2 variance, an REML based Mixed model will make sense.
ML is negatively biased if you have small sample size, and that is happening here as you have only 14 countries. Since it is not being able to compute the variance, it gives you what would have received from OLS. Thus, they don't differ. REML is a better choice when you have a small number of Cluster.
Since you have a small number of cluster, to avoid bias, I would not rely on the LR test from REML even though it is signficant. I would try fitting a null model first with random effect option and will do a Score/Lagrange multiplier test:
Code:
xtset country xtreg yvariable, re xttest0
Comment