Learn R Programming

TwoArmSurvSim (version 0.2)

randomize_trt2: Generate Block Randomized Treatment Label Based on Covariates Matrix for Two Arm Trial

Description

Generate block randomized treatment label based on covariates matrix for two arm trial.

Usage

randomize_trt2(cov_mat=cov_mat,blocksize=blocksize,rand_ratio=c(1,1))

Arguments

cov_mat

Covariates matrix.

blocksize

Randomization block size

rand_ratio

Randomization ratio between control and treatment