The goal of multimini
is to use minimisation to randomise a multi-arm
trial with various different techniques for the minimisation
probabilities.
You can install the development version of multimini
from
GitHub with:
# install.packages("devtools")
devtools::install_github("EstherHerbert/multimini")
This is a basic example which shows you how to solve a common problem:
library(multimini)
(mini <- minimise(patients, groups = 3, factors = c("sex", "stage"),
burnin = 15))
balance(mini)
(mini <- minimise(patients, groups = 3, factors = c("sex", "stage"),
burnin = 15, minprob = c(0.8, 0.2, 0)))
balance(mini)
new.patients <- data.frame(
sex = c("F", "F", "M"),
stage = c("II","I", "I"),
site = c(9, 9, 1)
)
update(mini, new.patients)