<?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.13031.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>The Cascade Analysis Tool: software to analyze and optimize care cascades</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 1; peer review: 3 approved with reservations]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Kedziora</surname>
                        <given-names>David J</given-names>
                    </name>
                    <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/">Software</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>Abeysuriya</surname>
                        <given-names>Romesh</given-names>
                    </name>
                    <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/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a3">3</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Kerr</surname>
                        <given-names>Cliff C</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Software</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>Chadderdon</surname>
                        <given-names>George L</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Visualization</role>
                    <xref ref-type="aff" rid="a4">4</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Harbuz</surname>
                        <given-names>Vlad-&#x0218;tefan</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Visualization</role>
                    <xref ref-type="aff" rid="a5">5</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Metzger</surname>
                        <given-names>Sarah</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a6">6</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Wilson</surname>
                        <given-names>David P</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a6">6</xref>
                </contrib>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Stuart</surname>
                        <given-names>Robyn M</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Funding Acquisition</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/">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-5482-9584</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a7">7</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>School of Physics, University of Sydney, Physics Rd, Camperdown, Sydney, NSW 2006, Australia</aff>
                <aff id="a2">
                    <label>2</label>Institute for Global Health, University College London, 30 Guilford Street, London, WC1N 1EH, UK</aff>
                <aff id="a3">
                    <label>3</label>Monash University, 553 St Kilda Road, Melbourne, VIC 3004, Australia</aff>
                <aff id="a4">
                    <label>4</label>Independent researcher, 72 Bayview Street, Prahran, VIC 3181, Australia</aff>
                <aff id="a5">
                    <label>5</label>Phyramid, S&#x00fc;dquaistrasse 14, Kleinhafen, Basel, 4057, Switzerland</aff>
                <aff id="a6">
                    <label>6</label>Bill and Melinda Gates Foundation, 500 Fifth Avenue North, Seattle, WA, 98109, USA</aff>
                <aff id="a7">
                    <label>7</label>Department of Mathematical Sciences, University of Copenhagen, Universitetsparken 5, Copenhagen, 2100, Denmark</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:robyn@math.ku.dk">robyn@math.ku.dk</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>7</day>
                <month>6</month>
                <year>2019</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2019</year>
            </pub-date>
            <volume>3</volume>
            <elocation-id>1488</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>28</day>
                    <month>5</month>
                    <year>2019</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2019 Kedziora DJ 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-1488/pdf"/>
            <abstract>
                <p>
                    <bold>Introduction:</bold> Cascades, which track the progressive stages of engagement on the path towards a successful outcome, are increasingly being employed to quantitatively assess progress towards targets associated with health and development responses. Maximizing the proportion of people with successful outcomes within a budget-constrained context requires identifying and implementing interventions that are not only effective, but also cost-effective.</p>
                <p>
                    <bold>Methods:</bold> We developed a software application called the Cascade Analysis Tool that implements advanced analysis and optimization methods for understanding cascades, combined with the flexibility to enable application across a wide range of areas in health and development. The tool allows users to design the cascade, collate and enter data, and then use the built-in analysis methods in order to answer key policy questions, such as: understanding where the biggest drop-offs along the cascade are; visualizing how the cascade varies by population; investigating the impact of introducing a new intervention or scaling up/down existing interventions; and estimating how available funding should be optimally allocated among available interventions in order to achieve a variety of different objectives selectable by the user (such as optimizing cascade outcomes in target years). The Cascade Analysis Tool is available via a user-friendly web-based application, and comes with a user guide, a library of pre-made examples, and training materials.</p>
                <p>
                    <bold>Discussion:</bold> Whilst the Cascade Analysis Tool is still in the early stages of existence, it has already shown promise in preliminary applications, and we believe there is potential for it to help make sense of the increasing quantities of data on cascades.</p>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>cascades</kwd>
                <kwd>optimization</kwd>
                <kwd>modeling</kwd>
                <kwd>service delivery</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>OPP1181918</award-id>
                </award-group>
                <funding-statement>This work was supported by the Gates Foundation [OPP1181918].</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>The pursuit of effective program delivery has become a dominant theme in the discussions and strategic thinking of both national and international health and development agencies. Both the Paris Declaration on Aid Effectiveness
                <sup>
                    <xref ref-type="bibr" rid="ref-1">1</xref>
                </sup> and the Accra Agenda for Action
                <sup>
                    <xref ref-type="bibr" rid="ref-2">2</xref>
                </sup> emphasized the need for results-based evaluation to assess whether funds are being used efficiently towards achieving desired outcomes, and this has played an important role in shaping the thinking around results measurement more broadly. To support the emphasis on results-based evaluation, a multitude of systems are in operation for collecting and aggregating program result data
                <sup>
                    <xref ref-type="bibr" rid="ref-3">3</xref>
                </sup>. In theory, these data are intended to enable organizations to assess which strategies and programs are effective, identify elements of programs associated with better results, demonstrate accountability to external stakeholders, and make decisions about allocating further funding
                <sup>
                    <xref ref-type="bibr" rid="ref-3">3</xref>
                </sup>. In practice, however, there is a disconnect between the data being collected and the methods available for analyzing them.</p>
            <p>One method for quantifying how health and development programs are servicing the needs of communities is to define progressive stages of engagement on the path towards a successful outcome, and to measure what proportion of the overall target population has attained each stage. Often, these proportions are plotted as successive bars, in a representation known as a 
                <italic toggle="yes">cascade</italic>, a 
                <italic toggle="yes">care cascade</italic> or a 
                <italic toggle="yes">service cascade</italic> (
                <xref ref-type="fig" rid="f1">Figure 1</xref>). Cascades can be studied at a population level (left panel of 
                <xref ref-type="fig" rid="f1">Figure 1</xref>), or at a disaggregated sub-population level (right panel of 
                <xref ref-type="fig" rid="f1">Figure 1</xref>).</p>
            <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                <label>Figure 1. </label>
                <caption>
                    <title>A typical cascade presents the proportion of the total target population that have attained each of the sequential steps of engagement in the path towards a successful outcome.</title>
                    <p>The left panel is aggregated across the total population, and the right panel shows the same information but disaggregated by sex.</p>
                </caption>
                <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure1.gif"/>
            </fig>
            <p>Within public health, cascade-type models were explored as early as the 1960s for analyzing the success of tuberculosis programs
                <sup>
                    <xref ref-type="bibr" rid="ref-4">4</xref>
                </sup>, but the concept of a cascade really gained traction within HIV
                <sup>
                    <xref ref-type="bibr" rid="ref-5">5</xref>
                </sup>, where it is used to characterize the steps of care that people living with HIV go through. The HIV care cascade has been adopted in many countries as a population-level tool to evaluate the progress of individuals through the HIV care continuum
                <sup>
                    <xref ref-type="bibr" rid="ref-5">5</xref>&#x2013;
                    <xref ref-type="bibr" rid="ref-8">8</xref>
                </sup>. Following their success in HIV, cascades began to be applied to other areas of health. Tuberculosis followed soon after HIV, with the 2014 End TB Strategy including targets related to the latent tuberculosis cascade of care, and the following year&#x2019;s Global Plan To End TB 2016&#x2013;2020
                <sup>
                    <xref ref-type="bibr" rid="ref-9">9</xref>
                </sup> including a commitment to measure progress towards these targets. Subsequently, an explicit framework of analysis to account for the losses during each individual step in this cascade was developed
                <sup>
                    <xref ref-type="bibr" rid="ref-10">10</xref>
                </sup> and applied in South Africa
                <sup>
                    <xref ref-type="bibr" rid="ref-11">11</xref>
                </sup>, India
                <sup>
                    <xref ref-type="bibr" rid="ref-12">12</xref>
                </sup> and many other countries. The cascade approach has also been applied to the analysis of diabetes, most notably in a 2014 study that provided a comprehensive overview of the continuum of U.S. diabetes care (including a visualization of gaps in awareness of diagnosis, engagement, and treatment) by analyzing nationally representative data benchmarked against care recommendations for cardiovascular risk management
                <sup>
                    <xref ref-type="bibr" rid="ref-13">13</xref>
                </sup>. Building on this, a recent study in South Africa used data from the first comprehensive national survey on non-communicable diseases to construct a diabetes care cascade by categorizing the population with diabetes into those who were unscreened, screened but undiagnosed, diagnosed but untreated, treated but uncontrolled, and treated and controlled
                <sup>
                    <xref ref-type="bibr" rid="ref-14">14</xref>
                </sup>. The cascade framework has also been proposed as an analytic tool in hepatitis C
                <sup>
                    <xref ref-type="bibr" rid="ref-15">15</xref>
                </sup>, other sexually transmitted infections
                <sup>
                    <xref ref-type="bibr" rid="ref-16">16</xref>,
                    <xref ref-type="bibr" rid="ref-17">17</xref>
                </sup>, addiction care
                <sup>
                    <xref ref-type="bibr" rid="ref-18">18</xref>,
                    <xref ref-type="bibr" rid="ref-19">19</xref>
                </sup>, and mental health
                <sup>
                    <xref ref-type="bibr" rid="ref-20">20</xref>
                </sup>. Outside of public health, a related concept &#x2013; funnel analyses &#x2013; have proven useful in analyzing consumer behavior within ecommerce, retail, and online gaming/applications.</p>
            <p>Across all of these different applications, cascades have proven to be an effective visual tool for identifying weaknesses at different stages of service engagement, as well as unacceptable variations between different groups or countries. In addition, a handful of studies have pushed the analytic capacity of cascades one step further, employing them as a tool for identifying what mix of technologies and services should be provided, and to which populations, in order to best ensure that outcomes are met. A study of the HIV cascade in Kenya looked at how varying the coverage levels of five different interventions could improve the care cascade
                <sup>
                    <xref ref-type="bibr" rid="ref-21">21</xref>
                </sup>. An unpublished study conducted in South Africa further extended this idea, introducing the concept of &#x2018;optimizing the cascade&#x2019;, which meant calculating the coverage levels across 30+ HIV interventions that would maximize the number of people virally suppressed by 2030.</p>
            <p>Although there are many prior examples of cascade analyses, and even a few specifically on cascade optimization, these have all been disease-specific use cases. The lack of a readily-available modelling tool has substantially limited the potential for widespread uptake of cascade analyses and cascade optimizations. The purpose of this work is to begin with the concept of a cascade and implement it as a general software tool &#x2013; called the Cascade Analysis Tool &#x2013; that allows the same quantitative methods to be applied across application areas in health and development. The Cascade Analysis Tool is intended to address a set of key policy questions, as outlined in 
                <xref ref-type="fig" rid="f2">Figure 2</xref>. Methodologically, it is based on a compartmental mathematical model structure equipped with methods for parameterizing transition probabilities, and with a suite of inbuilt optimization methods for &#x2018;optimizing the cascade&#x2019;; that is, finding the annual investment or coverage levels for each intervention that would result in the cascade being as close as possible to some target distribution, subject to constraints on the overall budget and the pace of scale-up over time.</p>
            <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                <label>Figure 2. </label>
                <caption>
                    <title>The types of questions designed to be answered by the Cascade Analysis Tool.</title>
                </caption>
                <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure2.gif"/>
            </fig>
            <p>The Cascade Analysis Tool is available as open access software package, developed in Python and available via 
                <ext-link ext-link-type="uri" xlink:href="https://github.com/atomicateam/atomica/">GitHub</ext-link>. We also developed a graphical user interface to enable interested users to access the software via a 
                <ext-link ext-link-type="uri" xlink:href="http://ui.cascade.tools/">web-based application</ext-link>. Throughout this paper, we refer to an illustrative example of a hypertension cascade; this example, along with several other pre-made models, are available to all users as part of the library of &#x2018;demo&#x2019; projects included with the software.</p>
            <p>The Cascade Analysis Tool is intended to provide a practical way for stakeholders to utilize the increasing quantities of data on the costs, coverage, and impact of health and development interventions, and modalities through which these interventions are delivered to individuals, thus addressing some of the disconnect between the kinds of data being collected and the methods available for analyzing them.</p>
        </sec>
        <sec sec-type="methods">
            <title>Methods</title>
            <sec>
                <title>Implementation</title>
                <p>The Cascade Analysis Tool is a web application written using the 
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/atomicateam/atomica/">Atomica</ext-link> and 
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/sciris/sciris/">Sciris</ext-link> packages. The Cascade Analysis Tool comes with a library of pre-made cascades that can be immediately used for analyses. Alternatively, users can design their own cascade (see details in the next section).</p>
            </sec>
            <sec>
                <title>Operation</title>
                <p>The Cascade Analysis Tool can be run on any browser. The workflow creating and analyzing a cascade in the Cascade Analysis Tool consists of three key steps: 
                    <italic toggle="yes">designing the cascade, collating data,</italic> and 
                    <italic toggle="yes">analysis</italic>. If using one of the pre-made cascades in the Cascade Analysis Tool&#x2019;s library, it is possible to skip the first step.</p>
                <p>
                    <bold>
                        <italic toggle="yes">Designing the cascade.</italic>
                    </bold> The Cascade Analysis Tool is intended to be as flexible as possible, meaning that nothing about the cascade design is pre-determined. Thus, designing the cascade is the starting point for any cascade analysis. We will first show how a cascade can be represented as a compartmental model, and then provide details on how to set up a compartmental model representing a cascade within the Cascade Analysis Tool.</p>
                <p>
                    <underline>Representing a cascade as a compartmental model</underline>
                </p>
                <p>Conceptually, the process of designing a cascade is illustrated in 
                    <xref ref-type="fig" rid="f3">Figure 3</xref>. Beginning with a simple cascade representation, in which the progressive stages along the path to a successful outcome are plotted (
                    <xref ref-type="fig" rid="f3">Figure 3a</xref>), the next step is to break down each cascade bar so that it consists of the sum of all the bars that came before it, plus the difference between the height of the previous bars and the height of the current bar (
                    <xref ref-type="fig" rid="f3">Figure 3b</xref>). These differences represent the mutually exclusive states that a person can be in. This representation in terms of mutually exclusive states allows us to model the cascade using a compartmental model, which is one of the main workhorses for disease modeling in general. A compartmental model consists of a set of mutually exclusive states that a person can be in, plus a set of transitions between them (
                    <xref ref-type="fig" rid="f3">Figure 3c</xref>).</p>
                <fig fig-type="figure" id="f3" orientation="portrait" position="float">
                    <label>Figure 3. </label>
                    <caption>
                        <title>A generic treatment cascade (panel A), which is translated (panel B) into a compartmental model (panel C).</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure3.gif"/>
                </fig>
                <p>
                    <underline>Creating a compartmental model</underline>
                </p>
                <p>Having completed the conceptual stage of designing the cascade, resulting in a representation of the cascade as a compartmental model, users can then proceed to create their model in the Cascade Analysis Tool. This is done by creating a 
                    <italic toggle="yes">framework file</italic>, which is a Microsoft Excel spreadsheet containing the specifications of the model. A model consists of three mandatory components &#x2013; 
                    <italic toggle="yes">compartments</italic>, 
                    <italic toggle="yes">transitions</italic>, and 
                    <italic toggle="yes">parameters</italic>. The framework also contains two additional optional quantities, 
                    <italic toggle="yes">characteristics</italic> and 
                    <italic toggle="yes">cascades,</italic> which facilitate data entry and analysis. The design of the cascade and the initial consideration of available data should often be carried out in parallel because the selection of quantities included in the model directly affects which quantities are required for data entry.</p>
                <p>
                    <italic toggle="yes">Compartments</italic>
                </p>
                <p>
                    <xref ref-type="fig" rid="f3">Figure 3</xref> illustrates the process of transforming a typical cascade representation into a set of compartments, labelled as &#x201c;Undiagnosed&#x201d;, &#x201c;Diagnosed, not treated&#x201d;, and &#x201c;Currently treated&#x201d; in 
                    <xref ref-type="fig" rid="f3">Figure 3c</xref>. To set up a model using the Cascade Analysis Tool, the first step is to define these compartments in the framework file.</p>
                <p>The selection of compartments is often driven by desired outputs, which in turn reflect available data. For example, if one of the aims of the cascade analysis is to assess barriers to diagnosis following screening, then there should be compartments for both screened individuals and diagnosed individuals. In contrast, if there is no screening step, if there are no interventions targeted to reduce barriers to diagnosis, or if screening is not relevant to the analysis at hand, then it may be sufficient to only have a compartment for diagnosed individuals.</p>
                <p>
                    <italic toggle="yes">Transitions</italic>
                </p>
                <p>In 
                    <xref ref-type="fig" rid="f3">Figure 3c</xref>, there are arrows between the compartments that illustrate the paths that people can take between different states. For example, people can go from &#x201c;Undiagnosed&#x201d; to &#x201c;Diagnosed, not treated&#x201d; after receiving a test, or from &#x201c;Currently treated&#x201d; to &#x201c;Diagnosed, not treated&#x201d; if they are lost from care. A pathway leading from one state to another is called a transition. Within the Cascade Analysis Tool, each transition is given a name and is defined as a function of one or more parameters.</p>
                <p>
                    <italic toggle="yes">Parameters</italic>
                </p>
                <p>Parameters are used to define the values associated with transitions in the model. In the example presented in 
                    <xref ref-type="fig" rid="f3">Figure 3</xref>, the parameters are the testing rate, the treatment initiation rate, and the loss-to-follow-up rate. A parameter can be associated with more than one transition &#x2013; for example, the background death rate applies to all individuals regardless of their disease status. When using the Cascade Analysis Tool, users have a choice of either directly entering data on these parameters, or allowing their values to be calculated as a function of other model quantities (such as other parameters) by entering formulas into the framework file. This means that complex computations and functional dependencies can be readily used. The parameterization of the transitions needs to be carefully thought out with relation to the available data.</p>
                <p>
                    <italic toggle="yes">Characteristics</italic>
                </p>
                <p>Characteristics are defined as groupings of model compartments. The most common use case would be to define each of the cascade stages as a characteristic. For example, in the model introduced in 
                    <xref ref-type="fig" rid="f3">Figure 3</xref>, we would consider &#x201c;Aware of status&#x201d; to be a characteristic of the model, since it is the sum of two compartments. Specifying characteristics is optional &#x2013; it is possible to set up a framework file that only contains compartments, transitions, and parameters &#x2013; but characteristics are a useful way of summarizing information about the distribution of people in multiple different compartments, which is an essential part of a cascade analysis.</p>
                <p>
                    <bold>
                        <italic toggle="yes">Collating data</italic>
                    </bold>. The next key step in a cascade analysis is to collate data. Data collation is specific to a particular context, and users create a 
                    <italic toggle="yes">project</italic> for encapsulating all of the data and analyses specific to that context. Creating a project requires selecting the framework that will be used as the basis for the cascade model structure, selecting the number of populations to include, and selecting the years for which data will be collected. Data entry itself is done in two Excel spreadsheets, referred to as the 
                    <italic toggle="yes">databook</italic> and the 
                    <italic toggle="yes">program book</italic>, both of which are automatically created by the Cascade Analysis Tool once a project has been created. Within the databook, users enter data on each parameter that influences the rates at which people move through the cascade, and within the program book, they enter data on the interventions that influence the parameters. The Cascade Analysis Tool comes with a library of pre-filled databooks and program books that can be immediately used for demonstration analyses. The next section on use cases illustrates the process of data entry with reference to an example.</p>
                <p>
                    <bold>
                        <italic toggle="yes">Analysis of policy questions.</italic>
                    </bold> Having completed the cascade design and gathered the data, it is possible to begin using the framework to analyze policy questions, such as those illustrated in 
                    <xref ref-type="fig" rid="f2">Figure 2</xref>. In many real-world situations, the impact of changing intervention coverage and the way in which interventions should be prioritized is not clear from an analysis of the intervention properties alone. The Cascade Analysis Tool allows users to construct scenarios and optimizations in order to quantitatively answer questions about intervention effects and priorities. Scenarios can be used within the Cascade Analysis Tool in order to assess the impact on the cascade of varying the investment or coverage level of a given intervention or modality.</p>
                <p>
                    <underline>Cascade optimization</underline>
                </p>
                <p>Although scenarios are useful for analyzing cascades and for gaining insight on the impact of scaling up or down particular interventions or modalities, in realistic settings there are a very large number of different possibilities, and it quickly becomes infeasible to rely on constructing scenarios in order to determine what investment priorities should be. This is especially difficult given that the optimal investment strategy may change from year to year. For example, it might be optimal to start by scaling up treatment initiation services until everyone in need of treatment can access it, and then to focus investments on adherence and retention strategies subsequently.</p>
                <p>The Cascade Analysis Tool contains a set of inbuilt optimization functions that can calculate the distribution of funding across service delivery modalities that results in the best possible cascade. &#x2018;Best&#x2019; can be defined by the user &#x2013; often, the aim is for as many people as possible to attain a successful outcome; in this case, the optimization algorithm would calculate the mix of investments that maximizes the proportion of the population with successful outcomes. However, it is also possible to specify different strategic goals, such as maximizing the number of people diagnosed. This functionality within the tool is primarily intended for central decision makers who are choosing the allocation of a budget. Fundamentally, the optimization system in the Cascade Analysis Tool seeks to modify the timing and funding allocation of interventions to optimize an aspect of the model outputs, subject to constraints on the changes it is allowed to make. </p>
                <p>The optimization problem is separated into three components</p>
                <list list-type="bullet">
                    <list-item>
                        <p>The objective (i.e. defining what we are trying to achieve)</p>
                    </list-item>
                    <list-item>
                        <p>The adjustment(s) (i.e., what can be adjusted, and when, in order to meet the objectives)</p>
                    </list-item>
                    <list-item>
                        <p>Constraints (i.e., what conditions must be satisfied)</p>
                    </list-item>
                </list>
                <p>Separating these components out means they can be mixed-and-matched to suit a specific optimization problem. Finally, the optimization is numerically performed using one of several algorithms selectable by the user.</p>
                <p>
                    <italic toggle="yes">Objectives (i.e., what are we trying to achieve)?</italic>
                </p>
                <p>The Cascade Analysis Tool allows the user to flexibly define objectives when designing the cascade. It also supports default options, as listed here:</p>
                <list list-type="bullet">
                    <list-item>
                        <p>Minimize the summed loss rates over each stage of the cascade</p>
                    </list-item>
                    <list-item>
                        <p>Maximize the number of people at any given stage of the cascade</p>
                    </list-item>
                    <list-item>
                        <p>Minimize the amount of funding required to meet a certain cascade target</p>
                    </list-item>
                </list>
                <p>It is possible for users to construct their own objective using any of the model&#x2019;s outputs, as well as to combine multiple objectives into a single target.</p>
                <p>
                    <italic toggle="yes">Adjustment type (i.e., what can be adjusted, and when, in order to meet the objectives)?</italic>
                </p>
                <p>The adjustments for an optimization are a specification of what is allowed to be changed in the model in order to achieve the optimal result. The Cascade Analysis Tool has several default options for possible adjustments</p>
                <list list-type="bullet">
                    <list-item>
                        <p>Immediate one-off allocation change: we ask what share of the annual budget should be allocated to each intervention in order to meet the objectives, subject to any constraints (see section below). The share of the budget allocated to each intervention is assumed to be constant over time, and we assume that the allocation of the budget can change immediately.</p>
                    </list-item>
                    <list-item>
                        <p>Delayed one-off allocation change: we ask what share of the annual budget should be allocated to each intervention in order to meet the objectives, subject to any constraints (see section below). The share of the budget allocated to each intervention is assumed to be constant over time, and we assume that the allocation of the budget can only change after a given year (for example, perhaps change can only take effect in the next planning phase).</p>
                    </list-item>
                    <list-item>
                        <p>Ongoing (time-varying) allocation changes: we ask what share of the annual budget should be allocated to each intervention in order to meet the objectives, subject to any constraints (see section below). The share of the budget allocated to each intervention is allowed to vary over time, according to a schedule defined by the user (for example, it may be possible to change the allocation every year, or every three years, etc.).  </p>
                    </list-item>
                    <list-item>
                        <p>Start-year optimization: rather than varying the share of the budget allocated to each intervention, in this case we seek the optimal timing of making a budget reallocation, subject to any constraints (see section below).</p>
                    </list-item>
                </list>
                <p>
                    <italic toggle="yes">Constraints (i.e., what conditions must be satisfied)?</italic>
                </p>
                <p>Constraints limit possible options when optimizing. They serve as requirements that must be met by any proposed solution. The Cascade Analysis Tool has two principal types of constraint:</p>
                <list list-type="bullet">
                    <list-item>
                        <p>Constraints on individual adjustments: These typically set minimum or maximum amounts of funding that can be allocated to each intervention independently. These may be constant, or they may vary over time when optimizing scale-up or scale-down scenarios.</p>
                    </list-item>
                    <list-item>
                        <p>Constraining the total budget: there is an overall fixed budget, which is either assumed to be constant over time, or allowed to vary over time (e.g., annually).</p>
                    </list-item>
                </list>
                <p>
                    <italic toggle="yes">Optimization algorithms</italic>
                </p>
                <p>After defining the optimization, the tool produces an objective function that can be used to perform the numerical optimization using one of several different algorithms. The Cascade Analysis Tool has built-in support for the following algorithms:</p>
                <list list-type="bullet">
                    <list-item>
                        <p>Adaptive Stochastic Descent (ASD) implemented by the 
                            <italic toggle="yes">sciris</italic> Python package. This is a gradient-descent type optimizer that performs well at finding local minima.</p>
                    </list-item>
                    <list-item>
                        <p>Particle swarm optimization (PSO) implemented by the 
                            <italic toggle="yes">pyswarm</italic> Python package. This algorithm is computationally expensive but is more robust than ASD in the presence of multiple local-minima.</p>
                    </list-item>
                    <list-item>
                        <p>Bayesian Optimization implemented by the 
                            <italic toggle="yes">hyperopt</italic> Python package. This method balances exploration of global and local minima, and it is designed to work with expensive objective functions. It is less computationally expensive than PSO and is likely to locate the correct local minimum faster than ASD, although after finding it, it is typically slower to converge to the final optimal solution.</p>
                    </list-item>
                </list>
                <p>The design of the optimization system facilitates its use with general third-party optimization packages, which makes it easy to switch algorithms and compare different depending on their suitability to the specific problem at hand.</p>
            </sec>
        </sec>
        <sec>
            <title>Use cases</title>
            <p>To illustrate the process of creating a model in the Cascade Analysis Tool, we will construct a hypertension cascade. This cascade is included in the library of demonstration projects available in the Cascade Analysis Tool.</p>
            <sec>
                <title>Designing the cascade</title>
                <p>To begin, we need to define the structure of the hypertension model. We consider four disease stages &#x2013; undiagnosed, diagnosed, on treatment, and successfully controlled.</p>
                <p>Next, we consider the possible transitions in the model. People begin in the undiagnosed compartment, and then they progress sequentially through the compartments. Once an individual is diagnosed, they cannot lose their diagnosed status, so there is no transition from diagnosed back to undiagnosed. However, an individual on treatment (or with successfully controlled hypertension) may discontinue treatment, so we include a transition from treatment/controlled back to diagnosed to account for this. An individual may die at any stage, so all compartments also have outflows associated with death &#x2013; typically, the net death rate would be higher for compartments where individuals have untreated hypertension.</p>
            </sec>
            <sec>
                <title>Collating data</title>
                <p>
                    <bold>
                        <italic toggle="yes">Data entry in the databook.</italic>
                    </bold> We construct a hypothetical example loosely based on a study of 28891 adults in Malawi conducted between May 16, 2013, and Feb 8, 2016
                    <sup>
                        <xref ref-type="bibr" rid="ref-22">22</xref>
                    </sup>, which identified 4096 people with hypertension, of which 1708 were aware of their status, 1183 were receiving treatment, and 440 had controlled blood pressure. We assume these numbers describe the state of the hypertension cascade in 2016 (
                    <xref ref-type="fig" rid="f4">Figure 4a</xref>), and that we want to estimate the state of the cascade in 2017.</p>
                <fig fig-type="figure" id="f4" orientation="portrait" position="float">
                    <label>Figure 4. </label>
                    <caption>
                        <title>(Panel A) Input data on the state of the hypertension cascade; (Panel b) Illustrative hypertension cascade model with flow rates described in blue text; (Panel C) Cascade representation of the hypertension model with the 2016 values as per the input data and the 2017 values derived from applying the flow rates in Panel B.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure4.gif"/>
                </fig>
                <p>For flow rates, we assume an incidence rate of 72 per 1000 person-years (averaging the values for reported in 
                    <xref ref-type="bibr" rid="ref-23">23</xref>,
                    <xref ref-type="bibr" rid="ref-24">24</xref>), which gives 255 new cases/year. Next, we set the mortality rate to 18.8/1000, reduced to 13.3/1000 for those with blood pressure control (taken from 
                    <xref ref-type="bibr" rid="ref-25">25</xref>), which implies 75 deaths annually among the study population. Combining these estimates of incidence and mortality implies that the total number of people with hypertension increases by 255-75=180 annually, or 4.4%, consistent with an increasing epidemic. We further assume that the hypertension cascade is in a steady state such that the relative proportions of people in each cascade stage are constant over time, which implies that the number of people in each cascade stage will increase by 4.4% each year. This assumption allows us to solve for flow rates between the hypertension care cascade stages over time and to estimate the number of people in each cascade stage in 2017, depicted in 
                    <xref ref-type="fig" rid="f4">Figure 4</xref>. These data and assumptions are then entered into the databook (
                    <xref ref-type="fig" rid="f5">Figure 5</xref>).</p>
                <fig fig-type="figure" id="f5" orientation="portrait" position="float">
                    <label>Figure 5. </label>
                    <caption>
                        <title>Illustration of the data entry book for the hypertension example depicted in 
                            <xref ref-type="fig" rid="f4">Figure 4</xref>.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure5.gif"/>
                </fig>
                <p>Although we have illustrated values for a single year in this example, the databook supports entering values at multiple time points. Complex models may have many more compartments and parameters, and we have tested the software with highly complex models with ~ 30 compartments and ~150 parameters to verify scalability.</p>
                <p>
                    <bold>
                        <italic toggle="yes">Data entry in the program book.</italic>
                    </bold> One of the key purposes of a cascade analysis is to understand how various different interventions affect the state of the cascade. In our hypertension cascade example, it would be reasonable to expect that several of the variables that affected the movement of people through the cascade are dependent on interventions that determine the testing, treatment initiation, treatment success, and loss-to follow-up rates.</p>
                <p>An essential part of the data collation and curation stage involves assembling a list of the interventions that are likely to have an impact on the cascade. We now illustrate how the programmatic data are used by continuing the hypertension example, supplemented with some assumptions on programmatic data.</p>
                <p>We will suppose that people are diagnosed with hypertension after receiving blood pressure tests, and that 2580 such tests were conducted in 2016, either through pharmacies (which we assume provide 55% of tests at a unit cost of $5 and with yield of 3.5%), in clinics (which we assume provide 40% of tests at a unit cost of $20 and with yield of 3.5%), or via an outreach program (which we assume provide the remaining 5% of tests at a unit cost of $15 and with yield of 15%). We suppose that people are initiated onto treatment either immediately after diagnosis (with 20% of those diagnosed at pharmacies, 90% of those diagnosed in clinics, and 70% of those diagnosed via outreach programs being immediately initiated onto treatment), or else people are offered treatment and lifestyle counseling at a unit cost of $25. We also suppose that there is an adherence and lifestyle counseling program to assist those on treatment without blood pressure control (operating at a unit cost of $25 and with 30% of those counseled attaining blood pressure control within 3 months), and retention enhancement initiatives (such as automatic prescription refills, text message reminders for taking medication, or dietary support programs) to counteract loss to follow-up, which increase treatment retention from 88% to 96% at a unit cost per person counseled of $25. Based on what we know about the flow rates through the cascade from 
                    <xref ref-type="fig" rid="f4">Figure 4</xref> and these assumptions about hypothetical programmatic effects, we obtain the programmatic summary documented in 
                    <xref ref-type="table" rid="T1">Table 1</xref>.</p>
                <table-wrap id="T1" orientation="portrait" position="anchor">
                    <label>Table 1. </label>
                    <caption>
                        <title>Illustrative data on interventions for the hypertension example presented in 
                            <xref ref-type="fig" rid="f4">Figure 4</xref>.</title>
                    </caption>
                    <table content-type="article-table" frame="hsides">
                        <thead>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">Intervention</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Target cascade
                                    <break/>stage</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Number
                                    <break/>covered</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Unit
                                    <break/>cost</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Baseline
                                    <break/>investment
                                    <xref ref-type="other" rid="fn1">*</xref>
                                </th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Impact</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Pharmacy testing</td>
                                <td colspan="1" rowspan="1" valign="top">Undiagnosed</td>
                                <td colspan="1" rowspan="1" valign="top">1,430 tested</td>
                                <td colspan="1" rowspan="1" valign="top">$5</td>
                                <td colspan="1" rowspan="1" valign="top">$7,150</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;50 diagnosed (3.5% yield)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;20% start treatment (10 people)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Clinic testing</td>
                                <td colspan="1" rowspan="1" valign="top">Undiagnosed</td>
                                <td colspan="1" rowspan="1" valign="top">1,000 tested</td>
                                <td colspan="1" rowspan="1" valign="top">$20</td>
                                <td colspan="1" rowspan="1" valign="top">$20,000</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;35 diagnosed (3.5% yield)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;90% start treatment (32 people)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Outreach testing</td>
                                <td colspan="1" rowspan="1" valign="top">Undiagnosed</td>
                                <td colspan="1" rowspan="1" valign="top">150 tested</td>
                                <td colspan="1" rowspan="1" valign="top">$15</td>
                                <td colspan="1" rowspan="1" valign="top">$2,250</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;22 diagnosed (15% yield)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;70% start treatment (16 people)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Treatment &amp; lifestyle
                                    <break/>counseling</td>
                                <td colspan="1" rowspan="1" valign="top">Diagnosed, not
                                    <break/>treated</td>
                                <td colspan="1" rowspan="1" valign="top">110 counseled</td>
                                <td colspan="1" rowspan="1" valign="top">$25</td>
                                <td colspan="1" rowspan="1" valign="top">$2,750</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;All those counseled start
                                    <break/>treatment (110 people)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Adherence &amp;
                                    <break/>lifestyle counseling</td>
                                <td colspan="1" rowspan="1" valign="top">Treated, not
                                    <break/>controlled</td>
                                <td colspan="1" rowspan="1" valign="top">200 counseled</td>
                                <td colspan="1" rowspan="1" valign="top">$25</td>
                                <td colspan="1" rowspan="1" valign="top">$5,000</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;30% of those counseled attain
                                    <break/>blood pressure control within
                                    <break/>3 months (60 people)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Retention
                                    <break/>enhancement
                                    <break/>initiatives</td>
                                <td colspan="1" rowspan="1" valign="top">All treated </td>
                                <td colspan="1" rowspan="1" valign="top">600 covered</td>
                                <td colspan="1" rowspan="1" valign="top">$25</td>
                                <td colspan="1" rowspan="1" valign="top">$15,000</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;96% treatment retention vs
                                    <break/>88% among those not covered
                                    <break/>(95 people lost)</td>
                            </tr>
                        </tbody>
                    </table>
                    <table-wrap-foot>
                        <fn>
                            <p id="fn1">*Baseline investment is calculated here by multiplying the number of people covered by the unit cost.</p>
                        </fn>
                    </table-wrap-foot>
                </table-wrap>
            </sec>
            <sec>
                <title>Analysis of policy questions</title>
                <p>
                    <bold>
                        <italic toggle="yes">Case scenarios.</italic>
                    </bold> To illustrate the use of scenarios, we consider six different scenarios in which an additional $10,000 is allocated to each of the six interventions indicated in 
                    <xref ref-type="table" rid="T1">Table 1</xref> and calculate the impact that this would have on the hypertension cascade introduced in 
                    <xref ref-type="fig" rid="f4">Figure 4</xref>. These scenarios are presented in 
                    <xref ref-type="table" rid="T2">Table 2</xref> and 
                    <xref ref-type="fig" rid="f6">Figure 6</xref>.</p>
                <table-wrap id="T2" orientation="portrait" position="anchor">
                    <label>Table 2. </label>
                    <caption>
                        <title>Illustrative scenarios showing different intervention scale-up options, based on the treatment cascade introduced in 
                            <xref ref-type="fig" rid="f3">Figure 3</xref>.</title>
                    </caption>
                    <table content-type="article-table" frame="hsides">
                        <thead>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">Intervention to
                                    <break/>scale up</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Scaled-up
                                    <break/>budget</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Number
                                    <break/>covered</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Impact</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Cascade in 2017
                                    <break/>(% improvement over
                                    <break/>baseline)</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Pharmacy testing</td>
                                <td colspan="1" rowspan="1" valign="top">$17,150</td>
                                <td colspan="1" rowspan="1" valign="top">3,430 tested</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;120 diagnosed
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;24 start treatment</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1853 (4%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1249 (1%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 459 (-)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Clinic testing</td>
                                <td colspan="1" rowspan="1" valign="top">$30,000</td>
                                <td colspan="1" rowspan="1" valign="top">1,500 tested</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;53 diagnosed
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;48 start treatment</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1800 (1%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1247 (1%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 459 (-)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Outreach testing</td>
                                <td colspan="1" rowspan="1" valign="top">$12,250</td>
                                <td colspan="1" rowspan="1" valign="top">817 tested</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;122 diagnosed
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;86 start treatment </td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1883 (6%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1305 (6%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 459 (-)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Treatment &amp; lifestyle
                                    <break/>counseling</td>
                                <td colspan="1" rowspan="1" valign="top">$12,750</td>
                                <td colspan="1" rowspan="1" valign="top">510 counseled</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;510 start treatment </td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1783 (-)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1635 (32%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 459 (-)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Adherence &amp; lifestyle
                                    <break/>counseling</td>
                                <td colspan="1" rowspan="1" valign="top">$15,000</td>
                                <td colspan="1" rowspan="1" valign="top">600 counseled</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;180 attain control</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1783 (-)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1235 (-)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 579 (26%)</td>
                            </tr>
                            <tr>
                                <td colspan="1" rowspan="1" valign="top">Retention
                                    <break/>enhancement
                                    <break/>initiatives</td>
                                <td colspan="1" rowspan="1" valign="top">$25,000</td>
                                <td colspan="1" rowspan="1" valign="top">1000 covered</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;62 lost to follow-up</td>
                                <td colspan="1" rowspan="1" valign="top">&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Diagnosed: 1853 (-)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Treated: 1268 (3%)
                                    <break/>&#x2022;&#x00a0;&#x00a0;&#x00a0;&#x00a0;Controlled: 472 (3%)</td>
                            </tr>
                        </tbody>
                    </table>
                </table-wrap>
                <fig fig-type="figure" id="f6" orientation="portrait" position="float">
                    <label>Figure 6. </label>
                    <caption>
                        <title>The state of the illustrative hypertension cascade in 2017 under the 6 different scale-up options presented in 
                            <xref ref-type="table" rid="T2">Table 2</xref>.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure6.gif"/>
                </fig>
                <p>
                    <bold>
                        <italic toggle="yes">Optimization.</italic>
                    </bold> The objectives, adjustables, constraints, and optimization algorithms can be flexibly combined by users of the Cascade Analysis Tool. To illustrate the concept of cascade optimization, we return to our hypertension example, where we have an additional $10,000 to improve some cascade outcome. 
                    <xref ref-type="fig" rid="f7">Figure 7</xref> indicates that the best way to spend these additional funds depends on the objective: if we want to maximize the number of people with blood pressure control, the highest priorities are to scale up the adherence &amp; lifestyle counseling program; if we want to maximize the number of people diagnosed, then the outreach testing program is prioritized; and if we want to minimize losses across the whole cascade, the treatment &amp; lifestyle counseling program is prioritized. Here, the 
                    <italic toggle="yes">adjustment type</italic> falls under the heading &#x201c;immediate one-off allocation change&#x201d;, since we wish to immediately allocate the additional funds and there are no defined constraints.</p>
                <fig fig-type="figure" id="f7" orientation="portrait" position="float">
                    <label>Figure 7. </label>
                    <caption>
                        <title>Optimal allocations for achieving difference targets related to the illustrative hypertension example.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://gatesopenresearch-files.f1000.com/manuscripts/14141/3228e637-3e5d-44ea-b251-fd222a7c289e_figure7.gif"/>
                </fig>
                <p>We provide three additional examples of optimization problems:</p>
                <list list-type="bullet">
                    <list-item>
                        <label>1. </label>
                        <p>The national government is trying to determine an optimal investment strategy for the HIV response in order to get as close as possible to the target of having 86% of people virally suppressed by 2030 (in line with international targets of having 95% of people with HIV diagnosed, 95% of those diagnosed receiving treatment, and 95% of those treated virally suppressed). The country&#x2019;s treatment program is currently funded by international donors, who have already announced their investment strategy and will begin gradually defunding the treatment program starting in 2021. The government is committed to providing ongoing care for those already on treatment, so the government&#x2019;s allocation to the treatment will need to increase to match current levels. In this case:</p>
                        <list list-type="bullet">
                            <list-item>
                                <label>a. </label>
                                <p>the 
                                    <italic toggle="yes">objective</italic> is to maximize the number of people in the final stage of the cascade;</p>
                            </list-item>
                            <list-item>
                                <label>b. </label>
                                <p>the 
                                    <italic toggle="yes">adjustment type</italic> falls under the heading &#x201c;ongoing (time-varying) allocation changes&#x201d;, since the government can change the allocation of funding for the HIV response annually between now and 2030; and,</p>
                            </list-item>
                            <list-item>
                                <label>c. </label>
                                <p>the 
                                    <italic toggle="yes">constraints</italic> are the overall budget in each year, plus the additional constraint that the allocation to the treatment program needs to match current levels after international funders have withdrawn.</p>
                            </list-item>
                        </list>
                    </list-item>
                    <list-item>
                        <label>2. </label>
                        <p>The national government wants to run a large-scale diabetes screening campaign to get 100,000 people screened within the next year. There are several different service delivery modalities for the screening program (e.g., screening through primary health clinics, workplace programs, community outreach programs, and pharmacies). In this case:</p>
                        <list list-type="bullet">
                            <list-item>
                                <label>a. </label>
                                <p>the 
                                    <italic toggle="yes">objective</italic> is to minimize the budget required to attain the target of 100,000 people screened;</p>
                            </list-item>
                            <list-item>
                                <label>b. </label>
                                <p>the 
                                    <italic toggle="yes">adjustment type</italic> falls under the heading &#x201c;immediate one-off allocation change&#x201d;; and,</p>
                            </list-item>
                            <list-item>
                                <label>c. </label>
                                <p>there are no defined constraints.</p>
                            </list-item>
                        </list>
                    </list-item>
                    <list-item>
                        <label/>
                        <p>The government is considering a program, to be launched in 2022, to improve the overall cascade of care for pregnant women. In this case:</p>
                        <list list-type="bullet">
                            <list-item>
                                <label>a. </label>
                                <p>the 
                                    <italic toggle="yes">objective</italic> might be to minimize losses along the cascade;</p>
                            </list-item>
                            <list-item>
                                <label>b. </label>
                                <p>the 
                                    <italic toggle="yes">adjustment type</italic> falls under the heading delayed one-off allocation change&#x201d;; and,</p>
                            </list-item>
                            <list-item>
                                <label>c. </label>
                                <p>there may be an overall budget constraint, or other defined constraints such as ensuring minimum funding levels for other programs. For example, it could be specified that funding for the new program can only be taken from new funds plus partial redirection of resources from certain programs while not changing funding for others.</p>
                            </list-item>
                        </list>
                    </list-item>
                </list>
                <p>The objectives, adjustables, constraints, and optimization algorithms can be flexibly combined by users of the Cascade Analysis Tool.</p>
            </sec>
        </sec>
        <sec sec-type="discussion">
            <title>Discussion</title>
            <p>For complex cascades, it is difficult to determine which programs have the greatest marginal impact. This is especially true when interventions do not target the same populations, do not have the same type of effects, and/or do not have simple linear cost functions. In many cases, the impact of a resource allocation on the cascade may not be known 
                <italic toggle="yes">a priori</italic>. Moreover, when a large number of interventions are involved, the combinatorial explosion of possible budgets makes it computationally infeasible to explore different possible funding combinations using an undirected approach. Previous studies have already shown that targeting investment to the right combination of effective service delivery modalities across the cascade can lead to greatly improved outcomes
                <sup>
                    <xref ref-type="bibr" rid="ref-21">21</xref>,
                    <xref ref-type="bibr" rid="ref-26">26</xref>
                </sup>. The Cascade Analysis Tool can help make practical recommendations for how to improve cascade outcomes by making use of the increasing quantities of available raw data on the costs, coverage, and impact of health and development interventions. Given the generality of the approach, there is potential for gains to be identified across any number of application areas.</p>
            <p>We have taken several steps to encourage the adoption of our framework for cascade analysis. Firstly, we have implemented the processes for using the generalized framework in an Open Access software package, developed in Python and available via 
                <ext-link ext-link-type="uri" xlink:href="https://github.com/atomicateam/atomica/">GitHub</ext-link>. Secondly, we have included several simple pre-designed cascades in the software package. Thirdly, we have developed a 
                <ext-link ext-link-type="uri" xlink:href="http://ui.cascade.tools/">graphical user interface</ext-link>. A 
                <ext-link ext-link-type="uri" xlink:href="https://cascade.tools/">website</ext-link> with additional information and a 
                <ext-link ext-link-type="uri" xlink:href="https://cascade.tools/user-guide">user guide</ext-link> are also available. Finally, we have run three training workshops (in Bucharest, Bangkok, and Pretoria) as part of the World Bank&#x2019;s 2018 Skills Building Program (themed &#x201c;Big Data, Artificial Intelligence and Decision Science in Health and Nutrition&#x201d;), where we trained approximately 100 users (predominantly representatives from ministries of health, development agencies, and local academic institutions).</p>
            <p>Whilst the Cascade Analysis Tool is still in the early stages of existence, we believe there is potential for it to help make sense of the increasing quantities of data on cascades. Furthermore, we hope that the existence of this tool will help motivate the collection of even more data, so that results-based evaluation can continue to guide the decision-making processes in health and development in the future.</p>
        </sec>
        <sec>
            <title>Data availability</title>
            <p>All data underlying the results are available as part of the article and no additional source data are required.</p>
        </sec>
        <sec>
            <title>Software availability</title>
            <list list-type="bullet">
                <list-item>
                    <label>- </label>
                    <p>Software available at: 
                        <ext-link ext-link-type="uri" xlink:href="http://ui.cascade.tools/">http://ui.cascade.tools/</ext-link>
                    </p>
                </list-item>
                <list-item>
                    <label>- </label>
                    <p>Source code available from: 
                        <ext-link ext-link-type="uri" xlink:href="https://github.com/atomicateam/atomica">https://github.com/atomicateam/atomica</ext-link>
                    </p>
                </list-item>
                <list-item>
                    <label>- </label>
                    <p>Archived source code at time of publication: 
                        <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.3137154">https://doi.org/10.5281/zenodo.3137154</ext-link>
                        <sup>
                            <xref ref-type="bibr" rid="ref-27">27</xref>
                        </sup>
                    </p>
                </list-item>
                <list-item>
                    <label>- </label>
                    <p>License: 
                        <ext-link ext-link-type="uri" xlink:href="https://github.com/atomicateam/atomica/blob/develop/LICENSE">GNU General Public License v3.0</ext-link>
                    </p>
                </list-item>
            </list>
        </sec>
    </body>
    <back>
        <ref-list>
            <ref id="ref-1">
                <label>1</label>
                <mixed-citation publication-type="journal">
                    <collab>OECD</collab>:
                    <article-title>The Paris Declaration on Aid Effectiveness</article-title>.<year>2005</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.oecd.org/dac/effectiveness/34428351.pdf">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-2">
                <label>2</label>
                <mixed-citation publication-type="journal">
                    <collab>OECD</collab>:
                    <article-title>The Accra Agenda For Action, 3rd High Level Forum on Aid Effectiveness</article-title>.<year>2008</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=7&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjOp8XPuMDiAhVGWH0KHdhqDe0QFjAGegQIABAC&amp;url=http%3A%2F%2Fmdtf.undp.org%2Fdocument%2Fdownload%2F1&amp;usg=AOvVaw25EdpAdJazEuz0tyIrfDM7">Reference Source</ext-link>
                </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>Biscaye</surname>
                            <given-names>P</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>LaFayette</surname>
                            <given-names>M</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Martin</surname>
                            <given-names>A</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Evaluating Donor-Level Results Measurement Systems</article-title>. In
                    <italic toggle="yes">EPAR Technical report</italic>. Evans School of Public Policy and Governance,<year>2015</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://evans.uw.edu/policy-impact/epar/research/evaluating-donor-level-results-measurement-systems">Reference Source</ext-link>
                </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>Piot</surname>
                            <given-names>M</given-names>
                        </name>
			</person-group>:
                    <article-title>A Simulation model of case finding and treatment in tuberculosis control programmes</article-title>. In WHO Global Tuberculosis Programme. World Health Organization: Geneva<year>1967</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://apps.who.int/iris/bitstream/handle/10665/69827/WHO_TB_Techn_Information_67.53_eng.pdf?sequence=1&amp;isAllowed=y">Reference Source</ext-link>
                </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>Gardner</surname>
                            <given-names>EM</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>McLees</surname>
                            <given-names>MP</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Steiner</surname>
                            <given-names>JF</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>The spectrum of engagement in HIV care and its relevance to test-and-treat strategies for prevention of HIV infection.</article-title>
                    <source>
				
                        <italic toggle="yes">Clin Infect Dis.</italic>
			</source>
                    <year>2011</year>;<volume>52</volume>(<issue>6</issue>):<fpage>793</fpage>&#x2013;<lpage>800</lpage>.
                    <pub-id pub-id-type="pmid">21367734</pub-id>
                    <pub-id pub-id-type="doi">10.1093/cid/ciq243</pub-id>
                    <pub-id pub-id-type="pmcid">3106261</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Kilmarx</surname>
                            <given-names>PH</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Mutasa-Apollo</surname>
                            <given-names>T</given-names>
                        </name>
			</person-group>:
                    <article-title>Patching a leaky pipe: the cascade of HIV care.</article-title>
                    <source>
				
                        <italic toggle="yes">Curr Opin HIV AIDS.</italic>
			</source>
                    <year>2013</year>;<volume>8</volume>(<issue>1</issue>):<fpage>59</fpage>&#x2013;<lpage>64</lpage>.
                    <pub-id pub-id-type="pmid">23211779</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Gaolathe</surname>
                            <given-names>T</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Wirth</surname>
                            <given-names>KE</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Holme</surname>
                            <given-names>MP</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Botswana's progress toward achieving the 2020 UNAIDS 90-90-90 antiretroviral therapy and virological suppression goals: a population-based survey.</article-title>
                    <source>
				
                        <italic toggle="yes">Lancet HIV.</italic>
			</source>
                    <year>2016</year>;<volume>3</volume>(<issue>5</issue>):<fpage>e221</fpage>&#x2013;<lpage>e230</lpage>.
                    <pub-id pub-id-type="pmid">27126489</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S2352-3018(16)00037-0</pub-id>
                    <pub-id pub-id-type="pmcid">5146754</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-8">
                <label>8</label>
                <mixed-citation publication-type="journal">
                    <collab>UNAIDS</collab>:
                    <article-title>Ending AIDS: progress towards the 90-90-90 targets.</article-title>Geneva,<year>2017</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.unaids.org/sites/default/files/media_asset/Global_AIDS_update_2017_en.pdf">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-9">
                <label>9</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Stop</surname>
                            <given-names>TB</given-names>
                        </name>
			</person-group>:
                    <article-title>Global Plan To End TB 2016-2020</article-title>.<year>2015</year>.
                    <ext-link ext-link-type="uri" xlink:href="http://www.stoptb.org/global/plan/plan2/">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-10">
                <label>10</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Alsdurf</surname>
                            <given-names>H</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Hill</surname>
                            <given-names>PC</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Matteelli</surname>
                            <given-names>A</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>The cascade of care in diagnosis and treatment of latent tuberculosis infection: a systematic review and meta-analysis.</article-title>
                    <source>
				
                        <italic toggle="yes">Lancet Infect Dis.</italic>
			</source>
                    <year>2016</year>;<volume>16</volume>(<issue>11</issue>):<fpage>1269</fpage>&#x2013;<lpage>1278</lpage>.
                    <pub-id pub-id-type="pmid">27522233</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S1473-3099(16)30216-X</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-11">
                <label>11</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Naidoo</surname>
                            <given-names>P</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Theron</surname>
                            <given-names>G</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Rangaka</surname>
                            <given-names>MX</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>The South African Tuberculosis Care Cascade: Estimated Losses and Methodological Challenges.</article-title>
                    <source>
				
                        <italic toggle="yes">J Infect Dis.</italic>
			</source>
                    <year>2017</year>;<volume>216</volume>(<issue>suppl_7</issue>):<fpage>S702</fpage>&#x2013;<lpage>s713</lpage>.
                    <pub-id pub-id-type="pmid">29117342</pub-id>
                    <pub-id pub-id-type="doi">10.1093/infdis/jix335</pub-id>
                    <pub-id pub-id-type="pmcid">5853316</pub-id>
                </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>Subbaraman</surname>
                            <given-names>R</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Nathavitharana</surname>
                            <given-names>RR</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Satyanarayana</surname>
                            <given-names>S</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>The Tuberculosis Cascade of Care in India's Public Sector: A Systematic Review and Meta-analysis.</article-title>
                    <source>
				
                        <italic toggle="yes">PLoS Med.</italic>
			</source>
                    <year>2016</year>;<volume>13</volume>(<issue>10</issue>):<fpage>e1002149</fpage>.
                    <pub-id pub-id-type="pmid">27780217</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pmed.1002149</pub-id>
                    <pub-id pub-id-type="pmcid">5079571</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>Ali</surname>
                            <given-names>MK</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Bullard</surname>
                            <given-names>KM</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Gregg</surname>
                            <given-names>EW</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>A cascade of care for diabetes in the United States: visualizing the gaps.</article-title>
                    <source>
				
                        <italic toggle="yes">Ann Intern Med.</italic>
			</source>
                    <year>2014</year>;<volume>161</volume>(<issue>10</issue>):<fpage>681</fpage>&#x2013;<lpage>689</lpage>.
                    <pub-id pub-id-type="pmid">25402511</pub-id>
                    <pub-id pub-id-type="doi">10.7326/M14-0019</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-14">
                <label>14</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Stokes</surname>
                            <given-names>A</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Berry</surname>
                            <given-names>KM</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Mchiza</surname>
                            <given-names>Z</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Prevalence and unmet need for diabetes care across the care continuum in a national sample of South African adults: Evidence from the SANHANES-1, 2011-2012.</article-title>
                    <source>
				
                        <italic toggle="yes">PLoS One.</italic>
			</source>
                    <year>2017</year>;<volume>12</volume>(<issue>10</issue>):<fpage>e0184264</fpage>.
                    <pub-id pub-id-type="pmid">28968435</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pone.0184264</pub-id>
                    <pub-id pub-id-type="pmcid">5624573</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-15">
                <label>15</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Linas</surname>
                            <given-names>BP</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Barter</surname>
                            <given-names>DM</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Leff</surname>
                            <given-names>JA</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>The hepatitis C cascade of care: identifying priorities to improve clinical outcomes.</article-title>
                    <source>
				
                        <italic toggle="yes">PLoS One.</italic>
			</source>
                    <year>2014</year>;<volume>9</volume>(<issue>5</issue>):<fpage>e97317</fpage>.
                    <pub-id pub-id-type="pmid">24842841</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pone.0097317</pub-id>
                    <pub-id pub-id-type="pmcid">4026319</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-16">
                <label>16</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Murphy</surname>
                            <given-names>RD</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Wohl</surname>
                            <given-names>AR</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Ma</surname>
                            <given-names>Y</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Adaptation of the HIV Care Continuum as a Method for Evaluating Syphilis and Gonorrhea Disease Control Activities in Los Angeles County.</article-title>
                    <source>
				
                        <italic toggle="yes">Sex Transm Dis.</italic>
			</source>
                    <year>2015</year>;<volume>42</volume>(<issue>12</issue>):<fpage>686</fpage>&#x2013;<lpage>90</lpage>.
                    <pub-id pub-id-type="pmid">26562697</pub-id>
                    <pub-id pub-id-type="doi">10.1097/OLQ.0000000000000366</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-17">
                <label>17</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Perlman</surname>
                            <given-names>DC</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Jordan</surname>
                            <given-names>AE</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Nash</surname>
                            <given-names>D</given-names>
                        </name>
			</person-group>:
                    <article-title>Conceptualizing Care Continua: Lessons from HIV, Hepatitis C Virus, Tuberculosis and Implications for the Development of Improved Care and Prevention Continua.</article-title>
                    <source>
				
                        <italic toggle="yes">Front Public Health.</italic>
			</source>
                    <year>2017</year>;<volume>4</volume>:<fpage>296</fpage>.
                    <pub-id pub-id-type="pmid">28119910</pub-id>
                    <pub-id pub-id-type="doi">10.3389/fpubh.2016.00296</pub-id>
                    <pub-id pub-id-type="pmcid">5222805</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-18">
                <label>18</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Socias</surname>
                            <given-names>ME</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Volkow</surname>
                            <given-names>N</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Wood</surname>
                            <given-names>E</given-names>
                        </name>
			</person-group>:
                    <article-title>Adopting the 'cascade of care' framework: an opportunity to close the implementation gap in addiction care?</article-title>
                    <source>
				
                        <italic toggle="yes">Addiction.</italic>
			</source>
                    <year>2016</year>;<volume>111</volume>(<issue>12</issue>):<fpage>2079</fpage>&#x2013;<lpage>2081</lpage>.
                    <pub-id pub-id-type="pmid">27412876</pub-id>
                    <pub-id pub-id-type="doi">10.1111/add.13479</pub-id>
                    <pub-id pub-id-type="pmcid">5321168</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-19">
                <label>19</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Williams</surname>
                            <given-names>AR</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Nunes</surname>
                            <given-names>E</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Olfson</surname>
                            <given-names>M</given-names>
                        </name>
			</person-group>:
                    <article-title>To Battle The Opioid Overdose Epidemic, Deploy The &#x2018;Cascade Of Care&#x2019; Model</article-title>. In
                    <italic toggle="yes">Health Affairs Blog</italic>.<year>2017</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.healthaffairs.org/do/10.1377/hblog20170313.059163/full/">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-20">
                <label>20</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Lessard</surname>
                            <given-names>L</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Fournier</surname>
                            <given-names>L</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Gauthier</surname>
                            <given-names>J</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Continuum of care for persons with common mental health disorders in Nunavik: a descriptive study.</article-title>
                    <source>
				
                        <italic toggle="yes">Int J Circumpolar Health.</italic>
			</source>
                    <year>2015</year>;<volume>74</volume>(<issue>1</issue>):<fpage>27186</fpage>.
                    <pub-id pub-id-type="pmid">25979200</pub-id>
                    <pub-id pub-id-type="doi">10.3402/ijch.v74.27186</pub-id>
                    <pub-id pub-id-type="pmcid">4433488</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-21">
                <label>21</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Olney</surname>
                            <given-names>JJ</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Braitstein</surname>
                            <given-names>P</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Eaton</surname>
                            <given-names>JW</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Evaluating strategies to improve HIV care outcomes in Kenya: a modelling study.</article-title>
                    <source>
				
                        <italic toggle="yes">Lancet HIV.</italic>
			</source>
                    <year>2016</year>;<volume>3</volume>(<issue>12</issue>):<fpage>e592</fpage>&#x2013;<lpage>e600</lpage>.
                    <pub-id pub-id-type="pmid">27771231</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S2352-3018(16)30120-5</pub-id>
                    <pub-id pub-id-type="pmcid">5121132</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-22">
                <label>22</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Price</surname>
                            <given-names>AJ</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Crampin</surname>
                            <given-names>AC</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Amberbir</surname>
                            <given-names>A</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Prevalence of obesity, hypertension, and diabetes, and cascade of care in sub-Saharan Africa: a cross-sectional, population-based study in rural and urban Malawi.</article-title>
                    <source>
				
                        <italic toggle="yes">Lancet Diabetes Endocrinol.</italic>
			</source>
                    <year>2018</year>;<volume>6</volume>(<issue>3</issue>):<fpage>208</fpage>&#x2013;<lpage>222</lpage>.
                    <pub-id pub-id-type="pmid">29371076</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S2213-8587(17)30432-1</pub-id>
                    <pub-id pub-id-type="pmcid">5835666</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-23">
                <label>23</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Hajjar</surname>
                            <given-names>I</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Kotchen</surname>
                            <given-names>JM</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname> Kotchen</surname>
                            <given-names>TA</given-names>
                        </name>
			</person-group>:
                    <article-title>Hypertension: trends in prevalence, incidence, and control.</article-title>
                    <source>
				
                        <italic toggle="yes">Annu Rev Public Health.</italic>
			</source>
                    <year>2006</year>;<volume>27</volume>(<issue>1</issue>):<fpage>465</fpage>&#x2013;<lpage>490</lpage>.
                    <pub-id pub-id-type="pmid">16533126</pub-id>
                    <pub-id pub-id-type="doi">10.1146/annurev.publhealth.27.021405.102132</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-24">
                <label>24</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Diez Roux</surname>
                            <given-names>AV</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Chambless</surname>
                            <given-names>L</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Merkin</surname>
                            <given-names>SS</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Socioeconomic disadvantage and change in blood pressure associated with aging.</article-title>
                    <source>
				
                        <italic toggle="yes">Circulation.</italic>
			</source>
                    <year>2002</year>;<volume>106</volume>(<issue>6</issue>):<fpage>703</fpage>&#x2013;<lpage>710</lpage>.
                    <pub-id pub-id-type="pmid">12163431</pub-id>
                    <pub-id pub-id-type="doi">10.1161/01.CIR.0000025402.84600.CD</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-25">
                <label>25</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>Ford</surname>
                            <given-names>ES</given-names>
                        </name>
			</person-group>:
                    <article-title>Trends in mortality from all causes and cardiovascular disease among hypertensive and nonhypertensive adults in the United States.</article-title>
                    <source>
				
                        <italic toggle="yes">Circulation.</italic>
			</source>
                    <year>2011</year>;<volume>123</volume>(<issue>16</issue>):<fpage>1737</fpage>&#x2013;<lpage>1744</lpage>.
                    <pub-id pub-id-type="pmid">21518989</pub-id>
                    <pub-id pub-id-type="doi">10.1161/CIRCULATIONAHA.110.005645</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-26">
                <label>26</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
				
                        <name name-style="western">
                            <surname>McGillen</surname>
                            <given-names>JB</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Anderson</surname>
                            <given-names>SJ</given-names>
                        </name>
				
                        <name name-style="western">
                            <surname>Dybul</surname>
                            <given-names>MR</given-names>
                        </name>
				
                        <etal/>
			</person-group>:
                    <article-title>Optimum resource allocation to reduce HIV incidence across sub-Saharan Africa: a mathematical modelling study.</article-title>
                    <source>
				
                        <italic toggle="yes">Lancet HIV.</italic>
			</source>
                    <year>2016</year>;<volume>3</volume>(<issue>9</issue>):<fpage>e441</fpage>&#x2013;<lpage>8</lpage>.
                    <pub-id pub-id-type="pmid">27562745</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S2352-3018(16)30051-0</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-27">
                <label>27</label>
                <mixed-citation publication-type="journal">
                    <collab>Atomica Team</collab>:
                    <article-title>atomicateam/atomica v1.4.0 (Version v1.4.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.3137154">http://www.doi.org/10.5281/zenodo.3137154</ext-link>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report27542">
        <front-stub>
            <article-id pub-id-type="doi">10.21956/gatesopenres.14141.r27542</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Maheu-Giroux</surname>
                        <given-names>Mathieu</given-names>
                    </name>
                    <xref ref-type="aff" rid="r27542a1">1</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-8363-4388</uri>
                </contrib>
                <aff id="r27542a1">
                    <label>1</label>Department of Epidemiology, Biostatistics, and Occupational Health, McGill University, Montr&#x00e9;al, QC, Canada</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>25</day>
                <month>7</month>
                <year>2019</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2019 Maheu-Giroux M</copyright-statement>
                <copyright-year>2019</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report 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>
            <related-article ext-link-type="doi" id="relatedArticleReport27542" related-article-type="peer-reviewed-article" xlink:href="10.12688/gatesopenres.13031.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>The paper by Kedziora and colleagues present a new software, christened &#x201c;
                <italic>The Cascade Analysis Tool</italic>&#x201d;, that enables users to optimize resources allocation under budget constraints. The authors provide a generic flexible framework to model different types of cascades, applicable to a wide range of health conditions.</p>
            <p> The introduction is well-written and provides a nice background to explain the relevance of the 
                <italic>Cascade Analysis Tool</italic>. Overall, this is a nice paper that addresses an important issue. However, I found that the methods section is (at time) difficult to read and that some relevant information is missing. These points are further detailed below.</p>
            <p> &#x00a0;
                <bold>Suggestions:</bold>&#x00a0; 
                <list list-type="order">
                    <list-item>
                        <p>The authors could consider adding a table or box that would summarize the key data requirements to use this tool. I understand that this can be challenging given that the tool is intended to be generic but it would inform on the key elements required. For example, do we need mortality (or e0) and disease-specific mortality rates? Do we need to have precise estimates on the number (or %) of individuals in each compartment of the cascade?</p>
                    </list-item>
                    <list-item>
                        <p>In the case of infectious diseases where interventions can have externalities, how is onward transmission taken into account? From my understanding of the paper, there is no force of infection specified in the compartmental model. I am not saying that it should absolutely be considered but, at the very least, the assumption of no externalities (i.e., averting chains of transmission) should be made crystal clear in the paper and the implications on budget allocation discussed, including limitations.</p>
                    </list-item>
                    <list-item>
                        <p>It is unclear what are the types of outcomes that can be optimized? From the case studies on the website referred to in the paper (HIV in South Africa; https://cascade.tools/south-africa), it seems that it can be &#x201c;infection averted&#x201d; but this is not mentioned in the paper. Where the cascade results plugged in another model (e.g., Optima) to obtain this result?</p>
                    </list-item>
                    <list-item>
                        <p>Also, can QALY or DALY be optimized instead? Based on the sentence &#x201c;
                            <italic>It is possible for users to construct their own objective using any of the model&#x2019;s outputs, as well as to combine multiple objectives into a single target</italic>&#x201d;, this seems theoretically possible. In any case, I suggest being a little bit more specific about what type of objective functions can, and cannot, be optimized.</p>
                    </list-item>
                    <list-item>
                        <p>For resources allocation, what is the recommended time horizon for the economic evaluation/optimization? I suspect that this is case-specific and must be chosen by the users. I recommend making this clear in the paper. Similar issue with discounting? Can health outcomes and/or budgets be discounted at a user-specified rate? I am not asking that the authors go in details about this&#x2026; but if these functionalities are readily available (or not) should be mentioned in the relevant section(s).</p>
                    </list-item>
                    <list-item>
                        <p>Also regarding resources allocation, can potential resources savings be considered? For example, earlier management of a chronic condition could save money down the line and this could impact decision-making regarding best allocative strategies.</p>
                    </list-item>
                    <list-item>
                        <p>The paper does an excellent job at explaining which type of questions can be answered with the 
                            <italic>Cascade Analysis Tool</italic>. It would be equally informative if examples of policy questions that cannot be answered (or with difficulty) were presented. For example, the optimization algorithm seems to be agnostic about equity constraints (is that the case)? Can resources allocation among cascades in different geographical regions be performed? Can optimizing two cascades (for different health conditions) that could share some common interventions be achieved?</p>
                    </list-item>
                    <list-item>
                        <p>Figure 5 is confusing as the &#x201c;
                            <italic>LTFU rate</italic>&#x201d;, &#x201c;
                            <italic>Control rate</italic>&#x201d;, and &#x201c;
                            <italic>Death rate</italic>&#x201d; are depicted as unit-less probability. Are these rates (incidence density) or proportions (incidence proportion)?</p>
                    </list-item>
                    <list-item>
                        <p>Can the discussion of the limitations of the model be expanded. For example, what are the implications of the steady state assumption? How much training is needed for public health practitioners to be able to perform analyses on their own with the 
                            <italic>Cascade Analysis Tool</italic>? What set of minimum core competencies are required?</p>
                    </list-item>
                </list> &#x00a0;
                <bold>Discretionary revisions</bold>&#x00a0; 
                <list list-type="order">
                    <list-item>
                        <p>The Methods section has many different types of headers without any clear ordering. Please standardize all headers and sub-headers as the current format is confusing.</p>
                    </list-item>
                    <list-item>
                        <p>Why start the methods with the different packages used (
                            <italic>Implementation</italic> section)? I am not convinced that this is relevant to your audience.</p>
                    </list-item>
                    <list-item>
                        <p>&#x201c;
                            <italic>Characteristics</italic>&#x201d; is confusing to described quantities that can be derived from the model? Maybe &#x201c;
                            <italic>Indicators</italic>&#x201d; or &#x201c;
                            <italic>Derived metrics</italic>&#x201d; would be more appropriate?</p>
                    </list-item>
                    <list-item>
                        <p>Is it really the &#x201c;
                            <italic>summed loss rates</italic>&#x201d; that are being minimized or the total number of individuals lost at all stages? It seems that these two different ways of conceptualizing losses could give different results.</p>
                    </list-item>
                    <list-item>
                        <p>Why provide a link to the software page if it is password-protected? Will a fee be charged to use it?</p>
                    </list-item>
                    <list-item>
                        <p>Consider renaming the section &#x201c;
                            <italic>Use cases</italic>&#x201d; to &#x201c;
                            <italic>Case studies</italic>&#x201d;.</p>
                    </list-item>
                    <list-item>
                        <p>The GitHub repo refers to &#x201c;
                            <italic>Atomica</italic>&#x201d;. It seems that the latter include more features than the 
                            <italic>Cascade Analysis Tool</italic>, which is slightly confusing. Also, the 
                            <italic>readme</italic> of this repo does not mention the 
                            <italic>Cascade Analysis Tool</italic>. Are &#x201c;
                            <italic>Atomica</italic>&#x201d; and the &#x201c;
                            <italic>Cascade Analysis Tool</italic>&#x201d; the same? If so, could the repo be renamed.</p>
                    </list-item>
                </list>
            </p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Partly</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Partly</p>
            <p>Reviewer Expertise:</p>
            <p>Population health; Infectious disease epidemiology; Mathematical modeling</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment3273-27542">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Stuart</surname>
                            <given-names>Robyn</given-names>
                        </name>
                        <aff>University of Copenhagen, Denmark</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>11</day>
                    <month>1</month>
                    <year>2020</year>
                </pub-date>
            </front-stub>
            <body>
                <p>We thank the reviewer for taking the time to review, and for providing helpful comments that have greatly strengthened the article. Responses to particular points are provided below. 
                    <list list-type="bullet">
                        <list-item>
                            <p>The paper by Kedziora and colleagues present a new software, christened &#x201c;The Cascade Analysis Tool&#x201d;, that enables users to optimize resources allocation under budget constraints. The authors provide a generic flexible framework to model different types of cascades, applicable to a wide range of health conditions.&#x00a0;
                                <bold>We thank the reviewer for the summary.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>The introduction is well-written and provides a nice background to explain the relevance of the Cascade Analysis Tool. Overall, this is a nice paper that addresses an important issue. However, I found that the methods section is (at time) difficult to read and that some relevant information is missing.&#x00a0;
                                <bold>Thank you, we have reworked the methods section considerably in response to this and other reviewer comments - details are provided below.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>The authors could consider adding a table or box that would summarize the key data requirements to use this tool. I understand that this can be challenging given that the tool is intended to be generic but it would inform on the key elements required. For example, do we need mortality (or e0) and disease-specific mortality rates? Do we need to have precise estimates on the number (or %) of individuals in each compartment of the cascade?&#x00a0;
                                <bold>We have added a summary paragraph on key data requirements to the methods section, as well as a link to the section of the website where this information is summarized.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>In the case of infectious diseases where interventions can have externalities, how is onward transmission taken into account? From my understanding of the paper, there is no force of infection specified in the compartmental model. I am not saying that it should absolutely be considered but, at the very least, the assumption of no externalities (i.e., averting chains of transmission) should be made crystal clear in the paper and the implications on budget allocation discussed, including limitations. 
                                <bold>Atomica, the model that powers the Cascade Analysis Tool, can be used to set up arbitrary compartmental models, including models with a force of infection and onward transmission. This functionality is carried over to the Cascade Analysis Tool, but it&#x2019;s not the main intended use case of the tool. We have tried to clarify this in the discussion section.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>It is unclear what are the types of outcomes that can be optimized? From the case studies on the website referred to in the paper (HIV in South Africa; https://cascade.tools/south-africa), it seems that it can be &#x201c;infection averted&#x201d; but this is not mentioned in the paper. Where the cascade results plugged in another model (e.g., Optima) to obtain this result?&#x00a0;
                                <bold>We have added text to the limitations paragraph of the discussion section on this: &#x201c;the web application was designed specifically for supporting cascade analyses, but the underlying model (Atomica) has additional functionalities that have not been introduced to the web application. For example, with Atomica one can specify a much broader range of optimization objectives (e.g. minimizing new infections, disease-related deaths, or DALYs), whereas the Cascade Analysis Tool web application only supports cascade-related objectives. Therefore, whilst it is possible to specify any compartmental model in the Cascade Analysis Tool (e.g. an SIR model with onward transmission), the set of analyses that can be conducted in the web application are limited to the cascade-related ones described in this paper.&#x201d;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Also, can QALY or DALY be optimized instead? Based on the sentence &#x201c;It is possible for users to construct their own objective using any of the model&#x2019;s outputs, as well as to combine multiple objectives into a single target&#x201d;, this seems theoretically possible. In any case, I suggest being a little bit more specific about what type of objective functions can, and cannot, be optimized.
                                <bold>&#x00a0;</bold>
                                <bold>Yes, see above.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>For resources allocation, what is the recommended time horizon for the economic evaluation/optimization? I suspect that this is case-specific and must be chosen by the users. I recommend making this clear in the paper. Similar issue with discounting? Can health outcomes and/or budgets be discounted at a user-specified rate? I am not asking that the authors go in details about this&#x2026; but if these functionalities are readily available (or not) should be mentioned in the relevant section(s).&#x00a0;
                                <bold>Indeed, this is all to be specified by the user. Discounting is not currently supported, and we have added a note on this to the limitations section.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Also regarding resources allocation, can potential resources savings be considered? For example, earlier management of a chronic condition could save money down the line and this could impact decision-making regarding best allocative strategies.&#x00a0;
                                <bold>This is not possible, we&#x2019;ve added this to the limitations.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>The paper does an excellent job at explaining which type of questions can be answered with the Cascade Analysis Tool. It would be equally informative if examples of policy questions that cannot be answered (or with difficulty) were presented. For example, the optimization algorithm seems to be agnostic about equity constraints (is that the case)? Can resources allocation among cascades in different geographical regions be performed? Can optimizing two cascades (for different health conditions) that could share some common interventions be achieved?&#x00a0;
                                <bold>We&#x2019;ve added some text addressing this point to the discussion section: &#x201c;We are also working on extensions to the underlying model to support new types of policy questions, including questions around equity (e.g., which interventions should be prioritized to maximize equity of access to interventions like vaccines), geographical prioritization, and interrelated diseases (e.g., prioritization of integrated services for HIV/TB).&#x201d;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>
                                <bold>Figure 5 is confusing as the &#x201c;LTFU rate&#x201d;, &#x201c;Control rate&#x201d;, and &#x201c;Death rate&#x201d; are depicted as unit-less probability. Are these rates (incidence density) or proportions (incidence proportion)?&#x00a0;</bold>We have addressed this (also noted by reviewer 1).&#x00a0;</p>
                        </list-item>
                        <list-item>
                            <p>Can the discussion of the limitations of the model be expanded. For example, what are the implications of the steady state assumption? How much training is needed for public health practitioners to be able to perform analyses on their own with the Cascade Analysis Tool? What set of minimum core competencies are required?&#x00a0;
                                <bold>We have significantly expanded the section on limitations and addressed these points.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>The Methods section has many different types of headers without any clear ordering. Please standardize all headers and sub-headers as the current format is confusing.We have rearranged this section (also in response to comments from the other two reviewers).&#x00a0;Why start the methods with the different packages used (Implementation section)? I am not convinced that this is relevant to your audience.
                                <bold>&#x00a0;</bold>
                                <bold>According to the journal submission guidelines, this type of article needs to include subsections on Implementation (describing how the tool works and any relevant technical details required for implementation) and Operation (including the minimal system requirements needed to run the software and an overview of the workflow). This subsection on which packages were used was added as per an editor request.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>&#x201c;Characteristics&#x201d; is confusing to described quantities that can be derived from the model? Maybe &#x201c;Indicators&#x201d; or &#x201c;Derived metrics&#x201d; would be more appropriate?&#x00a0;
                                <bold>We agree with this suggestion and have removed the word &#x201c;characteristics&#x201d;.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Is it really the &#x201c;summed loss rates&#x201d; that are being minimized or the total number of individuals lost at all stages? It seems that these two different ways of conceptualizing losses could give different results.&#x00a0;
                                <bold>We have changed to: &#x201c;Minimize the total number of people lost from each stage of the cascade&#x201d;.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Why provide a link to the software page if it is password-protected? Will a fee be charged to use it?&#x00a0;
                                <bold>The software requires users to log in, but it is free to create an account. New users can register by clicking &#x201c;Register here&#x201d; at 
                                    <ext-link ext-link-type="uri" xlink:href="http://ui.cascade.tools/">http://ui.cascade.tools/</ext-link>
                                </bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>
                                <bold>Consider renaming the section &#x201c;Use cases&#x201d; to &#x201c;Case studies&#x201d;.</bold>&#x201c;Use cases&#x201d; is suggested by the article submission guidelines.&#x00a0;</p>
                        </list-item>
                        <list-item>
                            <p>The GitHub repo refers to &#x201c;Atomica&#x201d;. It seems that the latter include more features than the Cascade Analysis Tool, which is slightly confusing. Also, the readme of this repo does not mention the Cascade Analysis Tool. Are &#x201c;Atomica&#x201d; and the &#x201c;Cascade Analysis Tool&#x201d; the same? If so, could the repo be renamed.&#x00a0;
                                <bold>We agree it was confusing and have clarified in the text.&#x00a0;</bold>
                            </p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report27363">
        <front-stub>
            <article-id pub-id-type="doi">10.21956/gatesopenres.14141.r27363</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Subbaraman</surname>
                        <given-names>Ramnath</given-names>
                    </name>
                    <xref ref-type="aff" rid="r27363a1">1</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-2063-943X</uri>
                </contrib>
                <aff id="r27363a1">
                    <label>1</label>Department of Public Health and Community Medicine, Tufts University School of Medicine, Boston, MA, USA</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>22</day>
                <month>7</month>
                <year>2019</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2019 Subbaraman R</copyright-statement>
                <copyright-year>2019</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report 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>
            <related-article ext-link-type="doi" id="relatedArticleReport27363" related-article-type="peer-reviewed-article" xlink:href="10.12688/gatesopenres.13031.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>This is a very thoughtfully written article on a potentially helpful software tool. The goal of the tool is:&#x00a0; 
                <list list-type="order">
                    <list-item>
                        <p>To facilitate the construction of care cascades for different diseases, including a flexible platform for developing such care cascades that recognizes that each disease will have different steps/stages required and different approaches to patient transitions between stages.</p>
                    </list-item>
                    <list-item>
                        <p>Facilitate construction of care cascade by specific sub-populations (e.g., gender, presumably age, etc.)</p>
                    </list-item>
                    <list-item>
                        <p>To allow estimation of the impact of interventions to improve outcomes in disease-specific care cascades.</p>
                    </list-item>
                </list> Overall, the manuscript is very well-written and communicates key points in sufficient detail. More sophisticated critiques would emerge only, I think, as more people practically use this software for programmatic purposes.&#x00a0;</p>
            <p> </p>
            <p> I have the following major and minor points of feedback:</p>
            <p> </p>
            <p> Major Feedback: 
                <list list-type="order">
                    <list-item>
                        <p>Ideally, there would be some platform for public comment, critique, and feedback on this software platform as users engage with it. One of the challenges with reviewing this manuscript is that, while I spent a bit of time playing with the software, it is challenging to provide specific feedback on its strengths or deficiencies without actually using it in practice for a specific disease and programmatic analysis. As such, I think ongoing public feedback on the software from actual users is more critical than peer review of this manuscript.</p>
                    </list-item>
                    <list-item>
                        <p>Care cascades for different diseases deal with transitions differently. For example, most HIV care cascades look at transitions backwards as well as forwards across stages (or "compartments"). In contrast, in most care cascades for active TB, patients can only move forward across care cascade stages, and they can have multiple types of poor outcomes in each "gap" (i.e., difference between steps / stages / compartments). For example, for patients who start treatment but do not complete TB treatment, they could have one of 3 poor outcomes: (a) death, (b) treatment failure, and (c) loss to follow-up. The assumption is that "loss to follow-up" patients do not move "backwards" in the care cascade but fall out completely (and would have to restart from the beginning). Two questions related to this: (a) can this software modeling approach manage care cascades that only have transitions in the forward direction (I am assuming yes from Fig 3, but would be helpful to clarify); and (b) can this software modeling approach capture and estimate different types of poor outcomes as described above?&#x00a0;</p>
                    </list-item>
                </list> Clarifying both of these questions in the text would be helpful for readers coming from different disease backgrounds and envisioning the approach differently.&#x00a0;</p>
            <p> </p>
            <p> A key point in the manuscript is this statement: "In many real-world situations, the impact of changing intervention coverage and the way interventions should be prioritized is not clear from the analysis of intervention properties alone." This is an important point that may not be evident to readers who don't frequently look at modeling data that look at broader implications and impacts of interventions. When I read this, I had a few thoughts regarding how the authors could expand on this point: 
                <list list-type="order">
                    <list-item>
                        <p>It would be helpful for the authors to add a few sentences explaining this point further. If we already have data on a particular intervention and its impact on reducing a given gap in care, what are&#x00a0;the additional benefits of the type of modeling proposed by the authors?&#x00a0;</p>
                    </list-item>
                    <list-item>
                        <p>One practical problem that users of this software will face may be the lack of available data on the effect sizes and costing of different interventions to reduce gaps in care. It would be helpful for the authors to specify what types of data / findings&#x00a0;users of the software should have available to use this tool. Do they need effect sizes of an intervention to reduce a gap in the care cascade (i.e., estimated % reduction in a poor outcome at a particular step from an intervention)? Do they need confidence intervals for this effect estimate? Do they need these effect size estimates for an intervention for multiple care cascade steps (if an intervention improves outcomes at multiple steps)?&#x00a0;What kind of costing data do they need to use this tool?&#x00a0;</p>
                    </list-item>
                </list> Finally, it would be helpful for the authors to provide some real world examples of the types of studies that are available from which users of the software can provide these estimates. Even providing citations, example effect sizes or costing data from the existing literature for studies from HIV (for example, since they are most broadly available here) would help readers to think about the types of data they can seek out for their own diseases to populate these models.</p>
            <p> </p>
            <p> Minor Comments: 
                <list list-type="order">
                    <list-item>
                        <p>Authors might consider including a citation for the Lancet Global Health Commission on High-Quality Health Systems, as that major report has argued for care cascade analyses as being a central component of health quality dashboards for understanding quality of care. This strengthens the argument for a user friendly tool such as the one created by these authors.</p>
                    </list-item>
                    <list-item>
                        <p>In paragraph 2 of the paper, the authors should also note that the phrase "continuum of care" has also been used for these types of analyses. This is now emerging as the predominant language for these analyses in HIV, with the assumption that patients can move backwards as well as forwards along this continuum of care.</p>
                    </list-item>
                    <list-item>
                        <p>&#x00a0;Paragraph 3 of the Introduction: The authors can correct the way they have described the TB care cascade analyses. The India and South Africa care cascades that have been cited for TB look at active TB disease, while the latent TB care cascade cited looks at latent TB disease. As such, these are two different frameworks for different types of TB--i.e., it is not that the framework in citation 10 guides the&#x00a0;framework in citations 11 and 12--they are different frameworks for different forms of TB. A more detailed methods framework for active TB disease is available in the manuscript: Subbaraman R, Nathavitharana RR, Mayer KH, Satyanarayana S, Chadha VK, Arinaminpathy N, et al. (2019) Constructing care cascades for active tuberculosis: A strategy for program monitoring and identifying gaps in quality of care
                            <sup>
                                <xref ref-type="bibr" rid="rep-ref-27363-1">1</xref>
                            </sup>. Such methodological manuscripts could inform development of models using a tool such as the one the authors have created.</p>
                    </list-item>
                </list>
            </p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Yes</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>tuberculosis implementation science, infectious diseases epidemiology</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <back>
            <ref-list>
                <title>References</title>
                <ref id="rep-ref-27363-1">
                    <label>1</label>
                    <mixed-citation publication-type="journal">
                        <person-group person-group-type="author"/>:
                        <article-title>Constructing care cascades for active tuberculosis: A strategy for program monitoring and identifying gaps in quality of care.</article-title>
                        <source>
                            <italic>PLoS Med</italic>
                        </source>.<year>2019</year>;<volume>16</volume>(<issue>2</issue>) :
                        <elocation-id>10.1371/journal.pmed.1002754</elocation-id>
                        <fpage>e1002754</fpage>
                        <pub-id pub-id-type="pmid">30811385</pub-id>
                        <pub-id pub-id-type="doi">10.1371/journal.pmed.1002754</pub-id>
                    </mixed-citation>
                </ref>
            </ref-list>
        </back>
        <sub-article article-type="response" id="comment3272-27363">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Stuart</surname>
                            <given-names>Robyn</given-names>
                        </name>
                        <aff>University of Copenhagen, Denmark</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>11</day>
                    <month>1</month>
                    <year>2020</year>
                </pub-date>
            </front-stub>
            <body>
                <p>
                    <list list-type="bullet">
                        <list-item>
                            <p>Ideally, there would be some platform for public comment, critique, and feedback on this software platform as users engage with it. One of the challenges with reviewing this manuscript is that, while I spent a bit of time playing with the software, it is challenging to provide specific feedback on its strengths or deficiencies without actually using it in practice for a specific disease and programmatic analysis. As such, I think ongoing public feedback on the software from actual users is more critical than peer review of this manuscript.
                                <bold>&#x00a0;</bold>
                                <bold>We thank the reviewer for this excellent suggestion. We have added a blog to our website (where we can also post information on updates to the tool). Users can provide feedback via the comments section.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Care cascades for different diseases deal with transitions differently. For example, most HIV care cascades look at transitions backwards as well as forwards across stages (or "compartments"). In contrast, in most care cascades for active TB, patients can only move forward across care cascade stages, and they can have multiple types of poor outcomes in each "gap" (i.e., difference between steps / stages / compartments). For example, for patients who start treatment but do not complete TB treatment, they could have one of 3 poor outcomes: (a) death, (b) treatment failure, and (c) loss to follow-up. The assumption is that "loss to follow-up" patients do not move "backwards" in the care cascade but fall out completely (and would have to restart from the beginning). Two questions related to this: (a) can this software modeling approach manage care cascades that only have transitions in the forward direction (I am assuming yes from Fig 3, but would be helpful to clarify); and (b) can this software modeling approach capture and estimate different types of poor outcomes as described above?&#x00a0;Clarifying both of these questions in the text would be helpful for readers coming from different disease backgrounds and envisioning the approach differently.
                                <bold>&#x00a0;</bold>
                                <bold>Yes, both types of cascade can be modelled with the tool. We have added text on this to the methods section.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>A key point in the manuscript is this statement: "In many real-world situations, the impact of changing intervention coverage and the way interventions should be prioritized is not clear from the analysis of intervention properties alone." This is an important point that may not be evident to readers who don't frequently look at modeling data that look at broader implications and impacts of interventions. When I read this, I had a few thoughts regarding how the authors could expand on this point: 
                                <list list-type="bullet">
                                    <list-item>
                                        <p>It would be helpful for the authors to add a few sentences explaining this point further. If we already have data on a particular intervention and its impact on reducing a given gap in care, what are the additional benefits of the type of modeling proposed by the authors?&#x00a0;</p>
                                    </list-item>
                                    <list-item>
                                        <p>One practical problem that users of this software will face may be the lack of available data on the effect sizes and costing of different interventions to reduce gaps in care. It would be helpful for the authors to specify what types of data / findings users of the software should have available to use this tool. Do they need effect sizes of an intervention to reduce a gap in the care cascade (i.e., estimated % reduction in a poor outcome at a particular step from an intervention)? Do they need confidence intervals for this effect estimate? Do they need these effect size estimates for an intervention for multiple care cascade steps (if an intervention improves outcomes at multiple steps)? What kind of costing data do they need to use this tool?&#x00a0;</p>
                                    </list-item>
                                    <list-item>
                                        <p>Finally, it would be helpful for the authors to provide some real world examples of the types of studies that are available from which users of the software can provide these estimates. Even providing citations, example effect sizes or costing data from the existing literature for studies from HIV (for example, since they are most broadly available here) would help readers to think about the types of data they can seek out for their own diseases to populate these models.</p>
                                    </list-item>
                                </list> </p>
                        </list-item>
                        <list-item>
                            <p>
                                <bold>We have:</bold> 
                                <list list-type="bullet">
                                    <list-item>
                                        <p>
                                            <bold>Moved this text to a more prominent position in the article, and emphasized it more clearly by repeating it in the discussion section as well.&#x00a0;</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>&#x201c;One practical problem that users of this software will face may be the lack of available data on the effect sizes and costing of different interventions to reduce gaps in care.&#x201d; -- we added a section noting the issues related to data availability in the methods.&#x00a0;</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>&#x201c;It would be helpful for the authors to specify what types of data / findings users of the software should have available to use this tool.&#x201d; - we added a section on minimum data requirements to the data entry section of the methods</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>&#x201c;Do they need effect sizes of an intervention to reduce a gap in the care cascade (i.e., estimated % reduction in a poor outcome at a particular step from an intervention)&#x201d; -- yes, this is needed, and we&#x2019;ve added text clarifying this.</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>&#x201c;Do they need confidence intervals for this effect estimate?&#x201d; -- this is not required.</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>&#x201c;Do they need these effect size estimates for an intervention for multiple care cascade steps (if an intervention improves outcomes at multiple steps)? What kind of costing data do they need to use this tool?&#x201d; - we have specified this in the data entry section.</bold>
                                        </p>
                                    </list-item>
                                    <list-item>
                                        <p>
                                            <bold>We have added a paragraph on typical data sources.</bold>
                                        </p>
                                    </list-item>
                                </list> </p>
                        </list-item>
                        <list-item>
                            <p>Authors might consider including a citation for the Lancet Global Health Commission on High-Quality Health Systems, as that major report has argued for care cascade analyses as being a central component of health quality dashboards for understanding quality of care. This strengthens the argument for a user friendly tool such as the one created by these authors.&#x00a0;
                                <bold>Thank you, we have added this.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>In paragraph 2 of the paper, the authors should also note that the phrase "continuum of care" has also been used for these types of analyses. This is now emerging as the predominant language for these analyses in HIV, with the assumption that patients can move backwards as well as forwards along this continuum of care.&#x00a0;
                                <bold>Thank you, we have added this.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Paragraph 3 of the Introduction: The authors can correct the way they have described the TB care cascade analyses. The India and South Africa care cascades that have been cited for TB look at active TB disease, while the latent TB care cascade cited looks at latent TB disease. As such, these are two different frameworks for different types of TB--i.e., it is not that the framework in citation 10 guides the framework in citations 11 and 12--they are different frameworks for different forms of TB. A more detailed methods framework for active TB disease is available in the manuscript: Subbaraman R, Nathavitharana RR, Mayer KH, Satyanarayana S, Chadha VK, Arinaminpathy N, et al. (2019) Constructing care cascades for active tuberculosis: A strategy for program monitoring and identifying gaps in quality of care1. Such methodological manuscripts could inform development of models using a tool such as the one the authors have created.&#x00a0;
                                <bold>Thank you, we have fixed this and added the suggested citation.</bold>
                            </p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report27336">
        <front-stub>
            <article-id pub-id-type="doi">10.21956/gatesopenres.14141.r27336</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Haber</surname>
                        <given-names>Noah</given-names>
                    </name>
                    <xref ref-type="aff" rid="r27336a1">1</xref>
                    <xref ref-type="aff" rid="r27336a2">2</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-5672-1769</uri>
                </contrib>
                <aff id="r27336a1">
                    <label>1</label>Meta-Research Innovation Center, Stanford University, Stanford, CA, USA</aff>
                <aff id="r27336a2">
                    <label>2</label>Carolina Population Center, University of North Carolina at Chapel Hill, Chapel Hill, NC, USA</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>25</day>
                <month>6</month>
                <year>2019</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2019 Haber N</copyright-statement>
                <copyright-year>2019</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report 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>
            <related-article ext-link-type="doi" id="relatedArticleReport27336" related-article-type="peer-reviewed-article" xlink:href="10.12688/gatesopenres.13031.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>
                <underline>
                    <bold>General comments</bold>
                </underline>
            </p>
            <p> I believe that this software appears to be a strong and useful effort toward making useful decisions based on cascades, under a generalized framework. The authors have identified an important problem, and have made substantial progress towards providing a useful solution. As a preliminary and experimental release, I believe this to be a successful effort. However, some caveats should be considered with regard to the software and its accompanying paper as they currently stand.</p>
            <p> </p>
            <p> A general concern is that&#x00a0;software is requires a high degree of sophistication and understanding of data and modelling to work as intended. The effort and sophistication required is highlighted in the example, where the assumptions required are often very serious, and highly consequential.</p>
            <p> </p>
            <p> In addition, the report as it stands could be more clearly organized and give additional technical detail in the methods section.</p>
            <p> </p>
            <p> As the authors note, it shows promise and potential. Getting it from a proof of concept that&#x00a0;solves very interesting problems&#x00a0;to being useful/usable to relatively novice users is long process. I really hope that this effort continues to develop into maturity.</p>
            <p> </p>
            <p> 
                <underline>
                    <bold>Methods</bold>
                </underline>
            </p>
            <p> General comments: I would suggest a fairly substantial re-organization for this section. Quite a bit of time is spent on introducing people to the concept of a cascade (which is not the innovative part of this paper), at the expense of what is useful, interesting, and innovative about this tool.</p>
            <p> </p>
            <p> The section reads like a manual for designing a cascade analysis with the tool, rather than an explanation of what the software actually does and the methods and math&#x00a0;underlying it. Quite a few sections are not the software methods at all, and should be moved to the introduction or removed. I am not sure I would be able to recreate a near equivalent of this tool without much more detail on the underlying model itself.</p>
            <p> </p>
            <p> I found that I did not understand how the model actually functioned, beyond that it was a compartmental model. Showing some of the math a bit more (even as an example, or just citations) would go a long way toward helping understand what's going on.</p>
            <p> </p>
            <p> 
                <italic>Designing the cascade</italic>
            </p>
            <p> I think the language used for this framework could use a major revisit. It took me quite a bit of time and going backward to figure out what the authors were referring to throughout, which was distracting for the later sections.</p>
            <p> </p>
            <p> In the context of the user-oriented manual view, referring to the stages as "compartments" seems out of place and unnecessary, when "stage" or "state" seems more appropriate and more general for users. If this is an explanation of the methods of the model, then saying it is based on a compartmental model (and specifying exactly how said model is parameterized) is useful.</p>
            <p> </p>
            <p> "Parameter" has a much broader meaning, and forcing "parameter" to mean this very specific thing, is confusing. I would suggest referring to this as "transition properties" or "transition parameters" and collapse this paragraph with the previous. Also, what, specifically are the required parameters, and in what units? At minimum, transition rates need to be entered, correct?</p>
            <p> </p>
            <p> The same applies to&#x00a0;the word "characteristics". Why not just use "stage groups" or similar?</p>
            <p> </p>
            <p> 
                <italic>Collecting data</italic>
            </p>
            <p> Again, a bit strange here. Data entry and data collection are two different things. Which are the authors trying to describe, and do they belong in the methods or in the use example?&#x00a0;As an aside, I find the Excel interface bit difficult to use, and unintuitive why I would have to exit the site to enter data. It would be far more straightforward to have a browser-based UI for this, with optional support for Excel-based data entry.</p>
            <p> </p>
            <p> 
                <italic>Analysis of policy questions</italic>
            </p>
            <p> I believe that this belongs in the intro.</p>
            <p> </p>
            <p> 
                <italic>Cascade optimization</italic>
            </p>
            <p> This is where the good stuff is! Lead with this, shorten/consolidate/remove the rest. I found this section to be relatively clear and well-written, but unfortunately buried underneath everything else.</p>
            <p> </p>
            <p> 
                <bold>Example cascade</bold>
            </p>
            <p> One thing this section really highlights is the incredible amount of sophisticated work users need to do to make all this work together. Possibly to the point that a user who is able to adequately generate these numbers could very nearly model this all themselves. This is a first major effort, so that is to be expected, but it should be considered strongly.</p>
            <p> </p>
            <p> It would be helpful if this was more obviously linked to the compartments. Example: We estimated the transition rate from stage X to stage Y by ____.&#x00a0;</p>
            <p> </p>
            <p> 
                <italic>"We further assume that the hypertension cascade is in a steady state such that the relative proportions of people in each cascade stage are constant over time, which implies that the number of people in each cascade stage will increase by 4.4% each year."</italic>
            </p>
            <p> </p>
            <p> This is a&#x00a0;suspect&#x00a0;and (as far as I can tell) unnecessary assumption. If this were true, there would be no change in the proportions between years (which there are, as shown in Figure 4).&#x00a0;Why not use between-year flow rates (noting a few minor assumptions)? I might suggest that adding a mini model to solve for those flow rates would be an extremely useful feature, as forcing users to do this on their own will be error-prone. While is just an example, but it's a potentially distracting error.</p>
            <p> </p>
            <p> 
                <bold>Discussion</bold>
            </p>
            <p> I would suggest that the discussion section have a much more comprehensive treatment of limitations of the tool. What kinds of things can it not model? Am I able to create a fully fledged SIR model, for example? That might be implied by the use of compartment modelling, it isn't clear to me whether or not this is possible.</p>
            <p> </p>
            <p> One clear limitation of this model is that it has a bit of a strange relationship with time.&#x00a0;A slightly pedantic issue&#x00a0;is that the authors appear to be using rates and probabilities interchangeably. More importantly,&#x00a0;enormous assumptions must be made in order to turn the cross-sectional data sources into what appears to be models over time. Issues in these assumptions and pre-model modelling can lead to severe misallocation of resources.</p>
            <p> </p>
            <p> I believe this to be a useful&#x00a0;tool, albeit one that would benefit greatly from real-world testing, and I hope that the authors are able to continue developing it.</p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Partly</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Partly</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>HIV, cascades, global health</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment3271-27336">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Stuart</surname>
                            <given-names>Robyn</given-names>
                        </name>
                        <aff>University of Copenhagen, Denmark</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>11</day>
                    <month>1</month>
                    <year>2020</year>
                </pub-date>
            </front-stub>
            <body>
                <p>
                    <list list-type="bullet">
                        <list-item>
                            <p>I believe that this software appears to be a strong and useful effort toward making useful decisions based on cascades, under a generalized framework. The authors have identified an important problem, and have made substantial progress towards providing a useful solution. As a preliminary and experimental release, I believe this to be a successful effort. However, some caveats should be considered with regard to the software and its accompanying paper as they currently stand.&#x00a0;
                                <bold>We thank the reviewer for the summary.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>A general concern is that software requires a high degree of sophistication and understanding of data and modelling to work as intended. The effort and sophistication required is highlighted in the example, where the assumptions required are often very serious, and highly consequential.&#x00a0;
                                <bold>This is well noted, and in response to this comment we have (a) revised the manuscript so it caters to a less technically knowledgeable audience, and (b) added text summarizing these concerns raised by the reviewer to the limitations paragraph of the discussion section.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>In addition, the report as it stands could be more clearly organized and give additional technical detail in the methods section.&#x00a0;
                                <bold>We have attempted to streamline and clarify the methods section (also in response to comments from the other reviewers).&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>As the authors note, it shows promise and potential. Getting it from a proof of concept that solves very interesting problems to being useful/usable to relatively novice users is a long process. I really hope that this effort continues to develop into maturity.&#x00a0;
                                <bold>We thank the reviewer for the kind words and well wishes. As per a comment from the second reviewer, we have established a mechanism for gathering user feedback. We are looking forward to further improving our software in response to user comments.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Methods&#x00a0;General comments: I would suggest a fairly substantial re-organization for this section. Quite a bit of time is spent on introducing people to the concept of a cascade (which is not the innovative part of this paper), at the expense of what is useful, interesting, and innovative about this tool.&#x00a0;The section reads like a manual for designing a cascade analysis with the tool, rather than an explanation of what the software actually does and the methods and math underlying it. Quite a few sections are not the software methods at all, and should be moved to the introduction or removed. I am not sure I would be able to recreate a near equivalent of this tool without much more detail on the underlying model itself.&#x00a0;I found that I did not understand how the model actually functioned, beyond that it was a compartmental model. Showing some of the math a bit more (even as an example, or just citations) would go a long way toward helping understand what's going on.We have rearranged this section significantly.&#x00a0;
                                <bold>Firstly, we have expanded the section on implementation (NB - the section headings are taken from the article guidelines on how software tool articles should be structured). The reviewer makes a good point that we were previously lacking detail on how the software is actually structured, so we have added this to the implementation section. Creating a similar tool would be possible by following the architecture in Figure 3.&#x00a0;</bold>
                                <bold>Much of the math behind the model is actually handled by the Atomica package, and we don&#x2019;t go into detail about it here. However, we&#x2019;ve added more detail in the example.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Designing the cascade:&#x00a0;I think the language used for this framework could use a major revisit. It took me quite a bit of time and going backward to figure out what the authors were referring to throughout, which was distracting for the later sections.&#x00a0;In the context of the user-oriented manual view, referring to the stages as "compartments" seems out of place and unnecessary, when "stage" or "state" seems more appropriate and more general for users. If this is an explanation of the methods of the model, then saying it is based on a compartmental model (and specifying exactly how said model is parameterized) is useful.&#x00a0;"Parameter" has a much broader meaning, and forcing "parameter" to mean this very specific thing, is confusing. I would suggest referring to this as "transition properties" or "transition parameters" and collapse this paragraph with the previous. Also, what, specifically are the required parameters, and in what units? At minimum, transition rates need to be entered, correct?&#x00a0;The same applies to the word "characteristics". Why not just use "stage groups" or similar?&#x00a0;
                                <bold>We have reworded this section (also noted in the comments from the two other reviewers). We wish to emphasize the connection between the cascade modelling methodology and compartmental models, so we have retained &#x201c;compartment&#x201d; and &#x201c;transition&#x201d;. We have also retained &#x201c;parameter&#x201d;, even though we agree it has a very broad meaning, because it is heavily entwined in the software itself and is used with internal consistency in this article. However, we have removed &#x201c;characteristics&#x201d; (also noted by another reviewer), and we have written a paragraph on the minimal data requirements. We intend for this section to help readers understand the relationship between a compartmental model and a cascade representation.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Collecting data:&#x00a0;Again, a bit strange here. Data entry and data collection are two different things. Which are the authors trying to describe, and do they belong in the methods or in the use example? As an aside, I find the Excel interface bit difficult to use, and unintuitive why I would have to exit the site to enter data. It would be far more straightforward to have a browser-based UI for this, with optional support for Excel-based data entry.
                                <bold>&#x00a0;</bold>
                                <bold>We renamed this section &#x201c;Data entry&#x201d;.&#x00a0;</bold>
                                <bold>We experimented with the idea of having users enter data via the web application itself, but experience with users led us to understand that people are very accustomed to entering data via Excel, and that doing so allows them to more easily share files with colleagues and collaborate effectively. In the end, we decided to offer Excel support since that&#x2019;s what most users seemed to want.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Analysis of policy questions:&#x00a0;I believe that this belongs in the intro.
                                <bold>&#x00a0;</bold>
                                <bold>We have shifted this to the intro.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Cascade optimization:&#x00a0;This is where the good stuff is! Lead with this, shorten/consolidate/remove the rest. I found this section to be relatively clear and well-written, but unfortunately buried underneath everything else.
                                <bold>&#x00a0;</bold>
                                <bold>We have shortened the rest of the &#x201c;Operation&#x201d; section of the methods (again, this is a required section heading for this article type), so that this is placed more prominently in the methods.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Example cascade:&#x00a0;One thing this section really highlights is the incredible amount of sophisticated work users need to do to make all this work together. Possibly to the point that a user who is able to adequately generate these numbers could very nearly model this all themselves. This is a first major effort, so that is to be expected, but it should be considered strongly.&#x00a0;It would be helpful if this was more obviously linked to the compartments. Example: We estimated the transition rate from stage X to stage Y by ____.&#x00a0;
                                <bold>In our experience, it is not uncommon for people to have access to all the data summarized in this example section, but not to know how to combine it and analyze it to get policy recommendations.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>"We further assume that the hypertension cascade is in a steady state such that the relative proportions of people in each cascade stage are constant over time, which implies that the number of people in each cascade stage will increase by 4.4% each year."&#x00a0;This is a suspect and (as far as I can tell) unnecessary assumption. If this were true, there would be no change in the proportions between years (which there are, as shown in Figure 4). Why not use between-year flow rates (noting a few minor assumptions)? I might suggest that adding a mini model to solve for those flow rates would be an extremely useful feature, as forcing users to do this on their own will be error-prone. While is just an example, but it's a potentially distracting error.&#x00a0;
                                <bold>We have removed this.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>Discussion:&#x00a0;I would suggest that the discussion section have a much more comprehensive treatment of limitations of the tool. What kinds of things can it not model? Am I able to create a fully fledged SIR model, for example? That might be implied by the use of compartment modelling, it isn't clear to me whether or not this is possible.&#x00a0;
                                <bold>We have added a paragraph on limitations.</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>One clear limitation of this model is that it has a bit of a strange relationship with time. A slightly pedantic issue is that the authors appear to be using rates and probabilities interchangeably. More importantly, enormous assumptions must be made in order to turn the cross-sectional data sources into what appears to be models over time. Issues in these assumptions and pre-model modelling can lead to severe misallocation of resources.
                                <bold>&#x00a0;</bold>
                                <bold>It&#x2019;s a very good point (not pedantic!) about rates vs probabilities - we have clarified this throughout. We have also added text in the limitations paragraph of the discussion section on the potential issues related to using single time-points as data sources for inform time-dependent estimates.&#x00a0;</bold>
                            </p>
                        </list-item>
                        <list-item>
                            <p>I believe this to be a useful tool, albeit one that would benefit greatly from real-world testing, and I hope that the authors are able to continue developing it.&#x00a0;
                                <bold>Thank you for taking the time to review!</bold>
                            </p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
</article>
