Stratified Block Randomization

This matlab function performs (stratified) block randomization.
22.0 次下载
更新时间 2021/7/18

Stratified Block Randomization

This matlab function performs stratified block randomization. Example of use: distributing observations into training and test datasets.

Any number of blocks can be chosen, and each block can be given a different portion of observations. Observations are stratified by any number of variables and categories. The function will seek to randomly assign observations to each block (with the set portion) for each stratification-combination. For example, the same number of Male/Female subjects in each block. If multiple stratification variables are given, the combination of these will be distributed between the blocks. For example, gender (male/female) and diagnosis (healthy/sick). In this case, observations will be distributed between blocks for male-healthy, female-healthy, male-sick, and female-sick.

引用格式

Bjarke Skogstad Larsen (2024). Stratified Block Randomization (https://github.com/dkbsl/matlab_randblock/releases/tag/1.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
与 R2015b 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库