SciencesPo (version 1.3.8)

randomized.block: Create Block-randomized designs

Description

Generate block-randomized designs based on the number of units n and block size, where the block size is the number of experimental conditions. The number of Independent Variables and the number of levels in each IV are specified as input. The output is a the block randomized design. This function is intended for planning randomized trails.

Usage

randomized.block(blocksize, n, seed = NULL)

Arguments

blocksize
is the number of control blocks or n per block/group.
n
is the total number of subjects or units.
seed
the random number generation seed.

encoding

UTF-8

References

Alan S Gerber, Donald P Green (2012). Field experiments: Design, analysis, and interpretation. WW Norton.

RB Morton, KC Williams (2010). Experimental political science and the study of causality: From nature to the lab. Cambridge University Press.