Learn R Programming

HDSpatialScan (version 1.0.4)

post_filt_nb_sites: A posteriori filtering on the number of sites/individuals

Description

This function allows the a posteriori filtering on the number of sites/individuals.

Usage

post_filt_nb_sites(
  mini_post,
  maxi_post,
  nb_sites,
  index_clusters_temp,
  matrix_clusters
)

Value

The detecting clusters with the a posteriori filtering.

Arguments

mini_post

numeric. A minimum to filter the significant clusters a posteriori. The default NULL is for no filtering with a a posteriori minimum.

maxi_post

numeric. A maximum to filter the significant clusters a posteriori. The default NULL is for no filtering with a a posteriori maximum.

nb_sites

numeric. The number of sites/individuals.

index_clusters_temp

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.