Skip to content
Prev 12648 / 29559 Next

can a (modified) pairdist() output be used as a basis for calculating a pcf

great!

could you in short describe what you mean by rescaling?

is this rescaling also needed when comparing this 'modified-pcf' relative to an envelope of 'modified-pcfs' which resulted from simulations of an appropriate nullmodel (i.e. random non-overlapping circles)?

I have indeed to be cautious what the implications are of these modifications...,  

best,
Jan
________________________________________
Van: Adrian.Baddeley at csiro.au [Adrian.Baddeley at csiro.au]
Verzonden: maandag 29 augustus 2011 6:01
Aan: r-sig-geo at r-project.org
CC: Quets Jan; Adrian.Baddeley at csiro.au; r.turner at auckland.ac.nz
Onderwerp: [R-sig-geo] can a (modified) pairdist() output be used as a basis for calculating a pcf

Jan Quets <Jan.Quets at ua.ac.be> heeft geschreven:
Yes.
        As a temporary measure, you could use the (currently undocumented)
      function 'compilepcf'.
        You need something like the following invocation:

           f <- compilepcf(D, r=handle.r.b.args(window=W))

      where D is the pairwise distance matrix, and W is the window containing the
      data. The result is an 'fv' class object. You may have to rescale it
      using eval.fv.

      Of course you'll need to think carefully about what this calculation means,
      in order to decide how to rescale it, etc.

      For the usual pair correlation function, you would have to subsequently
      divide f(r) by 2 * pi * r. This normalisation is not carried out by 'compilepcf'.

      This will not work in spatstat 2 where we will have a different mechanism that
      is faster.
You can do this faster using

        sumradii <- outer(marks(vmrad), marks(vmrad), "+")

      You will also need to reset the diagonal of 'E2E' to infinity so that it
      is not used:

         diag(E2E) <- Inf

Adrian Baddeley