getcutoff {lordif} | R Documentation |
Determines cutoff thresholds for statistics generated from Monte Carlo simulations
getcutoff(stat, alpha, reverse)
stat |
a vector containing statistics sampled from a Monte Carlo simulation |
alpha |
a value determining the proportion to be cut off from the bottom (or top) of stat |
reverse |
if TRUE it cuts off the right tail |
if reversed is TRUE it cuts off the right tail (i.e., largest values)
returns a scalar that cuts off the designated proportion (specified by alpha)
Seung W. Choi <s-choi@northwestern.edu>
#top 1 percent getcutoff(runif(1000),0.01,TRUE) #bottom 1 percent getcutoff(runif(1000),0.01,FALSE)