https://github.com/cran/spatstat
Raw File
Tip revision: 8ef1882fb4bae84ba0cf2d81b1af0553bd07c298 authored by Adrian Baddeley on 23 September 2011, 12:18:30 UTC
version 1.23-5
Tip revision: 8ef1882
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