
Spatial cluster detection: circular scan, Besag-Newell, Tango and Stone
Source:R/ScanStatistics.R
ScanZones.RdScanZones: distinct nearest-neighbour zones within ubpop of
the population (smerc::scan.zones). KulldorffScan: Poisson or
Bernoulli likelihood-ratio scan with non-overlapping secondary clusters
and Monte Carlo p-values from Philox multinomial redistributions (Kulldorff
1997; smerc::scan.test). BesagNewell: nearest regions pooled
to k cases, \(P(Poisson(E) \ge k_{obs})\) (Besag and Newell 1991;
SpatialEpi). TangoTest: Tango's (1995) index with its chi-square
approximation (smerc::tango.test). StoneTest: Stone's (1988)
maximum cumulative O/E by distance order. Identical to the Python arm
morie.fn.scanstat.
Usage
ScanZones(coords, pop, ubpop = 0.5)
KulldorffScan(
coords,
cases,
pop,
ex = NULL,
kind = "poisson",
ubpop = 0.5,
nsim = 499L,
alpha = 0.1,
min_cases = 2,
seed = 1L
)
BesagNewell(coords, cases, pop, k, expected = NULL)
TangoTest(cases, pop, W)
StoneTest(cases, expected, order, nsim = 0L, seed = 1L)Arguments
- coords
Coordinates.
- pop
Populations.
- ubpop
Population upper bound (fraction).
- cases
Counts.
- ex
Expected counts.
- kind
"poisson"or"binomial".- nsim
Monte Carlo replications.
- alpha
Significance level for reported clusters.
- min_cases
Minimum cases in a zone.
- seed
Philox seed.
- k
Case threshold.
- expected
Expected counts.
- W
Tango weight matrix.
- order
Region order by distance from the source (1-based).