DClusterm (version 1.0-1)

slimknclusters: Remove overlapping clusters

Description

This function slims the number of clusters down. The spatial scan statistic is known to detect duplicated clusters. This function aims to reduce the number of clusters by removing duplicated and overlapping clusters.

Usage

slimknclusters(d, knresults, minsize = 1)

Arguments

d

Data.frame with data used in the detection of clusters.

knresults

Object returned by function opgam() with the clusters detected.

minsize

Minimum size of cluster (default to 1).

Value

A subset of knresults with non-overlaping clusters of at least minsize size.

Examples

Run this code
# NOT RUN {
data("brainNM_clusters")

nm.cl1.s <- slimknclusters(brainst, nm.cl1)
nm.cl1.s
# }

Run the code above in your browser using DataCamp Workspace