This question involves conceptual issues, however, it also involves code. Given a heterogeneous pattern of points, dependent on terrain slope and elevation, for example, obtained from a fit of a poisson model where lambda is equal to a loglinear function of the covariates:
fit<- ppm(X~1+elev+grad, data= bei.extra)
My question is, when intending to calculate a g inhom
to test whether these variables can help explain the heterogeneity of the spatial pattern of a false aggregation (virtual aggregation) observed in g
, how should I proceed with the code? I think it could be like this:
g<-envelope(fit, pcfinhom, correction="isotropic", divisor="d", lambda=fit, nsim = 199)
The code above runs, but I'd like to know if it's appropriate to put the fit
model both as the parsing point pattern and also equal to the lambda
, our since fit is a lambda log, I don't know if it's appropriate to use it without transformation. Or if just like this:
g<-envelope(fit, pcfinhom, correction="isotropic", divisor="d", nsim = 199)
Since fit is a lambda log, I don't know if it's appropriate to use it without transformation to ginhom
.