Therapeutic Inertia Model
Model therapeutic inertia, the variety of reasons why a treatment algorithm might deviate from clinical guidelines.
- class vivarium_public_health.treatment.therapeutic_inertia.TherapeuticInertia[source]
Produce a population-level therapeutic inertia value.
At setup a single scalar therapeutic inertia value is drawn from a triangular distribution parameterized by
triangle_min,triangle_max, andtriangle_mode. This value represents the probability that treatment is not escalated during a healthcare visit and is exposed via thetherapeutic_inertiapipeline.- CONFIGURATION_DEFAULTS: dict[str, Any] = {'therapeutic_inertia': {'triangle_max': 0.9, 'triangle_min': 0.65, 'triangle_mode': 0.875}}
A dictionary containing the defaults for any configurations managed by this component. An empty dictionary indicates no managed configurations. Components will look for a
data_sourcesblock in this dictionary to build lookup tables automatically.
- setup(builder)[source]
Set up the component by drawing a therapeutic inertia value and registering the pipeline.
- initialize_therapeutic_inertia(builder)[source]
Draw a single therapeutic inertia value from the configured triangular distribution.
The triangular distribution is parameterized by
triangle_min,triangle_max, andtriangle_modefrom the component’s configuration. The resulting scalar is used for the entire simulation.