dagenais at ualberta.ca wrote:
>Hi,
>I am a new student to R and I was hoping someone could help me with
>the error message I keep getting when I try to use the nb2listw()
>function.
>
>I have 45 sites and I want to get an autocorrelation value for sites
>within 1000m of each other.
>
>coords<-cbind(EAST,NORTH)
>coords<-as.matrix(coords)
>nb1000<-dnearneigh(coords,0,1000,longlat=TRUE)
>
>then when I try to run the nb2listw(nb1000, style="W")
>I get an error message of "Empty neighbour sets found". Can
someone
>tell me what this means and how to possible fix it.
>
>Thanks
>Lynnette
>
>~
>Lynnette Dagenais
>M.Sc. Candidate
>Department of Renewable Resources
>University of Alberta
>Edmonton, AB
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
>
>
>
>
Hi,
this means that at least on site has no neighbours. Set zero.policy=TRUE
(you may read ?nb2listw) to avoid getting an error. chooseCN (pack.
adegenet) could help you choose your connection network interactively.
Cheers,
Thibaut.
--
######################################
Thibaut JOMBART
CNRS UMR 5558 - Laboratoire de Biom?trie et Biologie Evolutive
Universite Lyon 1
43 bd du 11 novembre 1918
69622 Villeurbanne Cedex
T?l. : 04.72.43.29.35
Fax : 04.72.43.13.88
jombart at biomserv.univ-lyon1.fr
http://lbbe.univ-lyon1.fr/-Jombart-Thibaut-.html?lang=en
http://pbil.univ-lyon1.fr/software/adegenet/