Run a scan statistic analysis with the given scan statistic and arguments.
run_scan(scanstat, args, gumbel = FALSE)
A list with components
The table of observed statistics.
The table of simulated statistics.
The Monte Carlo P-value of the scan statistic.
The Gumbel P-value of the scan statistic.
A scan statistic function.
A named list of arguments to be passed to scanstat
.
Logical: should a Gumbel P-value be calculated? Default is
FALSE
.