Skip to main content
v2026.11,986 entries · CC-BY 4.0

SaTScan: Spatial Scan Statistic Software, Models and Workflow

SaTScan finds significant spatial and space-time clusters: the models, input files, a hand-worked Poisson likelihood ratio and an R workflow.

Written and maintained by CASRAI Editorial Board

Published

On this page

SaTScan is free software that runs the spatial, temporal and space-time scan statistics, a family of methods for finding geographic clusters of events, such as disease cases, that are unlikely to have arisen by chance. It was developed by Martin Kulldorff together with Information Management Services Inc., and the version listed on satscan.org is 10.3.3 (September 2025). You give it case counts or case locations, coordinates and, for most models, a population or control data, and it reports the most likely clusters with a Monte Carlo p-value.

What is SaTScan?

SaTScan implements the scan statistic introduced in Kulldorff’s 1997 paper “A spatial scan statistic” (Communications in Statistics: Theory and Methods, 26:1481-1496). The U.S. National Cancer Institute’s SaTScan page lists four uses: testing whether a reported disease cluster is statistically significant, testing whether a disease is randomly distributed over space, time or both, running geographic surveillance for unusually high or low rates, and repeating a time-periodic analysis for early outbreak detection. Versions 1 and 2 were developed by Kulldorff at the NCI. The same page notes that every model adjusts for an unevenly distributed background population, and that the Poisson model can also adjust for user-supplied categorical covariates.

The program is not limited to health data. The NCI page names archaeology, astronomy, criminology, ecology and economics as other fields with the same kind of problem: events that look concentrated on a map and a need to know whether the concentration exceeds what the underlying population would produce. Within CASRAI’s research methods material, it sits alongside the exploratory tools described in spatial data analysis and GeoDa, but it answers a narrower question: not “is there spatial autocorrelation?” but “where is the single most unusual window, and is it significant?”

The download is free but requires a password that is requested through a form on satscan.org (name, organization, email and country). A sister program, TreeScan, applies scan statistics to tree-structured data, and the source code is published on GitHub.

How the spatial scan statistic works

The method places a circular window on each location in turn and grows its radius from zero up to a prespecified maximum. In the baseline description of Abrams, Kleinman and Kulldorff (2010, Int J Health Geogr 9:61), the maximum circle may contain up to 50% of the population. For every circle, the software compares the observed and expected number of events inside the circle with those outside it and computes a log likelihood ratio (LLR). The largest LLR over all circles is the scan statistic, and the circle that produces it is the most likely cluster: the one least likely to have occurred by chance.

Formula for the Poisson model

For the Poisson model, with a window that holds more events than expected, the LLR for one window is

LLR = c · ln(c / E) + (C − c) · ln((C − c) / (C − E))

  • c: the observed number of cases inside the window.
  • E: the number of cases expected inside the window if cases were spread in proportion to the population at risk (E = C × window population ÷ total population).
  • C: the total number of cases in the study region.
  • C − c and C − E: the observed and expected cases outside the window.
  • ln: the natural logarithm.

Windows where c is not larger than E are not scored as high-rate clusters in a high-rate scan (SaTScan can also scan for low rates, or both). The statistic grows as the inside count departs further from the expected count.

Why a Monte Carlo p-value?

Abrams and colleagues note that the scan statistic has no known closed-form theoretical distribution, because it is a maximum over many overlapping windows. SaTScan therefore generates R random replicates of the data under the null hypothesis, finds the maximum LLR in each, and reports p = r / (R + 1), where r is the rank of the real data’s statistic among the real value and the replicates. The smallest possible p-value is 1 / (R + 1), so 999 replicates give a floor of 0.001, and each additional decimal place of precision needs roughly ten times as many replicates.

Probability models in SaTScan

The choice of model follows from the kind of outcome data you hold. Per satscan.org, SaTScan offers six: the Poisson model for counts when the population at risk is known; the Bernoulli model for 0/1 data, with cases and controls; the space-time permutation model, which needs case data only; the ordinal model for ordered categories; the exponential model for survival-type data, with or without censoring; and the normal model for continuous outcomes. The comparison table below the page text lays out the same information as a downloadable dataset. Model choice matters more than any setting: a Poisson analysis on counts without a defensible population denominator tests population size, not risk.

Input files and how to prepare them

SaTScan reads text files, and the R package rsatscan writes one per input. The package vignette documents the functions for each file:

Input rsatscan function Role
Parameter file write.ss.prm() Stores the analysis type, model, dates and window settings set with ss.options()
Case file write.cas() Case counts by location (and by time where the analysis is temporal)
Coordinates file write.geo() Location identifiers with coordinates, so windows can be built
Population file write.pop() Population at risk, used by the Poisson model
Control file write.ctl() Controls, used by the Bernoulli model

For a geographic analysis, check first that every location in the case file also appears in the coordinates file, and that the population and cases refer to the same areas and period. Geocoding errors and mismatched boundaries show up later as spurious clusters. Mapping the output is a separate step; see geovisualization for how results are usually displayed.

Worked example: one window, by hand

This is an illustrative calculation with made-up round numbers, not data from a real study. Suppose a region has C = 200 cases and 100,000 people. One candidate circle contains 10,000 people, so it holds 10% of the population and the expected count is E = 200 × 10,000 ÷ 100,000 = 20. The circle contains c = 35 observed cases.

  1. Inside term: c · ln(c / E) = 35 × ln(35 / 20) = 35 × ln(1.75) = 35 × 0.5596 = 19.587.
  2. Outside term: (C − c) · ln((C − c) / (C − E)) = 165 × ln(165 / 180) = 165 × ln(0.9167) = 165 × (−0.0870) = −14.357.
  3. LLR = 19.587 + (−14.357) = 5.230.

SaTScan would compute this number for every candidate circle and keep the largest. Now suppose 999 simulated datasets are generated under the null and the real LLR of 5.230 (assume it is the maximum over all circles) is exceeded by the maximum LLR in 12 of them. Its rank among the 1,000 values is 13, so p = 13 / 1,000 = 0.013. Had no simulated value exceeded it, the rank would be 1 and p = 1 / 1,000 = 0.001, the floor for R = 999.

Interpretation: reading the output

The report lists the most likely cluster first, then secondary clusters. For each it gives the location identifiers inside the circle, the radius, observed and expected counts and the p-value. The table shows how to read the Monte Carlo p-value given the rules above.

Result How to read it
Rank of the real LLR is 1 among R + 1 values No replicate beat it; p = 1 / (R + 1), the smallest the run can report
Rank r = 13 with R = 999 p = 13 / 1,000 = 0.013; the real LLR is exceeded by 12 replicates
Large p for the most likely cluster The apparent cluster is within what chance alone produces under the null

The p-value applies to the single most likely window, evaluated against the distribution of the maximum over all windows, so it already accounts for the many circles examined. Keep that in mind before applying a further multiple-testing correction.

Assumptions and common mistakes

  • Wrong denominator. The Poisson model assumes a known population at risk; an out-of-date or mismatched denominator creates clusters where the population changed.
  • Treating the circle as the true boundary. The reported circle is the window with the highest LLR, a statement about where the evidence concentrates, not a drawn outline of the hazard.
  • Too few replicates. With R = 99 the smallest possible p is 0.01, so a result cannot be reported as p < 0.001 regardless of the data.
  • Using the maximum window size by default. The maximum circle size is a prespecified analysis choice; fix it before looking at results.
  • Exploratory searching. Running many analyses with different settings and reporting the one that shows a cluster discards the null distribution the p-value relies on. Record the settings in advance.
  • Confusing statistical and practical significance. A significant cluster signals an unusual concentration; it does not explain the cause.

How to report a SaTScan analysis (APA style)

State the software with its version, the model, the maximum window size and the number of replicates, then give each reported cluster’s statistic and p-value. An illustrative wording, with the numbers from the worked example:

A purely spatial scan statistic (Kulldorff, 1997) was run in SaTScan v10.3.3 using a Poisson model with a maximum window of 50% of the population at risk and 999 Monte Carlo replications. The most likely cluster had LLR = 5.23 and p = .013.

Reference entry: Kulldorff, M. (1997). A spatial scan statistic. Communications in Statistics: Theory and Methods, 26(6), 1481-1496. Add an entry for the SaTScan software itself with the version you used, as listed on satscan.org.

How to calculate it in Excel, R or Python

Only SaTScan itself scans all windows. The snippets below compute the LLR for one window and run SaTScan from R.

Excel

With c in B1, E in B2 and C in B3, enter: =B1*LN(B1/B2)+(B3-B1)*LN((B3-B1)/(B3-B2)). For the worked example (35, 20, 200) it returns 5.2297.

Python

from math import log

def poisson_llr(c, E, C):
    # high-rate window: valid when c > E
    return c * log(c / E) + (C - c) * log((C - c) / (C - E))

print(round(poisson_llr(35, 20, 200), 4))  # 5.2297

def mc_p(real_llr, sim_llrs):
    r = 1 + sum(s >= real_llr for s in sim_llrs)
    return r / (len(sim_llrs) + 1)

R (rsatscan)

The rsatscan vignette’s pattern, shown with its NYC fever example, is: reset options, set them with ss.options(), write the input files, then call satscan(). It only works if SaTScan is installed, because rsatscan writes a parameter file and calls the program.

library(rsatscan)
invisible(ss.options(reset = TRUE))
ss.options(list(CaseFile = "NYCfever.cas", PrecisionCaseTimes = 3))
ss.options(c("StartDate=2001/11/1", "EndDate=2001/11/24"))
ss.options(list(CoordinatesFile = "NYCfever.geo", AnalysisType = 4, ModelType = 2, TimeAggregationUnits = 3))
td <- tempdir()
write.ss.prm(td, "NYCfever")
write.cas(NYCfevercas, td, "NYCfever")
write.geo(NYCfevergeo, td, "NYCfever")
# NYCfever <- satscan(td, "NYCfever", sslocation = "C:/Program Files/SaTScan", ssbatchfilename = "SaTScanBatch64")
# summary(NYCfever)

The returned object holds the cluster table (including the test statistic), the simulated LLRs, a spatial feature object for the clusters and the parameter set. For other clustering approaches in code, see cluster analysis in Python.

Sources

Data: SaTScan probability models and the outcome data each handles

The six probability models offered by SaTScan, matched to the type of outcome data each analyses, compiled from the model list on the SaTScan website and the National Cancer Institute SaTScan page.

Coverage: Not geography-specific.

SaTScan probability models and the outcome data each handles
ModelOutcome data handled
PoissonCounts, with a known population at risk
Bernoulli0/1 data: cases and controls
Space-time permutationCase data only
OrdinalOrdered categorical outcomes
ExponentialSurvival-type data, with or without censoring
NormalContinuous outcomes

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about SaTScan: Spatial Scan Statistic Software, Models and Workflow

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →