nb2WB | R Documentation |
Output spatial weights for WinBUGS
nb2WB(nb)
listw2WB(listw)
nb |
an object of class |
listw |
a |
A list suitable for convering using dput
for WinBUGS
Virgilio Gomez-Rubio
http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/geobugs12manual.pdf
dput
col.gal.nb <- read.gal(system.file("weights/columbus.gal", package="spData")[1])
x <- nb2WB(col.gal.nb)
dput(x, control=NULL)
x <- listw2WB(nb2listw(col.gal.nb))
dput(x, control=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.