### Results different in MLwiN and R (R2MLwiN/lme4) for a 5-level variance components model

Posted:

**Tue Jun 25, 2019 2:18 pm**Hi,

I run a five-level variance components models in R and MlwiN with the same data, In R I tried to run the model using two different packages; one is R2MLwiN, the other the lme4. But all these results are different. when I used Lme4 the results shows " Model failed to converge with max|grad| = 0.00206026 (tol = 0.002, component 1)". But the model works well in MlwiN or by R2MLwiN in R. What is more, these three results are different( ), I realy wish to know why is that. Is there anyone know why there is a difference among these three ways?

Many thanks.

I run a five-level variance components models in R and MlwiN with the same data, In R I tried to run the model using two different packages; one is R2MLwiN, the other the lme4. But all these results are different. when I used Lme4 the results shows " Model failed to converge with max|grad| = 0.00206026 (tol = 0.002, component 1)". But the model works well in MlwiN or by R2MLwiN in R. What is more, these three results are different( ), I realy wish to know why is that. Is there anyone know why there is a difference among these three ways?

Many thanks.