Learn R Programming

scanstatistics (version 0.1.0)

extract_mlc: Extract the most likely cluster (MLC) and the value of the scans statistic.

Description

This function extracts the most likely cluster, which is the spatial or spatiotemporal window that corresponds to the scan statistic. It also returns the value of the scan statistc.

Usage

extract_mlc(table)

Arguments

table

A data.table with a column statistic, which should correspond to the statistic calculated for each spatial or space-time window (given as other columns).

Value

The row of the input table with the highest value of the column statistic.