Git Product home page Git Product logo

andongzhengyang / bayesian_ia_timing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wxwx1993/bayesian_ia_timing

0.0 0.0 0.0 8.76 MB

R package for "Optimizing Interim Analysis Timing for Bayesian Adaptive Commensurate Designs". A innovative Bayesian adaptive commensurate designs that borrows adaptively from historical information and also uses a payoff function to optimize the timing of the study’s interim analysis.

Home Page: https://arxiv.org/abs/1905.07456

R 14.56% Stan 2.14% C++ 83.30%

bayesian_ia_timing's Introduction

optimIA

The R Package for the manuscript "Optimizing Interim Analysis Timing for Bayesian Adaptive Commensurate Designs".

An innovative Bayesian adaptive commensurate design that is particularly useful for rare disease trials since it has the capability to borrow adaptively from historical information and also uses a payoff function to optimize the timing of the study’s interim analysis. (https://arxiv.org/abs/1905.07456).

Installation

library("devtools")
install_github("wxwx1993/Bayesian_IA_Timing")
library("optimIA")

Example

optimIA(historical=adult, 
        w=0.5, 
        IA_num=seq(0,40,2), 
        N=40, 
        p_l=0.25, 
        p_0=0.975, 
        p_u=c(0.96,0.998,0.002), 
        delta_0=0, 
        delta_1=20, 
        delta_design=25, 
        delta_min=15, 
        type1_level=0.05,  
        sim_sd=25, 
        niter=5000, 
        nrep=5000, 
        mc.cores=6)

Code

BCDOT_function is functions for implementing the Bayesian algorithm for the commensurate design approach to optimize interim analysis timing.

commensurate.stan & commensurate_noborrow.stan is to conduct essential Bayesian analyses for the algorithm approch. The commensurate_noborrow.stan is aimming to calculate Effective Historical Sample Size.

Data

adult is the fixed 50 sample size (hypothetical) historical adult data with balanced arms used for analysis. adult20 is the fixed 20 sample size (hypothetical) historical adult data with balanced arms used for analysis. adult100 is the fixed 100 sample size (hypothetical) historical adult data with balanced arms used for analysis.

bayesian_ia_timing's People

Contributors

wxwx1993 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.