r - Error: 'X' must be a numeric or complex matrix [in a binary spatial autoregressive model] -


i estimating binary spatial autoregressive model via gibbs sampler in r. when using neighborhood matrix, goes fine, when switch distance matrix, program stops immediately, , outputs infamous:

"error in ginv(a) : 'x' must numeric or complex matrix"

what strikes me odd when try compute generalized inverse myself, goes smoothly, , matrixes seem numeric. below find data , code replicable example.

data link

code (the error occurs after executing final line, toy model estimated through bsar function):

code link

any ideas?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -