![]() |
HEP-CE 2.0.1
Hepatitis-C Cost Effectiveness Simulation
|
The HEP-CE model requires structured data in order to obtain meaningful outcomes. Here, we'll describe, in detail, how your data should be structured when using the model.
The example, reiterated below, from the landing page illustrates some details about the necessary file structure to use the model:
Let's break all this down. First, there's the data-source/ directory, containing individual input sets for the model. While the executable doesn't require a folder analogous to data-source, it can be useful to use such a folder as a record of what the inputs within it represent (e.g. basecase/, hcv-positive-cohort/, etc.) since you can name these folders arbitrarily. Regardless of whether or not you use such a directory, there must be at least one input folder, named input<X> where <X> is replaced with an integer, that contains the two required files sim.conf and inputs.db, which will be explained in detail in the following sections.
Note: There is no requirement that input folders start at 1. You can have any assortment of input numbers, though it is convenient for their numbers to be sequential, as using the executable with multiple input sets in one call expects them to be sequential. Consider the situation where you have the following input folders in data-source/:
Because they are not sequential, you would need to use two calls to the executable to simulate all of the inputs:
Our recommendation is simply that you structure your inputs in a way that makes them intuitive and interpretable, so that when someone looks at the data, they might understand the meaning without significant effort.
Within each numbered input folder, there are two files, sim.conf and inputs.db, which are both required to use the HEP-CE executable. sim.conf is a standard, .ini-formatted configuration file and inputs.db is a SQLite database. In the next sections, we'll dive into the details of each of these files.
The sim.conf file defines the structure of a HEP-CE simulation run. In this file the discrete events, characteristics of HCV care, and single-value parameters are specified—there is no tabular data in this file. As is typical of .ini files, sim.conf is broken down into sections, each of which contain key-value pairs. HEP-CE has fourteen such sections:
simulationmortalityinfectioneligibilityfibrosisfibrosis_stagingscreeningscreening_background_abscreening_background_rnascreening_intervention_abscreening_intervention_rnalinkingtreatmentcostAn example sim.conf is provided within the GitHub repository for reference. All key-value pairs for each section are documented in detail in the example.
All tabular data is stored in the database. In order to generate a database with the necessary structure, one simply needs to execute the script provided in the examples—the SQLite file is built accordingly. Due to data use agreements, we are not able to share the data we use with our model, only the schema. Users will have to provide their own data. The tables within inputs.db are named as follows:
antibody_testingbackground_impactsbackground_mortalitybehavior_impactsbehavior_transitionsbool_lookupdrug_behaviorsfibrosisfibrosis_diagnosis_statesfibrosis_stateshcv_impactshcv_statesincidenceinit_cohortlink_stateslost_to_follow_upmoudpregnancypregnancy_statesscreening_and_linkagesexsmrtreatment_initiationstreatmentsTODO