blocksize: Get a suitable blocksize for a given number of subjects

Description Usage Arguments Value Examples

View source: R/blockrand2_main.R

Description

Get a suitable blocksize for a given number of subjects

Usage

1
blocksize(x, N)

Arguments

x

number of patients in stratum

N

number of treatments

Value

integer vector of length one representing the blcksize

Examples

1
2
3
4
5
# Blocksize for 10 subjects and 2 treatments
blocksize(10, 2)

# Blocksize for 10 subjects and 3 treatments
blocksize(10, 3)

hsonne/blockrand2 documentation built on May 17, 2019, 6:16 p.m.