R - Error on one device only: Error in chol.default() : the leading minor of order is not positive definite, BVAR

43 Views Asked by At

I am estimating an BVAR model in R and get the following error:

Error in chol.default(V_post) : the leading minor of order 1 is not positive definite

Thats actually not the problem, since I work with data and model where this error could occur.

However, this only happens on my Lenovo Thinkpad X1. On my Dell XPS the algorithm starts drawing from posterior and everything seems to be fine.

So my question is: Given that I use exactly the same code and set.seed(), how can it happen that I get an error on one device only? Has anyone experienced something similar?

1

There are 1 best solutions below

0
Dun02 On

I updated R on the machine which showed the error to the newest version and it solved the problem.