
Last chance! 50% off unlimited learning
Sale ends in
afcon
data frame has 42 rows and 5 columns, for 42 African
countries, exclusing then South West Africa and Spanish Equatorial Africa
and Spanish Sahara. The dataset is used in Anselin (1995), and downloaded
from before adaptation. The neighbour list object africa.rook.nb
is the SpaceStat paper.nb
reconstructs the list used in the paper, with
inserted links between Mauritania and Morocco, South Africa and Angola
and Zambia, Tanzania and Zaire, and Botswana and Zambia. afxy
is the coordinate matrix for the centroids of the countries.data(afcon)
data(afcon)
plot(africa.rook.nb, afxy)
plot(diffnb(paper.nb, africa.rook.nb), afxy, col="red", add=TRUE)
text(afxy, labels=attr(africa.rook.nb, "region.id"), pos=4, offset=0.4)
moran.test(afcon$totcon, nb2listw(africa.rook.nb))
moran.test(afcon$totcon, nb2listw(paper.nb))
geary.test(afcon$totcon, nb2listw(paper.nb))
Run the code above in your browser using DataLab