Package: treeSS 0.2.4

Allan Quadros

treeSS: Tree-Spatial Scan Statistic for Cluster Detection

Implements the tree-spatial scan statistic for detecting clusters that combine both spatial and hierarchical structures, as proposed by Cancado et al. (2025) <doi:10.1007/s10651-025-00670-w>. The method extends Kulldorff (1997) <doi:10.1080/03610929708831995> circular spatial scan statistic and the tree-based scan statistic of Kulldorff et al. (2003) <doi:10.1111/1541-0420.00039> by searching for anomalies in both geographic regions and branches of hierarchical trees simultaneously. The package also provides standalone implementations of Kulldorff's circular spatial scan statistic and the tree-based scan statistic. Statistical significance is assessed via Monte Carlo simulation under a Poisson or binomial model, with optional 'OpenMP' parallelization.

Authors:Allan Quadros [aut, cre], Andre L. F. Cançado [aut], Geiziane S. Oliveira [aut], Luiz H. Duczmal [aut]

treeSS_0.2.4.tar.gz
treeSS_0.2.4.zip(r-4.7)treeSS_0.2.4.zip(r-4.6)treeSS_0.2.4.zip(r-4.5)
treeSS_0.2.4.tgz(r-4.6-x86_64)treeSS_0.2.4.tgz(r-4.6-arm64)treeSS_0.2.4.tgz(r-4.5-x86_64)treeSS_0.2.4.tgz(r-4.5-arm64)
treeSS_0.2.4.tar.gz(r-4.7-arm64)treeSS_0.2.4.tar.gz(r-4.7-x86_64)treeSS_0.2.4.tar.gz(r-4.6-arm64)treeSS_0.2.4.tar.gz(r-4.6-x86_64)
treeSS_0.2.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
treeSS/json (API)

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

Bug tracker:https://github.com/allanvc/treess/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

cppopenmp

4.60 score 2 scripts 413 downloads 9 exports 1 dependencies

Last updated from:4e3923092c. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK164
linux-devel-x86_64OK146
source / vignettesOK203
linux-release-arm64OK145
linux-release-x86_64OK141
macos-release-arm64OK111
macos-release-x86_64OK261
macos-oldrel-arm64OK112
macos-oldrel-x86_64OK247
windows-develOK113
windows-releaseOK115
windows-oldrelOK124
wasm-releaseOK144

Exports:aggregate_treebuild_zonescircular_scanfilter_clustersgenerate_example_dataget_cluster_regionssequential_scantree_scantreespatial_scan

Dependencies:Rcpp

Building treeSS inputs from raw data: Florida mortality 2016
What this vignette adds | 1. Load the raw data | 2. Build the ICD-10 tree from the codes in the data | 3. Download polygons and centroids | 4. Assemble the long-format data.frame | 5. Run the tree-spatial scan | 6. Distinct secondary clusters (paper-faithful) | 7. Sequential scan when the MLC may shadow | 8. Visualise the clusters | Recap | References

Last update: 2026-07-01
Started: 2026-05-30

Introduction to treeSS: reproducing Cançado et al. (2025)
Overview | Infant mortality in Rio de Janeiro | Run the scan | Why the joint scan matters here | Multiple distinct clusters (paper-faithful) | Visualising the cluster | Secondary clusters when the MLC shadows weaker ones | When to use which | Computational notes | Other examples shipped with the package | References

Last update: 2026-07-01
Started: 2026-04-30

Readme and manuals

Help Manual

Help pageTopics
treeSS: Tree-Spatial Scan Statistic for Cluster DetectiontreeSS-package treeSS
Aggregate Case Counts from Leaves to All Nodes in a Hierarchical Treeaggregate_tree
Build Candidate Spatial Zones Using Circular Windowsbuild_zones
Chicago Crime (2023)chicago_crimes
Chicago Community Area Boundarieschicago_map
Chicago Crime - Hierarchychicago_tree
Kulldorff's Circular Spatial Scan Statisticcircular_scan
Filter Overlapping Secondary Clustersfilter_clusters
Florida General Mortality Data (2016)fl_deaths
Generate Example Data for Tree-Spatial Scangenerate_example_data
Extract Cluster Membership for Each Regionget_cluster_regions get_cluster_regions.default get_cluster_regions.sequential_scan
London Borough Boundarieslondon_boroughs_map
London Road Collisions (2022)london_collisions
London Road Collisions - Hierarchylondon_tree
Print Method for circular_scan Objectsprint.circular_scan
Print Method for sequential_scan Objectsprint.sequential_scan
Print Method for tree_scan Objectsprint.tree_scan
Print Method for treespatial_scan Objectsprint.treespatial_scan
Rio de Janeiro Municipal Boundariesrj_map
Rio de Janeiro Infant Mortality (2016)rj_mortality
Rio de Janeiro Infant Mortality - ICD-10 Treerj_tree
Sequential Scan for Secondary Clusterssequential_scan
Summary Method for circular_scan Objectssummary.circular_scan
Summary Method for sequential_scan Objectssummary.sequential_scan
Summary Method for tree_scan Objectssummary.tree_scan
Summary Method for treespatial_scan Objectssummary.treespatial_scan
Tree-Based Scan Statistictree_scan
Tree-Spatial Scan Statistictreespatial_scan