Skip to content

EstherHerbert/multimini

Repository files navigation

multimini

Lifecycle: experimental

The goal of multimini is to use minimisation to randomise a multi-arm trial with various different techniques for the minimisation probabilities.

Installation

You can install the development version of multimini from GitHub with:

# install.packages("devtools")
devtools::install_github("EstherHerbert/multimini")

Examples

Using the default minimisation probabilities

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)

Specifying minimisation probabilities

(mini <- minimise(patients, groups = 3, factors = c("sex", "stage"),
                  burnin = 15, minprob = c(0.8, 0.2, 0)))

balance(mini)

Updating the miniisation

new.patients <- data.frame(
 sex = c("F", "F", "M"),
 stage = c("II","I", "I"),
 site = c(9, 9, 1)
)

update(mini, new.patients) 

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages