Learn R Programming

⚠️There's a newer version (3.0.2) of this package.Take me there.

randomizeR

The R package randomizeR is an easy to use tool for the randomization of clinical trials. Its aim is to provide sound scientific evidence for the choice of a randomization procedure, on the basis of well-founded criteria. It includes functions for generating randomization sequences from various randomization procedures as well as various issues for the assessment of the randomization procedures.

Installation

You can install randomizeR from CRAN:

install.packages('randomizeR', dependencies = TRUE)

Motivation

Until now, the choice of a randomization procedure did not follow strict scientific principles. If the choice of a randomization procedure does not account for possible problems during the conduct of a clinical trial, the estimation of the treatment effect can be biased. randomizeR models the possible problems that occur in the analysis of a clinical trial, and provides functions to assess randomization procedures according to the issues.

Usage

library(randomizeR)
?randomizeR
vignette("comparison-example")

cg <- corGuess("CS")
rar <- genSeq(rarPar(6),10)
assess(rar, cg)

License

The package is free and open source software, licensed under GPL 3.

Copy Link

Version

Install

install.packages('randomizeR')

Monthly Downloads

499

Version

3.0.1

License

GPL (>= 3)

Maintainer

Ralf-Dieter Hilgers

Last Published

March 19th, 2023

Functions in randomizeR (3.0.1)

$,desFunc-method

Method defining the $ operator for the desFunc class
bbcdPar

Representing Bayesian Biased Coin Design
bbcdRand

Sampling algorithm for bbcd
$,desScores-method

Method defining the $ operator for the assessment class
$,endpoint-method

Method defining the $ operator for the endpoint class
chenRand

Representing Chen's Design
chenPar

Representing Chen's Design
$,probUnDesirable-method

Method defining the $ operator for the probUnDesirable class
$,issue-method

Method defining the $ operator for the issue class
createParam

Representing any randomization procedure
desirability

Desirability functions within the scope of clinical trials
combineBias

Combined bias criterion
$,evaluation-method

Method defining the $ operator for the evaluation class
compare

Comparison of randomization procedures
derFunc

Representing Derringer-Suich desirability functions
createSeq

Query to create a randomization sequence of a particular randomization procedure
crPar

Representing Complete Randomization
ebcPar

Representing Efron's Biased Coin Design
gbcdRand

Sampling algorithm for gbcd
gbcdPar

Representing Generalized Biased Coin Design
coin

Function returning the coin slot of an S4 object
evaluate

Evaluation of several randomization procedures with respect to certain desirability functions applied to specified issues.
corGuess

Representing the expected number of correct guesses
chronBias

Representing chronological bias
$,assessment-method

Method defining the $ operator for the assessment class
doublyTValues

Calculation of the biased type-one-error probability (resp. power) of Student`s t-test
doublyF_values

Rejection probability in case of selection bias in multi-arm trials
$,randPar-method

Method defining the $ operator for the randPar class
bsdRand

Sampling algorithm for BSD
$,randSeq-method

Method defining the $ operator for the randSeq class
doublyT

Approximation of the distribution function of the doubly noncentral t-distribution
getDesScores

Applying desirability functions on issues of individual randomization sequences
getDesign

Design of a randomization procedure
getExpectation

Get expectations of a randomization list
getDistributionPars

Get distribution parameters of a randomization list
lambda

Method returning the rate parameter of an expEndp S4 object
expEndp

Representation of exponentially distributed endpoints
generateAllSequences

Complete set of randomization sequences
generateRandomSequences

Generate random sequences
getCorGuesses

Matrix of the guesses of the investigator
getDesFunc

Type of Desirability function
hadaPar

Representing Hadamard Randomization
getbiasCS2

Biasing Policy for Avoiding the Placebo Treatment
genNcps_new

Calculation of the NCPs of each randomization sequence for the doubly noncentral t-distribution
getProbabilities

Theoretical probability for randomization sequences
getRandomizationList

Accessor function for the randomization list
issue

Assessment criteria for clinical trials
imbal

Representing the allocation imbalance
mpPar

Representing Maximal Procedure
get_p_values_new

Calculating p values
genNcps

Calculation of the NCPs of each randomization sequence for the doubly noncentral t-distribution
doublyF_opt

Distribution function of the non central F-distribution
doublyF_value

Rejection probability for one sequence in the presence of selection bias
mu

Access the expectation value slot of a normEndp S4 object
getbiasCS1

Biasing Policy for a Group of Favored Treatments
normEndp

Representation of normally distributed endpoints
method

Function returning the method of an S4 object
makeDesignMatrix

Design Matrix
lambda1

Calculate first non centrality parameter of the doubly non central F-distribution
pbrPar

Representing Permuted Block Randomization
overview

Overview over the parameters used in the randomizeR package
logRankDecSim

logRankDecSim
randSeq-class

An S4 Class for the representation of randomization sequences
randPar

Settings for randomization procedures
lambda2

Calculate second non centrality parameter of the doubly non central F-distribution
saveAssess

Saving an assess object
saveRand

Saving a randomization lists
plotDes

desScore plotting
rtbdPar

Representing Randomized Truncated Binomial Design
plot

Generic plotting of comparison objects
rpbrPar

Representing Randomized Permuted Block Randomization
randomizeR-package

Randomization for Clinical Trials
mti

Function returning the MTI slot of an S4 object
rarPar

Representing Random Allocation Rule
summary

Summary of assessments of a randomization procedure
randBlocks

Function returning the block slot of an S4 object
survEndp

Representation of survival endpoints
tbdPar

Representing Truncated Binomal Design
probUnDes

Computing the probability of having desirability scores of zero
ratio

Function returning the allocation ratio slot of an S4 object
udPar

Representing Wei's Urn Design
type

Get type of an object
hasAllGroups

Check function for occurrence of all treatment groups in the sequence
hatMatrix

Calculate hat matrix
logRankRejectionProb

Approximation of the biased type I error probability (resp. power) of the log rank test
plotEv

Evaluation plotting
makeBiasedExpectation

Calculate Expectation vector
rho

Function returning the adjusting parameter rho slot of an S4 object
setPower

Representing the power
selBias

Representing selection bias
scale

Method returning the scale parameter of an survEndp S4 object
seed

Function returning the allocation seed slot of an object
plotSeq

Sequence plotting
shape

Method returning the shape parameter of an survEndp S4 object
sigma

Function returning the standard deviation slot of a normEndp S4 object
a

Function returning the adjusting parameter a slot of an S4 object
K

Function returning the number of trial arms slot of an S4 object
N

Function returning the sample size slot of an S4 object
abcdPar

Representing Accelerated Biased Coin Design
TV

Function returning the target value slot of an S4 object
analyse

Creates stratified sequences Compares stratified sequences to their respective non-stratified version under the influence of bias.
GSD_OBF

Simulate Group Sequential Design according to O'Brien and Fleming
GSD_POC

Simulate Group Sequential Design according to Pocock
abcdRand

Sampling algorithm for abcd
$,derFunc-method

Method defining the $ operator for the derFunc class
$,comparison-method

Method defining the $ operator for the assessment class
assess

Assessing randomization sequences
blocks

Function returning the block slot of an S4 object
bsdPar

Representing Big Stick Design