Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!
I am quite new to multilevel regression modelling. I am trying to run a random coefficient using the MCMC method with the code below.
I keep getting an error that says "Unable to invert va". I have tried all the other solutions suggested on this forum with no success.
Any help to fix this problem will immensely be appreciated, thanks in advance.
What do the results of the IGLS model that you are using as starting value look like? Are any of the parameter estimates zero? Have you tried fitting simpler versions of the model, and if so do these work?
Thank you for responding to my question.
Before I respond to your list of questions, I want to explain what I am trying to model. My data is made up of households nested within countries. With the code I shared initially I trying to model the contextual effect of the variable "c_polity" which a is country-level variable.
What do the results of the IGLS model that you are using as starting value look like? Are any of the parameter estimates zero?
In regards to your 1st and 2nd questions, I have attached the results of IGLS model.
Capture2.PNG (78.88 KiB) Viewed 6879 times
Have you tried fitting simpler versions of the model, and if so do these work?
Yes, I have tried simpler specification with the MCMC and it worked perfectly.
The immediate cause of the error is the var(c_polity) variable in the MCMC model is being given a starting value of zero, which will mean that the level-2 co-variance matrix is non-invertable. A workaround would be to specify your own starting values and seeing whether the estimation is able to get further. I couldn't tell you whether this problem is due to your data or problems with the IGLS quasi-likelihood estimation. I would suggest trying a range of starting values for the MCMC model to see what effect it has on the model results.