Re: [R] bivirate k-function

From: Roger Bivand <>
Date: Tue 06 Sep 2005 - 06:06:34 EST

On Mon, 5 Sep 2005, Michael Holm wrote:

> Hi
> Is there anyone who can help a reporter (me) with the following:
> I want to use the bivirate k-function to determin if burgerbars are
> clustered around schools.
> To that purpose I’ve been told to use the bivirate k-function, but my
> program Arcview doesn’t contain that.
> Im stuck on a dead end – how to I for a start get the data into R?

The file format prefered by ArcView for point data is shapefile - see packages maptools or shapefiles on CRAN. Bivariate K-hat functions are available in splancs (k12hat), or in spatstat (Kcross and Kdot). A direct reference to the splancs functions is given by Bailey and Gatrell (1995) Interactive Spatial Data Analysis, Ch. 4. Spatstat is described clearly in:

You may need to import a bounding polygon too.

Please feel free to follow this up on the R-sig-geo list, access easiest from the CRAN "Spatial" task view:

(Note though, that schools may be close to other confounding locations attracting burger-vores, so you may need a school just by itself to draw any sensible conclusions)

> Michael Holm
> DICAR – Center for Anaytical Reporting – HYPERLINK
> ""

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Tue Sep 06 06:09:00 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 16:20:14 EST