mc_pvalue {scanstatistics} | R Documentation |
Calculate the Monte Carlo
-value for a scan statistic.
Description
Given an observed scan statistic and a vector of replicate
scan statistics
,
, calculate the Monte
Carlo
-value as
The function is vectorized, so multiple -values can be calculated if
several scan statistics (e.g. statistics from secondary clusters) are
supplied.
Usage
mc_pvalue(observed, replicates)
Arguments
observed |
A scalar containing the observed value of the scan statistic, or a vector of observed values from secondary clusters. |
replicates |
A vector of Monte Carlo replicates of the scan statistic. |
Value
The -value or
-values corresponding to the observed
scan statistic(s).
[Package scanstatistics version 1.1.1 Index]