Learn R Programming

SciencesPo (version 1.3.9)

blockRandomizedDesign: 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

blockRandomizedDesign(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.