## S3 method for class 'ppm':
Kmodel(model, \dots) ## S3 method for class 'ppm':
pcfmodel(model, \dots)
"ppm") typically obtained from
the model-fitting algorithm ppm.function in the Rlanguage,
which takes one argument r.Kmodel and pcfmodel are generic.
The functions documented here are the methods for the class
"ppm".
The approximation is only available for stationary
pairwise-interaction models.
It uses the second order Poisson-saddlepoint approximation
(Baddeley and Nair, 2012b) which is a combination of
the Poisson-Boltzmann-Emden and Percus-Yevick approximations. The return value is a function in the Rlanguage,
which takes one argument r.
Evaluation of this function, on a numeric vector r,
yields values of the desired $K$ function or pair correlation
function at these distance values.
Kest or pcf
to estimate the $K$ function or pair correlation function
nonparametrically from data. ppm to fit Gibbs models.
Kmodel for the generic functions.
Kmodel.kppm for the method for cluster/Cox processes.
fit <- ppm(swedishpines, ~1, Strauss(8))
p <- pcfmodel(fit)
K <- Kmodel(fit)
p(6)
K(8)
curve(K(x), from=0, to=15)Run the code above in your browser using DataLab