powered by
sig_prune returns the significant zones ordered from most significant to least significant (assuming the zones are already in order)
sig_prune
sig_prune(tobs, zones, pvalue, alpha)
A list with the significant, ordered, non-overlapping tobs, zones, pvalue., and idx (a vector with the relevant indices of the original zones).
tobs
zones
pvalue
idx
The vector of observed test statistics for each zone
A list of zones
The p-value associated with each test statistic
The significance level of the test.
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)
Run the code above in your browser using DataLab