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

397

Version

1.4.2

License

GPL (>= 3)

Maintainer

Diane Uschner

Last Published

June 15th, 2018

Functions in randomizeR (1.4.2)

N

Function returning the sample size slot of an S4 object
blocks

Function returning the block slot of an S4 object
chenRand

Representing Chen's Design
chenPar

Representing Chen's Design
$,issue-method

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

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

Method defining the $ operator for the randPar class
doublyF_opt

Distribution function of the non central F-distribution
chronBias

Representing chronological bias
doublyF_value

Rejection probability for one sequence in the presence of selection bias
$,randSeq-method

Method defining the $ operator for the randSeq class
getExpectation

Get expectations of a randomization list
gbcdPar

Representing Generalized Biased Coin Design
evaluate

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

Representing Complete Randomization
getProbabilities

Theoretical probability for randomization sequences
createSeq

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

Representing any randomization procedure
genNcps

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

Parameters generic
gbcdRand

Sampling algorithm for gbcd
generateAllSequences

Complete set of randomization sequences
mti

Function returning the MTI slot of an S4 object
randPar

Settings for randomization procedures
getbiasCS2

Biasing Policy for Avoiding the Placebo Treatment
generateRandomSequences

Generate random sequences
mu

Access the expectation value slot of a normEndp S4 object
randSeq-class

An S4 Class for the representation of randomization sequences
plot

Generic plotting of comparison objects
seed

Function returning the allocation seed slot of an object
hadaPar

Representing Hadamard Randomization
pbrPar

Representing Permuted Block Randomization
compare

Comparison of randomization procedures
imbal

Representing the allocation imbalance
hasAllGroups

Check function for occurance of all treatment groups in the sequence
plotSeq

Sequence plotting
corGuess

Representing the expected number of correct guesses
issue

Assessment criteria for clinical trials
derFunc

Representing Derringer-Suich desirability functions
$,desScores-method

Method defining the $ operator for the assessemnt class
probUnDes

Computing the probability of having desirabilty scores of zero
$,endpoint-method

Method defining the $ operator for the endpoint class
makeDesignMatrix

Design Matrix
randomizeR-package

Randomization for Clinical Trials
hatMatrix

Calculate hat matrix
makeBiasedExpectation

Calculate Expectation vector
plotDes

desScore plotting
selBias

Representing selection bias
getCorGuesses

Matrix of the guesses of the investigator
plotEv

Evaluation plotting
desirability

Desirability functions within the scope of clinical trials
getDesFunc

Type of Desirability function
rpbrPar

Representing Randomized Permuted Block Randomization
rtbdPar

Representing Randomized Truncated Binomial Design
udPar

Representing Wei's Urn Design
type

Get type of an object
combineBias

Combined additive bias criterion
coin

Function returning the coin slot of an S4 object
getDesScores

Applying desirability functions on issues of individual randomization sequences
doublyF_values

Rejection probability in case of selection bias in multi-arm trials
doublyT

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

Design of a randomization procedure
lambda1

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

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

Randomization paramters
randBlocks

Function returning the block slot of an S4 object
rho

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

Function returning the allocation ratio slot of an S4 object
summary

Summary of assessments of a randomization procedure
doublyTValues

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

Representing Truncated Binomal Design
rarPar

Representing Random Allocation Rule
setPower

Representing the power
getRandomizationList

Accessor function for the randomization list
ebcPar

Representing Efron's Biased Coin Design
sigma

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

Biasing Policy for a Group of Favoured Treatments
mpPar

Representing Maximal Procedure
method

Function returning the allocation ratio slot of an S4 object
normEndp

Representation of normally distributed endpoints
overview

Overview over the parameters used in the randomizeR package
saveRand

Saving a randomization lists
saveAssess

Saving an assess object
TV

Function returning the sample size slot of an S4 object
abcdRand

Sampling algorithm for abcd
assess

Assessing randomization sequences
bbcdPar

Representing Bayesian Biased Coin Design
abcdPar

Representing Accelerated Biased Coin Design
$,derFunc-method

Method defining the $ operator for the derFunc class
a

Function returning the adjusting parameter a slot of an S4 object
$,evaluation-method

Method defining the $ operator for the evaluation class
$,desFunc-method

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

Method defining the $ operator for the assessemnt class
bsdPar

Representing Big Stick Design
bbcdRand

Sampling algorithm for bbcd
K

Function returning the total sample size slot of an S4 object
$,assessment-method

Method defining the $ operator for the assessemnt class
bsdRand

Sampling algorithm for BSD