sig_noc: Return most significant, non-overlapping zones

View source: R/sig_noc.R

sig_nocR Documentation

Return most significant, non-overlapping zones

Description

sig_noc return the significant, non-overlapping zones order from most significant to least significant.

Usage

sig_noc(tobs, zones, pvalue, alpha, order_by = "tobs")

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.

order_by

Either 'tobs' or 'pvalue', indicating the argument by which to order zones.

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(1, 3, 2)
zones <- list(1:2, 1:3, 2:3)
pvalue <- c(0.5, 0.01, 0.02)
sig_noc(tobs, zones, pvalue, alpha = 0.05)

smerc documentation built on Oct. 10, 2023, 5:07 p.m.