Skip to content
Prev 27316 / 29559 Next

Error while using predict.sarlm

Dear Prof. Roger Bivand,

I was able to sort the error by using the 'row.names' argument in the
knn2nb function. I extracted the ID variable from my data and passed that
as input for row.names. Now when I checked I got the following.
int [1:182] 16144 16007 16151 15910 15785 15829 16157 15909 16223 16097 ...
chr [1:182] "16144" "16007" "16151" "15910" "15785" "15829" "16157"
"15909" "16223" ...
[1] TRUE

I am now successfully able to use the predict.sarlm function. Thanks a ton
for your help!!


       Thanks & regards,

*Amitha Puranik*
















On Sun, May 26, 2019 at 9:52 PM Amitha Puranik <puranik.amitha at gmail.com>
wrote: