<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="other" dtd-version="1.2" xml:lang="en">
    <front>
        <journal-meta>
            <journal-id journal-id-type="pmc">Gates Open Res</journal-id>
            <journal-title-group>
                <journal-title>Gates Open Research</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2572-4754</issn>
            <publisher>
                <publisher-name>F1000 Research Limited</publisher-name>
                <publisher-loc>London, UK</publisher-loc>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.12688/gatesopenres.12912.1</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Software Tool Article</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>Highly Efficient Clinical Trials Simulator (HECT): Software application for planning and simulating platform adaptive trials</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 1; peer review: awaiting peer review]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Thorlund</surname>
                        <given-names>Kristian</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Visualization</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0001-5848-3111</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Golchi</surname>
                        <given-names>Shirin</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Formal Analysis</role>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Visualization</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Haggstrom</surname>
                        <given-names>Jonas</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a1">1</xref>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Mills</surname>
                        <given-names>Edward J.</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Funding Acquisition</role>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Visualization</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-3120-9694</uri>
                    <xref ref-type="aff" rid="a1">1</xref>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>MTEK Sciences Inc., Vancouver, British Columbia (BC), V5Z 1J5, Canada</aff>
                <aff id="a2">
                    <label>2</label>Knowledge Integration - Trial Services, Bill &amp; Melinda Gates Foundation, Seattle, Washington, 98109, USA</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:kthorlund@mteksciences.com">kthorlund@mteksciences.com</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>8</day>
                <month>3</month>
                <year>2019</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2019</year>
            </pub-date>
            <volume>3</volume>
            <elocation-id>780</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>11</day>
                    <month>2</month>
                    <year>2019</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2019 Thorlund K et al.</copyright-statement>
                <copyright-year>2019</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <self-uri content-type="pdf" xlink:href="https://gatesopenresearch.org/articles/3-780/pdf"/>
            <abstract>
                <p>
                    
                    <bold>Background:</bold> Adaptive designs and platform designs are among two common clinical trial innovations that are increasingly being used to manage medical intervention portfolios and attain faster regulatory approvals. Planning of adaptive and platform trials necessitate simulations to understand how a set of adaptation rules will likely affect the properties of the trial. Clinical trial simulations, however, remain a black box to many clinical trials researchers who are not statisticians.</p>
                <p>
                    
                    <bold>Results:</bold> In this article we introduce a simple intuitive open-source browser-based clinical trial simulator for planning adaptive and platform trials. The software application is implemented in 
                    <italic toggle="yes">RShiny</italic> and features a graphical user interface that allows the user to set key clinical trial parameters and explore multiple scenarios such as varying treatment effects, control response and adherence, as well as number of interim looks and adaptation rules. The software provides simulation options for a number of designs such as dropping treatment arms for futility, adding a new treatment arm (i.e., platform design), and stopping a trial early based on superiority. All available adaptations are based on underlying Bayesian probabilities. The software comes with a number of graphical outputs to examine properties of individual simulated trials. The main output is a comparison of trial design performance across several simulations, graphically summarizing type I error (false positive risk), power, and expected cost/time to completion of the considered designs.</p>
                <p>
                    
                    <bold>Conclusion:</bold> We have developed and validated an intuitive highly efficient clinical trial simulator for planning of clinical trials. The software is open-source and caters to clinical trial investigators who do not have the statistical capacity for trial simulations available in their team. The software can be accessed via any web browser via the following link: 
                    <italic toggle="yes">https://mtek.shinyapps.io/hect/</italic>
</p>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>Platform trial</kwd>
                <kwd>adaptive design</kwd>
                <kwd>trial simulation</kwd>
                <kwd>highly efficient clinical trials</kwd>
                <kwd>open-source software.</kwd>
            </kwd-group>
            <funding-group>
                <award-group id="fund-1" xlink:href="http://dx.doi.org/10.13039/100000865">
                    <funding-source>Gates Foundation</funding-source>
                    <award-id>49294</award-id>
                </award-group>
                <funding-statement>This work was supported by the Gates Foundation [49294]</funding-statement>
                <funding-statement>
                    <italic>The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</italic>
                </funding-statement>
            </funding-group>
        </article-meta>
    </front>
    <body>
        <sec sec-type="intro">
            <title>Introduction</title>
            <p>Over the past two decades randomized clinical trials have become increasingly innovative
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-1">1</xref>
                </sup>. The surge in innovative designs stems from an increasing need to reduce waste and improve efficiencies in time and cost. Adaptive designs and platform designs are among two common clinical trial innovations that are increasingly being used by the pharmaceutical industry to manage their drug portfolios and get to faster regulatory approvals of new treatments
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-2">2</xref>&#x2013;
                    <xref ref-type="bibr" rid="ref-4">4</xref>
                </sup>. These types of trials, when designed appropriately, also have ethical advantages such as reducing the number of patients exposed to an inferior or harmful treatment.</p>
            <p>Contrary to conventional randomized clinical trials where all patients are followed-up after a fixed period of time and the pre-planned trial protocol is adhered without deviation, adaptive trials and platform designs allow for pre-planned (and occasionally post-initiation) modifications to the protocol in the event of strong early treatment response signals
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-4">4</xref>
                </sup>. At face value, this makes the properties of adaptive and platform trials difficult to understand because trial investigators do not know up front whether or which pre-planned adaptations may take place over the course of a trial. Hitherto, planning of adaptive and platform trials necessitate simulations to understand how a set of adaptation rules will likely effect the properties of the trial (e.g., the probability of the detecting a true effect)
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-5">5</xref>
                </sup>.</p>
            <p>Simulations, whether for clinical trials or other disciplines, are a complex branch of statistics and probability theory, and thus naturally, remain a black box to most clinical trial investigators. In the pharmaceutical industry, expensive comprehensive software packages (e.g., 
                <italic toggle="yes">FACTS
                    <sup>TM</sup>
                </italic> or 
                <italic toggle="yes">ADD-PLAN
                    <sup>&#x00ae;</sup>
                </italic>)
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-6">6</xref>,
                    <xref ref-type="bibr" rid="ref-7">7</xref>
                </sup> are often used to run simulations, but the technical level required to use such packages is typically that of a master&#x2019;s degree in statistics (or similar) with years of experience. In other areas such as academia where funding typically is not available for these software packages, statisticians will either need to hard code simulations from scratch or code via available packages in statistical software (e.g., the 
                <italic toggle="yes">ADCT: Adaptive Design in Clinical Trials package</italic> for 
                <italic toggle="yes">R</italic>)
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-8">8</xref>
                </sup>. Arguably, both options contribute further to the black box perception and thus are not helpful in the education and promotion of innovative clinical trial designs.</p>
            <p>In global health, the Bill &amp; Melinda Gates Foundation is pushing for the use of Highly Efficient Clinical Trials (HECT) &#x2013; trials where investigators are open to adaptation, where trial simulation is a natural part of the planning, and where the scope of the trial can be altered to sustain local infrastructure and leave a foot print
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-9">9</xref>
                </sup>. Platform adaptive trial designs fit well into this context, but the use of these designs may be hampered by limited access to methodologists with capabilities in trial simulations. To address these limitations, the 
                <italic toggle="yes">Knowledge Integration (KI) trial services</italic> division at The Bill &amp; Melinda Gates Foundation initiated the development of an open source software application with a simple user interface to complete platform and adaptive trial simulations. The software was developed between May 2017 and October 2018 and caters to clinical trial investigators, clinical trial methodologist, and researchers who are not statisticians or do not have access to commercial trial simulator software. This article documents the implementation, methods and functions of the software application.</p>
        </sec>
        <sec>
            <title>Implementation</title>
            <p>The Highly Efficient Clinical Trials (HECT) simulator is a web application written in 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://shiny.rstudio.com/">RShiny</ext-link>
                </italic>, a package in the statistical software 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://r-project.org/">R</ext-link>
                </italic> and 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://www.rstudio.com/">RStudio</ext-link>
                </italic>
                
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-10">10</xref>,
                    <xref ref-type="bibr" rid="ref-11">11</xref>
                </sup>. The HECT simulator is compiled to run on any browser. The HECT simulator requires a few manual inputs in the input bar (see also next section) to run. The software allows for simulation outputs to be saved and loaded. The simulation output can be saved in a temporary folder that accompanies the application for online exploration and comparisons. This folder is cleared on a daily basis to prevent accumulation of data. To save the simulation output permanently the user needs to use the download button which downloads the results in form of a table with rows and columns specified by the user.</p>
            <p>The clinical trial adaptation rules implemented in the software are based on the calculation of Bayesian posterior probabilities of superiority and inferiority
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-12">12</xref>
                </sup>. These are hardcoded in 
                <italic toggle="yes">R</italic> and further technical details can be found in the software manual&#x2019;s appendix.</p>
            <sec>
                <title>Overview of inputs and functions</title>
                <p>The HECT software application comes with a set of functions and outputs for trial simulation and conventional sample size calculations. The software also provides a brief user manual. 
                    <xref ref-type="fig" rid="f1">Figure 1</xref> shows the opening window of the HECT software. The trial simulator inputs and outputs is found in the first tab to the left, the conventional sample size calculator is available in the middle tab, and the user manual is found in the third tab to the right. The manual outlines each of the input options individually and provides summaries of available outputs. The manual appendix includes a detailed account of the statistical methods used at the back-end of the software. For all functions, the input bar is found to the left in the browser window, and the outputs are obtained and found in the right side of the browser window.</p>
                <fig fig-type="figure" id="f1" position="float">
                    <label>Figure 1. </label>
                    <caption>
                        <title> Displays the start up window of the HECT simulator software application</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14011/8ba0f549-9b89-4ae9-ab3c-029d523574ac_figure1.gif"/>
                </fig>
            </sec>
            <sec>
                <title>Clinical trial designs implemented</title>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Conventional trial design.</italic>
                    </bold> For comparative purposes, all simulations will automatically incorporate simulations of a conventional 1:1 randomized clinical trial. The conventional trial will accumulate the maximum allowed number of patients in the simulation, which can be informed by a conventional clinical trial sample size calculation (see 
                    <italic toggle="yes">Conventional sample size calculation</italic> under 
                    <italic toggle="yes">Statistical methods implementation</italic>). 
                    <xref ref-type="fig" rid="f2">Figure 2a</xref> display an example of a standard multiple simulations output figure from the software where key properties such as type I error, power, and cost, are compared between a simulated HECT and a conventional trial.</p>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>Figure 2. </label>
                    <caption>
                        <p>Displays example trial design performance outputs after 200 simulated trials: (
                            <bold>a</bold>) comparing the type 1 error, power and overall cost between the highly efficient clinical trial (HECT) and the conventional clinical trial design; and (
                            <bold>b</bold>) the distribution of sample size at trial termination with the highly efficient design (compared to 6,000 for all conventional designs).</p>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14011/773359b7-591d-4274-a734-4d156fee8c85_figure2.gif"/>
                </fig>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Early stopping of trial for efficacy.</italic>
                    </bold> The software includes an option to stop the trial early if a strong signal of superiority of one treatment over the other(s) is observed at an interim analysis. The signal is determined by a pre-set threshold for a Bayesian posterior probability of superiority. For example, if the threshold is set to 99%, a single simulated trial will be terminated at the first interim analysis where the probability of any treatment being superior to all other treatment exceeds 99%.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Early stopping or dropping of treatment arm for futility.</italic>
                    </bold> The HECT software comes with two options for dropping a treatment arm for futility. For two-arm trials, early confirmation of futility may also lead to termination of the trial. First, a treatment arm may be dropped early for futility if the probability that it is superior to all other treatments fall below some pre-set threshold. For example, if the threshold is set to 1%, the treatment arm will be dropped at the first interim analysis where the probability of it being superior to all other treatments falls below 1%. Second, a treatment arm may be dropped with respect to some margin of observed treatment effect, typically an agreed upon minimally clinically important effect. For example, if we consider a relative risk reduction of 20% the minimally important effect for some clinical outcome, we can drop a treatment arm if we are highly certain the treatment effect (compared to control) does not exceed 20%. For example, investigators can insist on being 95% certain the effect is less than minimally important. In this case, the treatment arm will be dropped at the first interim analysis when there is a 95% probability or greater that the relative risk reduction is smaller than 20%.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Platform trial &#x2013; adding new treatment arm.</italic>
                    </bold> Similar to dropping a treatment arm, the HECT simulator also allows for the addition of a new treatment arm. This corresponds to using a platform design. The software allows the addition of a new arm to be triggered in two ways. First, if another treatment arm is dropped for futility (see above subsection) a new treatment arm will replace the dropped one. Second, if all arms are dropped except for one, a new arm can be added to compare to the winner of the previous stage. For the latter, this occurs if a trial is stopped for superiority of one treatment, except the platform trial design option allows for a perpetual continuation of the trial into a two-arm comparison.</p>
            </sec>
            <sec>
                <title>Statistical methods implemented</title>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Conventional sample size calculation.</italic>
                    </bold> As a basis for comparison, the HECT simulator includes a sample size calculator for conventional randomized clinical trials (see appendix of User Manual). For multi-arm trials, the sample size is specified to detect the difference between the largest and second largest effect. The sample size calculator also allows for adjustment of multiplicity for multi-arm trials. The sample size calculator is found in the middle tab.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Adaptive design stopping rules.</italic>
                    </bold> All stopping rules, whether for treatment arms or the whole trial, are based on the calculation of Bayesian posterior probabilities. Currently (Nov 2018), the software facilitates trial simulation for binary and continuous outcomes. As such, the Bayesian models comprise a conjugate Gaussian model for continuous outcomes and a beta-binomial model (i.e. a beta prior and a binomial likelihood) for binary outcomes. In both models a diffuse non-informative prior is specified.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Response adaptive allocation.</italic>
                    </bold> Response adaptive adaptation is an optional feature under all trial designs implemented in the HECT simulator. With response adaptive allocation the allocation ratio between treatments is adapted based on which treatment appears most likely to be superior. In other words, on average more patients will be allocated to the treatment with the highest Bayesian probability of superiority
                    <sup>
                        
                        <xref ref-type="bibr" rid="ref-12">12</xref>
                    </sup>. This method is particularly used when there is a strong incentive to reduce the number of patients exposed to an inferior treatment. While there are many methods of adjusting the allocation ratio, the HECT simulator uses the ratio between square roots of the posterior probabilities of being superior for each treatment
                    <sup>
                        
                        <xref ref-type="bibr" rid="ref-13">13</xref>
                    </sup>. When response adaptive allocation is selected, the allocation rate is set to equal for all arms (e.g., 1:1 for 2-arm trial) up till a pre-specified &#x2018;burn-in&#x2019; sample size and is subsequently altered for every accumulated patient.</p>
            </sec>
            <sec>
                <title>Simulation analysis functions implemented</title>
                <p>The HECT trial simulator allows the user to estimate the trial design properties via simulation of large number of trials as well as simulating individual clinical trials to gain a better understanding of within trial variability.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Trial design properties (multiple trials simulation).</italic>
                    </bold> To evaluate the overall trial design properties such as type I error, power, expected time to trial termination/average sample size, expected costs, etc. it is necessary to simulate multiple trials and average the performance metrics of these. The trial design properties function does just that. 
                    <xref ref-type="fig" rid="f2">Figure 2</xref> illustrates an example of the graphical outputs provided under the Trial Design Properties function. The user can decide how many trials to simulate or for how long the simulation can run (time maximum defined by number of seconds). The user can inspect the overall (or treatment vs control specific) power and type I error (reported numbers), the distribution of final sample sizes and cost across simulated trials (histogram display), as well as the comparison of power, type I error and expected costs between the HECT trial and a conventional design trial (bar plot display). Lastly, the user can save all or some of the recorded variables for the simulation that has just been run.</p>
                <p>
                    
                    <bold>
                        
                        <italic toggle="yes">Single trial simulation.</italic>
                    </bold> The single trial simulation function provides several graphical and numerical outputs to inspect within trial trends and variability. 
                    <xref ref-type="fig" rid="f3">Figure 3</xref> illustrates an example of some of graphical outputs provided for single trial simulation. First, the single trial simulation function produces a diagram for the trial flow over time (accumulation of patients) which allows visual representation of when any treatment was dropped or added. Second, a visual representation of where data points fall over time is available (extension of the trial flow diagram). Third, the single trial simulator provides visual inspection of the probabilities of superiority for each treatment over time, specifically at each planned interim look. This option is also available as graphical representation of posterior distributions for each treatment arm at selected interim looks. Finally, the final treatment estimates both for the primary outcome (which adaptations are based on) and optionally some secondary outcome (only monitored) are available to inspect.</p>
                <fig fig-type="figure" id="f3" orientation="portrait" position="float">
                    <label>Figure 3. </label>
                    <caption>
                        <p>Displays example single trial outputs for: (
                            <bold>a</bold>) actualized (platform) trial design scheme; (
                            <bold>b</bold>) the probabilities of superiority for each treatment by interim look; and (
                            <bold>c</bold>) the probability densities for each treatment by interim look.</p>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14011/773359b7-591d-4274-a734-4d156fee8c85_figure3.gif"/>
                </fig>
            </sec>
            <sec>
                <title>User interface</title>
                <p>The user interface comprises of three tabs: Trial Simulation, Sample Size Calculation, User Manual. The latter is a brief account of all input options and general outputs. In addition to the user manual, individual explanations are available for several functions when the user hovers the mouse cursor over the function. Both the Trial Simulation and Sample Size Calculation tabs have their input field to the left and the output to the right. At start up, default values are set to avoid empty values. Quality checks are automatically run, and error messages with accompanying instructions will be provided if the user attempts a computation based on input values that are either beyond the allowed range or of the wrong format.</p>
                <p>Where radio buttons are used to define the input format (binary or continuous outcomes) for trial design type (compare all arms or compare vs control), the input field will automatically change to match the selected.</p>
                <p>The right side panels are for the outputs. For the Sample Size Calculations tab, the &#x2018;Calculate&#x2019; button will initiate the conventional sample size calculation and if all inputs are of correct format, the resulting sample size will appear. For the Trial Simulation tab, the right side is split in two panels. The lower panel is for running single trial simulations (one at a time) and inspecting the within trial behaviour. The upper panel is for summarizing the performance properties across multiple trial simulations. In both, the user is required to press the &#x2018;Run&#x2019; button for a simulation (single or multiple) to run. A single trial simulation typically only requires a few seconds, whereas multiple trial simulations may require a few minutes. A progress bar will appear in the lower right corner so the user can follow the back-end computations progress. Whether single or multiple simulations are run, the available output graphs will update once the computations are complete.</p>
            </sec>
        </sec>
        <sec>
            <title>Operation</title>
            <p>The HECT simulator is compiled to run on any browser and can be accessed via any web browser using the following link: 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://mtek.shinyapps.io/hect/">https://mtek.shinyapps.io/hect/</ext-link>
                </italic>. All computations are conducted remotely on an 
                <italic toggle="yes">RShiny</italic> server. The graphical layout of the software is automatically determined by the size of the browser window and the screen resolution. For example, for a 13-inch laptop manufactured in 2018 we recommend you maximize your browser window and use a high resolution setting the first time you open the software.</p>
        </sec>
        <sec>
            <title>Validation and use cases</title>
            <p>The functions of HECT simulator software has gone through multiple rounds of validation. At the time of writing (January 14, 2019), the software (including earlier versions of the raw statistical methods code and user interface) has been used to design six trials funded by the Bill &amp; Melinda Gates Foundation for which the authors had led the efforts during the trial design stage. The software was developed alongside hard coded simulations in 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://r-project.org/">R</ext-link> v.3.5.1</italic>
                
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-11">11</xref>
                </sup> for trial designs and scenarios that were explored for each of these trials. The trial design simulation code incorporated in the HECT simulator has therefore been validated against six trial designs, collectively covering over 1,000 scenarios. Since the protocols of these trials are still in preparation at the time of writing this manuscript we have not presented use case results in this manuscript. However, please contact the corresponding author for inquiries about further details on these use cases. The raw code for simulations of the trial designs incorporated in the HECT simulator is available as part of the source code and can be found in the 
                <italic toggle="yes">sim_funs.R</italic> file. Lastly, the software was beta-tested by internal and external colleagues.</p>
        </sec>
        <sec sec-type="conclusions">
            <title>Concluding remarks</title>
            <p>We have developed and validated an intuitive highly efficient clinical trial simulator for planning of platform adaptive clinical trials. The software is open-source and can be accessed via any web browser. It therefore caters to clinical trial investigators who do not have the statistical capacity for trial simulations available in their team or who do not have the funds to invest in available commercial software.</p>
        </sec>
        <sec>
            <title>Data availability</title>
            <sec>
                <title>Underlying data</title>
                <p>All data underlying the results are available as part of the article and no additional source data are required.</p>
            </sec>
        </sec>
        <sec>
            <title>Software availability</title>
            <p>The source code for the software is via GitHub: 
                <italic toggle="yes">
                    
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/MTEKSciencesInc/HECT">https://github.com/MTEKSciencesInc/HECT</ext-link>
                </italic>
</p>
            <p>Archived source code at time of publication: 
                <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.5281/zenodo.2552878">http://doi.org/10.5281/zenodo.2552878</ext-link>
                
                <sup>
                    
                    <xref ref-type="bibr" rid="ref-14">14</xref>
                </sup>
            </p>
            <p>Licence: 
                <ext-link ext-link-type="uri" xlink:href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU General Public License v3.0</ext-link>
            </p>
        </sec>
    </body>
    <back>
        <ref-list>
            <ref id="ref-1">
                <label>1</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Bauer</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Bretz</surname>
                            <given-names>F</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Dragalin</surname>
                            <given-names>V</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Twenty-five years of confirmatory adaptive designs: opportunities and pitfalls.</article-title>
                    <source>

                        <italic toggle="yes">Stat Med.</italic>
</source>
                    <year>2016</year>;<volume>35</volume>(<issue>3</issue>):<fpage>325</fpage>&#x2013;<lpage>347</lpage>.
                    <pub-id pub-id-type="pmid">25778935</pub-id>
                    <pub-id pub-id-type="doi">10.1002/sim.6472</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-2">
                <label>2</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hatfield</surname>
                            <given-names>I</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Allison</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Flight</surname>
                            <given-names>L</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Adaptive designs undertaken in clinical research: a review of registered clinical trials.</article-title>
                    <source>

                        <italic toggle="yes">Trials.</italic>
</source>
                    <year>2016</year>;<volume>17</volume>(<issue>1</issue>):<fpage>150</fpage>.
                    <pub-id pub-id-type="pmid">26993469</pub-id>
                    <pub-id pub-id-type="doi">10.1186/s13063-016-1273-9</pub-id>
                    <pub-id pub-id-type="pmcid">4799596</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-3">
                <label>3</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Saville</surname>
                            <given-names>BR</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Berry</surname>
                            <given-names>SM</given-names>
                        </name>
</person-group>:
                    <article-title>Efficiencies of platform clinical trials: A vision of the future.</article-title>
                    <source>

                        <italic toggle="yes">Clin Trials.</italic>
</source>
                    <year>2016</year>;<volume>13</volume>(<issue>3</issue>):<fpage>358</fpage>&#x2013;<lpage>366</lpage>.
                    <pub-id pub-id-type="pmid">26908536</pub-id>
                    <pub-id pub-id-type="doi">10.1177/1740774515626362</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-4">
                <label>4</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Thorlund</surname>
                            <given-names>K</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Haggstrom</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Park</surname>
                            <given-names>JJ</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Key design considerations for adaptive clinical trials: a primer for clinicians.</article-title>
                    <source>

                        <italic toggle="yes">BMJ.</italic>
</source>
                    <year>2018</year>;<volume>360</volume>:<fpage>k698</fpage>.
                    <pub-id pub-id-type="pmid">29519932</pub-id>
                    <pub-id pub-id-type="doi">10.1136/bmj.k698</pub-id>
                    <pub-id pub-id-type="pmcid">5842365</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-5">
                <label>5</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Park</surname>
                            <given-names>JJ</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Thorlund</surname>
                            <given-names>K</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Mills</surname>
                            <given-names>EJ</given-names>
                        </name>
</person-group>:
                    <article-title>Critical concepts in adaptive clinical trials.</article-title>
                    <source>

                        <italic toggle="yes">Clin Epidemiol.</italic>
</source>
                    <year>2018</year>;<volume>10</volume>:<fpage>343</fpage>&#x2013;<lpage>351</lpage>.
                    <pub-id pub-id-type="pmid">29606891</pub-id>
                    <pub-id pub-id-type="doi">10.2147/CLEP.S156708</pub-id>
                    <pub-id pub-id-type="pmcid">5868584</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <article-title>FACTS - Fixed and Adaptive Clinical Trials Simulator</article-title>.<year>2014</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.berryconsultants.com/wp-content/uploads/2014/09/FACTS-Overview.pdf">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <article-title>ADDPLAN Adaptive Design Software</article-title>.<year>2018</year>.</mixed-citation>
            </ref>
            <ref id="ref-8">
                <label>8</label>
                <mixed-citation publication-type="journal">
                    <collab>ADCT</collab>:
                    <article-title>Adaptive Design in Clinical Trials v. 0.1.0</article-title>.<year>2016</year>.</mixed-citation>
            </ref>
            <ref id="ref-9">
                <label>9</label>
                <mixed-citation publication-type="journal">
                    <collab>BMGF</collab>: in
                    <italic toggle="yes">Leadership Update</italic>(ed Knowledge-Integration(KI)) (Bill &amp; Melinda Gates Foundation, 2018).</mixed-citation>
            </ref>
            <ref id="ref-10">
                <label>10</label>
                <mixed-citation publication-type="journal">
                    <collab>R Studio</collab>:
                    <article-title>Integrated Development for R.Studio, Inc</article-title>.<year>2017</year>.</mixed-citation>
            </ref>
            <ref id="ref-11">
                <label>11</label>
                <mixed-citation publication-type="journal">
                    <article-title>R: A language and environment for statistical programming</article-title>.<year>2010</year>.</mixed-citation>
            </ref>
            <ref id="ref-12">
                <label>12</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Berry</surname>
                            <given-names>SM</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Carlin</surname>
                            <given-names>BP</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Jack Lee</surname>
                            <given-names>J</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Bayesian Adaptive Methods for Clinical Trials</article-title>.<year>2011</year>.
                    <pub-id pub-id-type="doi">10.1201/EBK1439825488</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-13">
                <label>13</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Atkinson</surname>
                            <given-names>AC</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Biswas</surname>
                            <given-names>A</given-names>
                        </name>
</person-group>:
                    <article-title>Randomised Reponse-Adaptive Designs in Clinical Trials</article-title>.<year>2013</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.crcpress.com/Randomised-Response-Adaptive-Designs-in-Clinical-Trials/Atkinson-Biswas/p/book/9781584886938">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-14">
                <label>14</label>
                <mixed-citation publication-type="journal">
                    <collab>sgolchi, MTEKSciences,  grace</collab>:
                    <article-title> MTEKSciencesInc/HECT: First release (Version v1.0).</article-title>
                    <source>

                        <italic toggle="yes">Zenodo.</italic>
</source>
                    <year>2019</year>.
                    <ext-link ext-link-type="uri" xlink:href="http://www.doi.org/10.5281/zenodo.2552878">http://www.doi.org/10.5281/zenodo.2552878</ext-link>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
</article>
