imbalanced_complete_randomization: Implements unequally allocated complete randomization

View source: R/complete_randomization_and_blocking.R

imbalanced_complete_randomizationR Documentation

Implements unequally allocated complete randomization

Description

For debugging, you can use set.seed to be assured of deterministic output.

Usage

imbalanced_complete_randomization(n, prop_T, r, form = "one_zero", seed = NULL)

Arguments

n

number of observations

prop_T

the proportion of treatments needed

r

number of randomized designs you would like

form

Which form should it be in? The default is one_zero for 1/0's or pos_one_min_one for +1/-1's.

seed

An integer which is the seed to be set within C++. Default is NULL which means the seed is set from the system clock.

Value

a matrix where each column is one of the r designs

Author(s)

Adam Kapelner

Examples

## Not run: 
imbalanced_complete_randomization(n = 10, prop_T = 0.3, r = 2, seed = 1)

## End(Not run)

GreedyExperimentalDesign documentation built on Jan. 9, 2026, 5:07 p.m.