Package: gsClusterDetect 1.0.1

gsClusterDetect: Utilities for Geo-Spatial Cluster Detection and Significance Classification

Provides utilities for manipulating time series of location-based counts of events to detect geo-spatial clusters. Significance of these clusters is determined using a set of models that classify based on a learned relationship between observed and the log(observed/expected) ratio of counts. The approach implemented here is similar to prospective space-time estimation of clusters using the scan statistic.

Authors:Luke C. Mullany [aut, cre], Howard S. Burkom [aut]

gsClusterDetect_1.0.1.tar.gz
gsClusterDetect_1.0.1.zip(r-4.7)gsClusterDetect_1.0.1.zip(r-4.6)gsClusterDetect_1.0.1.zip(r-4.5)
gsClusterDetect_1.0.1.tgz(r-4.6-any)gsClusterDetect_1.0.1.tgz(r-4.5-any)
gsClusterDetect_1.0.1.tar.gz(r-4.7-any)gsClusterDetect_1.0.1.tar.gz(r-4.6-any)
gsClusterDetect_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
gsClusterDetect/json (API)

# Install 'gsClusterDetect' in R:
install.packages('gsClusterDetect', repos = c('https://lmullany.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lmullany/gsclusterdetect/issues

Pkgdown/docs site:https://lmullany.github.io

Datasets:

On CRAN:

Conda:

5.72 score 4 stars 5 scripts 165 downloads 27 exports 14 dependencies

Last updated from:8a3d28c610. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK202
source / vignettesOK217
linux-release-x86_64OK202
macos-release-arm64OK225
macos-oldrel-arm64OK219
windows-develOK183
windows-releaseOK150
windows-oldrelOK157
wasm-releaseOK151

Exports:add_location_countsadd_spline_thresholdcompress_clusterscompress_clusters_fastcounty_distance_matrixcreate_custom_dist_listcreate_dist_listcustom_distance_matrixfind_clustersgen_nearby_case_infogenerate_case_gridsgenerate_heatmapgenerate_heatmap_datagenerate_observed_expectedgenerate_summary_tablegenerate_time_series_datagenerate_time_series_plotget_baseline_datesget_nearby_locationsget_test_datesreduce_clusters_to_minst_injectsstate_distance_matrixtract_distance_matrixtract_generatorus_distance_matrixzip_distance_matrix

Dependencies:classclassIntclidata.tableDBIe1071KernSmoothMASSproxyRcpps2sfunitswk

Vignette 1: Package Overview
Overview: Package Purpose | Package functionality | Technical Requirements to Enable Cluster Detection in User Data | Distance Structures for Geographic Scanning | Full Distance Matrix Functions: | Limited Distance Lists | Main Wrapper: find_clusters() | Preparing Inputs | Key Parameters in find_clusters() | Required: | Optional: | Running find_clusters() | Built-In Spline Tables and Example Data | Example Cluster Map | Summary and Plotting Utilities

Last update: 2026-06-09
Started: 2026-04-20

Vignette 2: Creating Distance Objects
Overview | Types of Distance Objects: | Square pairwise distance matrices | Example: county distance matrix: | Example: zip code distance matrix: | Example: tract distance matrix: | Custom Distance Matrices | Distance Lists | Custom Distance Lists | Other Functions

Last update: 2026-05-25
Started: 2026-04-30

Readme and manuals

Help Manual

Help pageTopics
Add location counts to cluster location listadd_location_counts
Use spline lookup to restrict `ObservedExpectedGrid` to potential clustersadd_spline_threshold
check for variables in framecheck_vars
Compress a cluster_alert_tablecompress_clusters
Fast version of compress clusterscompress_clusters_fast
County Location Datasetcounties
Get distance matrix for counties within a statecounty_distance_matrix
Create a sparse distance list from custom location datacreate_custom_dist_list
Generalized distance list as sparse listcreate_dist_list
Build a Distance Matrix from a Custom Data Framecustom_distance_matrix
Example Count Datasetexample_count_data
Find clustersfind_clusters
Return baseline and test period case grids restricting by distancegen_nearby_case_info
Get candidate clusters and locations in baseline intervalsgenerate_case_grids
Generate heatmap of datagenerate_heatmap
Get heat map data from a set of location, date, count datagenerate_heatmap_data
Generate the observed and expected informationgenerate_observed_expected
Summary count-by-location-and-date data, given baseline and test interval lengths, and an end-date for the test intervalgenerate_summary_table
Generate time series datagenerate_time_series_data
Generate timeseries plot datagenerate_time_series_plot
Generate baseline dates vectorget_baseline_dates
Get nearby locationsget_nearby_locations
Generate test dates vectorget_test_dates
Filter clusters on minimum overall countreduce_clusters_to_min
Spline Lookup Table - 0.001spline_001
Spline Lookup Table - 0.005spline_005
Spline Lookup Table - 0.01spline_01
Spline Lookup Table - 0.05spline_05
Add data counts for parameterized injected clustersst_injects
Get distance matrix for states in the USstate_distance_matrix
State Location Datasetstates
Build a Tract Distance Matrix for a Statetract_distance_matrix
Generate Census Tract Centroids for a Statetract_generator
Get distance matrix for all counties in the USus_distance_matrix
Get distance matrix for zip codes within a statezip_distance_matrix
Zipcode Location Datasetzipcodes