complete_randomization: Implements complete randomization (without forced balance)

View source: R/complete_randomization.R

complete_randomizationR Documentation

Implements complete randomization (without forced balance)

Description

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

Usage

complete_randomization(n, r, form = "one_zero")

Arguments

n

number of observations

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.

Value

a matrix where each column is one of the r designs

Author(s)

Adam Kapelner


GreedyExperimentalDesign documentation built on July 26, 2023, 5:48 p.m.