View source: R/abundfunctions.R
build.nblist | R Documentation |
This generates a listw
-object as needed for estimation of a
simultaneous autoregression model in package spdep
from a
neighborhood list of the type generated in prabinit
.
build.nblist(prabobj,prab01=NULL,style="C")
prabobj |
object of class |
prab01 |
presence-absence matrix of same dimensions than the
abundance matrix of |
style |
can take values "W", "B", "C", "U", and "S" though tests
suggest that "C" should be chosen. See |
A 'listw' object with the following members:
style |
see above. |
neighbours |
the neighbours list in |
weights |
the weights for the neighbours and chosen style, with attributes set to report the type of relationships (binary or general, if general the form of the glist argument), and style as above. |
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
nb2listw
(which is called)
# Not run; requires package spdep
# data(siskiyou)
# x <- prabinit(prabmatrix=siskiyou, neighborhood=siskiyou.nb,
# distance="logkulczynski")
# build.nblist(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.