slimknclusters | R Documentation |
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.
slimknclusters(d, knresults, minsize = 1)
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). |
A subset of knresults with non-overlaping clusters of at least minsize size.
data("brainNM_clusters")
nm.cl1.s <- slimknclusters(brainst, nm.cl1)
nm.cl1.s
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.