% Generated by roxygen2: do not edit by hand % Please edit documentation in R/afcon.R \docType{data} \name{afcon} \alias{afcon} \alias{africa.rook.nb} \alias{afxy} \alias{paper.nb} \title{Spatial patterns of conflict in Africa 1966-78} \format{This data frame contains the following columns: \itemize{ \item{x} {an easting in decimal degrees (taken as centroid of shapefile polygon)} \item{y} {an northing in decimal degrees (taken as centroid of shapefile polygon)} \item{totcon} {index of total conflict 1966-78} \item{name} {country name} \item{id} {country id number as in paper} }} \source{ Anselin, L. and John O'Loughlin. 1992. Geography of international conflict and cooperation: spatial dependence and regional context in Africa. In The New Geopolitics, ed. M. Ward, pp. 39-75. Philadelphia, PA: Gordon and Breach. also: Anselin, L. 1995. Local indicators of spatial association, Geographical Analysis, 27, Table 1, p. 103. } \usage{ afcon } \description{ The \code{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 \code{africa.rook.nb} is the SpaceStat \file{rook.GAL}, but is not the list used in Anselin (1995) - \code{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. \code{afxy} is the coordinate matrix for the centroids of the countries. } \note{ All source data files prepared by Luc Anselin, Spatial Analysis Laboratory, Department of Agricultural and Consumer Economics, University of Illinois, Urbana-Champaign. } \examples{ data(afcon) if (!requireNamespace("spdep", quietly = TRUE)) { library(spdep) 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)) } } \keyword{datasets} \keyword{spdep}