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.
code (the error occurs after executing final line, toy model estimated through bsar function):
any ideas?
Comments
Post a Comment