sig_noc: Return most significant, non-overlapping zones

Description Usage Arguments Value Examples

View source: R/sig_noc.R

Description

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

Usage

1
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

1
2
3
4
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. 1, 2021, 5:07 p.m.