powered by
Output spatial weights for WinBUGS
nb2WB(nb) listw2WB(listw)
an object of class nb
nb
a listw object from for example nb2listw
listw
nb2listw
A list suitable for convering using dput for WinBUGS
dput
http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/geobugs12manual.pdf
# NOT RUN { if (require(rgdal, quietly=TRUE)) { example(columbus, package="spData") x <- nb2WB(col.gal.nb) dput(x, control=NULL) x <- listw2WB(nb2listw(col.gal.nb)) dput(x, control=NULL) } # }
Run the code above in your browser using DataLab