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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -