Extracts all values from a sorted vector that are greater than or equal to the effective critical value associated to a threshold.
short.eff(sorted.num, t)
a numeric vector in increasing order.
the threshold, a number between 0 and 1.
A subvector of sorted.num.
sorted.num
The effective critical value associated to t is the largest value of sorted.num that is less than or equal to t.
t
This version: 2018-02-12.
# 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