Skip to content
Prev 18929 / 29559 Next

Using pixel image as spatstat's intensity surface

Dear Rolf,

Thank you for insightful answer. Following your explanation I found out 
that the key problem was that I didn't specify the simulation in Linhom 
envelope. For some reason I thought that lambda would be overriding the 
envelope creating point process. So, your example 4 was really helpful 
for that matter.

However in order to produce a proper-looking graph with an envelope, I 
had to use reciplambda instead of the regular one. I figured this out 
after seeing that while envelope was calculated and displayed correctly, 
the observed Linhom(r) line did not appear (envelope's "obs" values are 
either 0's or NaN's). Using reciplambda did the trick though, but the 
values on the y-axis are 1e+07 times smaller than they should.  Creating 
random patterns using rpoispp() does not indicate at all that the 
intensity surface should be used reciprocally: the number of points and 
their spatial distribution make sense. Also if using randomly created 
points there is no need for reciplambda, although it works both ways 
showing slightly different results. Another worrying issue, but I'll try 
to look into it.


Thank you and all the best,
Allar
On 23/07/2013 11:07, Rolf Turner wrote: