![]() |
RESPOND 2.2.0
Researching Effective Strategies to Prevent Opioid Death
|
The RESPOND model is packaged as a library, but for ease of use we do also provide a basic command line interface executable for users to run the model. To this end, we make use of command line arguments and required files/directory structures. In addition to the baseline required files, we have additional optional files used to calculate both the cost effectiveness measures and the utility (quality of life) measurements.
The required inputs are listed below:
sim.confinputs.dbThe sim.conf file forms the backbone of the RESPOND model. It governs the general flow and the basic pre-defined single digit parameters in the model. This file is meant to be changed by the user to determine how the model should act, it is not calibrated and does not contain tabular data. The general structure follows a prototypical .ini file with a header describing a set of key-value pairs. For RESPOND, there are 5 unique sets:
Each set governs a unique component of the model. An example can be found in the examples folder.
The simulation section governs the basic parameters of the model. An example is given below:
The state section governs the basic outline of the state matrix. The multiplication of the lengths of the values here gives us the size of the state space (i.e. 13 interventions and 4 behaviors = 13x4 = 52).
This is a section that is being prepared for removal. As the model does not account for cohort demographics (we leave it to the provided data) this section should never change.
This section governs the costing calculations as part of post-processing. The first parameter is always cost_analysis and flags whether or not to run cost calculations. By enabling costing, we know the model takes longer as all states must be recorded to calculate cost effectiveness at the given times. That being said, the example section:
Finally, the output section determines what the general model outputs should record. Included in here are whether to write the inputs, whether to pivot the results to a long format array matching R's expected notation, and more.
The tabular data is now stored in a SQLite database titled inputs.db. The database schema can be created via the file create_db.sql found alongside the sim.conf in the examples folder of the repository. The schema consists of 13 tables:
After running the model, we have post processing operations that can be applied to the final state to calculate cost effectiveness metrics. These have traditionally been governed by the following CSVs:
bg_utility.csvhealthcare_utilization_cost.csvoud_utility.csvoverdose_cost.csvpharmaceutical_cost.csvsetting_utility.csvtreatment_utilization_cost.csvBelow are a breakdown of each file:
Previous: Installation
Next: Run