getcutoff {lordif}R Documentation

determines a cutoff threshold

Description

Determines cutoff thresholds for statistics generated from Monte Carlo simulations

Usage

getcutoff(stat, alpha, reverse)

Arguments

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

Details

if reversed is TRUE it cuts off the right tail (i.e., largest values)

Value

returns a scalar that cuts off the designated proportion (specified by alpha)

Author(s)

Seung W. Choi <s-choi@northwestern.edu>

See Also

montecarlo

Examples

#top 1 percent
getcutoff(runif(1000),0.01,TRUE)
#bottom 1 percent
getcutoff(runif(1000),0.01,FALSE)

[Package lordif version 0.1-4 Index]