Skip to main content
An official website of the United States government

sparrpowR: Power Analysis to Detect Spatial Relative Risk Clusters

sparrpowR is an open source, R-based software package that provides power calculations for the local statistic of the spatial relative risk function. Using user-defined parameters, sparrpowR generates spatially clustered point-level data and detects spatial clusters with high statistical power within two groups. Further functionality is available to overlay power calculation results on user-provided Geographic Information Systems.

sparrpowR provides investigators with an easy-to-implement method to calculate the statistical power of spatial clusters, which aids in the design of more efficient studies.

Software Download

Download sparrpowR software and supporting documentation from the Comprehensive R Archive Network (CRAN). The sparrpowR module is also available on Spatial Power, a suite of web-based applications that provides an intuitive graphical user interface to conduct spatial power calculations.


Buller ID, Brown DW, Myers TA, Jones RR, Machiela MJ. sparrpowR: A flexible R package to estimate statistical power to identify spatial clustering of two groups and its application. Int J Health Geogr 20, 13 (2021).


For more information, contact Dr. Rena Jones or Dr. Mitch Machiela.

If you would like to reproduce some or all of this content, see Reuse of NCI Information for guidance about copyright and permissions. In the case of permitted digital reproduction, please credit the National Cancer Institute as the source and link to the original NCI product using the original product's title; e.g., “sparrpowR: Power Analysis to Detect Spatial Relative Risk Clusters was originally published by the National Cancer Institute.”