run_scan: Run a scan statistic analysis.

View source: R/utility_functions.R

run_scanR Documentation

Run a scan statistic analysis.

Description

Run a scan statistic analysis with the given scan statistic and arguments.

Usage

run_scan(scanstat, args, gumbel = FALSE)

Arguments

scanstat

A scan statistic function.

args

A named list of arguments to be passed to scanstat.

gumbel

Logical: should a Gumbel P-value be calculated? Default is FALSE.

Value

A list with components

observed

The table of observed statistics.

simulated

The table of simulated statistics.

MC_pvalue

The Monte Carlo P-value of the scan statistic.

Gumbel_pvalue

The Gumbel P-value of the scan statistic.


scanstatistics documentation built on Feb. 16, 2023, 10:32 p.m.