sphppm | R Documentation |
Fit a parametric model for the intensity to a point pattern on a sphere or subset of the sphere.
sphppm(formula)
formula |
A |
This is analogous to the spatstat function
ppm
.
The argument formula
should be a formula in the R language.
The left hand side should be the name of a point pattern dataset,
which should belong to one of the classes sp2
or sp3
.
The right hand side of the formula may involve any of the variables
theta
(colatitude), phi
(longitude)
and x1, x2, x3
representing three-dimensional spatial location.
The model is fitted by the logistic regression algorithm of Baddeley et al (2014). This procedure uses a random pattern of dummy points, so the fitted model coefficients may change slightly if the model is re-fitted.
An object of class sphppm
.
See methods.sphppm
for available methods.
Adrian Baddeley.
Baddeley, A. and Coeurjolly, J.-F. and Rubak, E. and Waagepetersen, R. (2014) Logistic regression for spatial Gibbs point processes. Biometrika 101, 377–392.
methods.sphppm
W <- sphwin(type="band", param=c(pi/3, 2*pi/3), ref=c(0,0)) Z <- runif.sphwin(100, W) sphppm(Z ~ 1) sphppm(Z ~ cos(theta) + cos(phi)) sphppm(Z ~ abs(x1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.