self_blockrand: Block Randomization

Description Usage Arguments Examples

View source: R/utility_functions.R

Description

Block randomization

Usage

1
self_blockrand(N=N,trt_levels=trt_levels,blocksize=blocksize,rand_ratio=rand_ratio)

Arguments

N

Total number of patients

trt_levels

treatment levels in vector. for example, c(0,1) for control vs treatment trial.

blocksize

Randomization block size

rand_ratio

Randomization ratio between control and treatment

Examples

1
self_blockrand(N=100,trt_levels=c(0,1),blocksize=2,rand_ratio=c(1,1))

TwoArmSurvSim documentation built on Feb. 26, 2021, 9:06 a.m.