sig_prune {smerc} | R Documentation |
Prune significant, non-overlapping zones
Description
sig_prune
returns the significant
zones ordered from most significant to least significant (assuming the zones are already in order)
Usage
sig_prune(tobs, zones, pvalue, alpha)
Arguments
tobs |
The vector of observed test statistics for each zone |
zones |
A list of zones |
pvalue |
The p-value associated with each test statistic |
alpha |
The significance level of the test. |
Value
A list with the significant, ordered,
non-overlapping tobs
, zones
, pvalue
.,
and idx
(a vector with the relevant indices of
the original zones).
Examples
tobs <- c(3, 2, 1)
zones <- list(1:2, 3:4, 5:6)
pvalue <- c(0.001, 0.05, 0.15)
sig_prune(tobs, zones, pvalue, alpha = 0.05)
[Package smerc version 1.8.4 Index]