the stratifiedSample function

stratifiedSample(stats)

Arguments

stats

a vector of statistics

Value

vector a vector of indices for the statistics that should be used for permutation testing

Examples

stats = rnorm(5000) sampleindices = stratifiedSample(stats) length(sampleindices)
#> [1] 252