stratifiedSample: stratifiedSample

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

the stratifiedSample function takes in a vector of statistics, and returns a vector of indices for the statistics that should be used for permutation testing

Usage

1

Arguments

stats

a vector of statistics

length

rough number of indices to extract

Value

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

Examples

1
2
3
stats = rnorm(5000)
sampleindices = stratifiedSample(stats)
length(sampleindices)

shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.