randomizeR v1.4.2

0

Monthly downloads

0th

Percentile

Randomization for Clinical Trials

This tool enables the user to choose a randomization procedure based on sound scientific criteria. It comprises the generation of randomization sequences as well the assessment of randomization procedures based on carefully selected criteria. Furthermore, 'randomizeR' provides a function for the comparison of randomization procedures.

Readme

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.

Functions in randomizeR

Name Description
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
No Results!

Vignettes of randomizeR

Name
article.Rnw
comparison-example.Rnw
desirability-example.Rnw
desirabilityIndex-example-blx.bib
randomizeR-refCard.Rnw
references.bib
vignette.bib
No Results!

Last month downloads

Details

Date 2018-06-14
License GPL (>= 3)
LazyData true
Collate 'getDesign.R' 'randPar.R' 'abcdPar.R' 'randSeq.R' 'abcdSeq.R' 'getExpectation.R' 'normEndp.R' 'endpoint.R' 'util.R' 'getStat.R' 'power.R' 'imbalance.R' 'corGuess.R' 'doublyF.R' 'testDec.R' 'doublyT.R' 'chronBias.R' 'selBias.R' 'bias.R' 'issue.R' 'assess.R' 'bbcdPar.R' 'bbcdSeq.R' 'ebcPar.R' 'bsdPar.R' 'bsdSeq.R' 'chenPar.R' 'chenSeq.R' 'chronBiasStepT.R' 'combinedBias.R' 'compare.R' 'crPar.R' 'crSeq.R' 'createParam.R' 'derFunc.R' 'desFunc.R' 'getDesFunc.R' 'derringerLs.R' 'derringerRs.R' 'derringerTs.R' 'desScores.R' 'desirability.R' 'ebcSeq.R' 'evaluate.R' 'gbcdPar.R' 'gbcdSeq.R' 'hadaPar.R' 'hadaSeq.R' 'mpPar.R' 'mpSeq.R' 'pbrPar.R' 'pbrSeq.R' 'probUnDes.R' 'rtbdSeq.R' 'rpbrSeq.R' 'randomBlockSeq.R' 'randomizeROverview.R' 'randomizeRPackage.R' 'rarPar.R' 'rarSeq.R' 'rpbrPar.R' 'tbdPar.R' 'rtbdPar.R' 'saveAssess.R' 'saveRand.R' 'tbdSeq.R' 'udPar.R' 'udSeq.R'
VignetteBuilder knitr
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2018-06-15 15:31:18 UTC; duschner
Repository CRAN
Date/Publication 2018-06-15 16:04:21 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/randomizeR)](http://www.rdocumentation.org/packages/randomizeR)