Compares the mark correlation of the data with those of nsim
random permutations of the marks (Diggle 2003; mad.test and
dclf.test with simulate = rlabel in spatstat). The
discrepancy is the largest ("mad") or integrated squared
("dclf") deviation of \(k_{mm}\) from 1 over rmin <= r <= rmax (the integral
is (rmax - rmin) times the mean squared deviation, as spatstat);
p-value (1 + number of simulated T >= observed T) / (nsim + 1). Permutations are
Fisher-Yates shuffles from Philox stream s of seed, identical to
the Python arm.
Usage
MarkDependenceTest(
points,
marks,
window,
nsim = 99L,
seed = 1L,
statistic = "mad",
rmin = 0,
rmax = NULL,
correction = "iso"
)