https://github.com/cran/spatstat
Raw File
Tip revision: c75a36fce807d4a1105403c1f8628a196a3e54da authored by Adrian Baddeley on 24 October 2008, 14:28:47 UTC
version 1.14-5
Tip revision: c75a36f
step.R
# test for step() operation
#
require(spatstat)
data(nztrees)
Z <- as.im(function(x,y){ x^3 - y^2 }, nztrees$window)
fitP <- ppm(nztrees, ~x+y+Z, covariates=list(Z=Z))
step(fitP)
fitS <- update(fitP, Strauss(7))
step(fitS)
data(amacrine)
fitM <- ppm(amacrine, ~ marks*(x+y),
            MultiStrauss(types=levels(marks(amacrine)), radii=matrix(0.04, 2, 2)))
step(fitM)

back to top