tests/testthat/test-myfunction.R

#Generate RT data
set.seed(12546)
data <- rtriangle(n=1000, a=2, b=8, c=2) #right-triangular since a=c
hist(data)
res <- strata.data(data, h = 2, n=500) # a 2-strata solution
summary(res)

Try the stratifyR package in your browser

Any scripts or data that you put into this service are public.

stratifyR documentation built on April 3, 2025, 7:32 p.m.