knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", cache = FALSE )
This package contains the code used in the calculations for our paper on the optimization of the two-stage group sequential three-arm gold-standard design for non-inferiority trials.
It allows for the simultaneous optimization of the allocation ratios for both stages (in two-stage designs), the efficacy boundaries, and the futility boundaries. The optimization is performed under type I and II error constraints and the objective function is customizable by the user. Methods to optimize two- and one-stage designs are available.
You can install the CRAN version of this package by typing the following command into your R console:
install.packages("OptimalGoldstandardDesigns")
You can install the GitHub Version by typing:
remotes::install_github("jan-imbi/OptimalGoldstandardDesigns")
You can also clone this repository directly from github. This will give you access to the /data/ subdirectory, which contains code to reproduce the examples from the paper.
You can check out an online version of the documentation using this link.. In particular, you might be interested in reading the Usage guidance article.
library(OptimalGoldstandardDesigns) optimize_design_onestage( alpha = .025, beta = .2, alternative_TP = .4, alternative_TC = 0, Delta = .2, print_progress = FALSE )
optimize_design_twostage( beta = 0.2, alternative_TP = 0.4, alternative_TC = 0, Delta = 0.2, print_progress = FALSE, binding_futility = TRUE )
Meis, J, Pilz, M, Herrmann, C, Bokelmann, B, Rauch, G, Kieser, M. Optimization of the two-stage group sequential three-arm gold-standard design for non-inferiority trials. Statistics in Medicine. 2023; 42( 4): 536– 558. doi:10.1002/sim.9630.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.