Skip to content
Prev 19592 / 29559 Next

Problems with Kcross.inhom

Again, your problem is not reproducible.  We do not have the objects
"north", "west", "W" and "tipo" which are necessary to duplicate your
steps.

I tried to reproduce your problem with an artificial example:

W <- owin(c(0,3350),c(0,6150))
set.seed(42)
Z <- runifpoint(201,win=W)
m <- sample(rep(c("ficus","tienda"),c(131,70)),201)
marks(Z) <- factor(m)
ff <- with(split(Z),bw.diggle(ficus))
tt <- with(split(Z),bw.diggle(tienda))
lambdaf <- with(split(Z),density(ficus,ff,at="points"))
lambdat <- with(split(Z),density(tienda,tt,at="points"))
K <- Kcross.inhom(Z,"ficus","tienda",lambdaf,lambdat)

No problema.

It is possible that the error has something to do with the rather intricate
(1716 vertices) boundary of your observation window.  However since I don't
have that window I can't tell.

cheers,

Rolf Turner
On 10/22/13 10:16, david.villalobos wrote: