Learn R Programming

HDSpatialScan (version 1.0.4)

non_overlap: Return only the detected clusters with no overlapping in their order of detection

Description

This function allows to return only the detected clusters with no overlapping in their order of detection.

Usage

non_overlap(index_clusters, matrix_clusters)

Value

The detecting clusters with no overlapping, in their order of detection.

Arguments

index_clusters

numeric vector. The indices of the detected clusters.

matrix_clusters

numeric matrix. Matrix in which each column represents a potential cluster. A value of 1 indicate that the site (or the individual) is in the cluster, 0 otherwise.