DiscreteFDR (version 1.0)

short.eff: Shortcuts for critical values computation

Description

Extracts all values from a sorted vector that are greater than or equal to the effective critical value associated to a threshold.

Usage

short.eff(sorted.num, t)

Arguments

sorted.num

a numeric vector in increasing order.

t

the threshold, a number between 0 and 1.

Value

A subvector of sorted.num.

Details

The effective critical value associated to t is the largest value of sorted.num that is less than or equal to t.

This version: 2018-02-12.

Examples

Run this code
# NOT RUN {
x<-c(0.1,0.2,0.3,0.4)
short.eff(x,0.2)
short.eff(x,0.35)

# }

Run the code above in your browser using DataCamp Workspace