MCMC error 0315

Welcome to the forum for MLwiN users. Feel free to post your question about MLwiN software 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!

Remember to check out our extensive software FAQs which may answer your question: ... port-faqs/
Post Reply
Posts: 19
Joined: Wed Oct 12, 2011 2:52 am

MCMC error 0315

Post by Raphael »

Hi all,
I am currently trying to run a 2-level model with random random intercepts, a random slope, and a cross-level interaction. My goal is to run this model in the MCMC mode. The problem is that the covariance term obtains a negative value if I fit the model using IGLS (which not very unusual to happen)
var(cons) 0.0228347
cov(cons,femhead) -0.0037903
var(femhead) 0.0004103
When I switch to MCMC I get the following error message:
"MCMC Error 0315: Prior variance matrix is not positive definite"

Does anyone has an idea how I can fix this problem?
Thanks a lot for your help!

Post Reply