Respiratory disease with adaptive behavior based on reported (or hospitalized) cases¶
A simple model of a respiratory disease with adaptive behavior determined by the number and rate of change of detected (reported or hospitalized) cases
RespxietyModel(config)
¶
Bases: Model
A simple model of a respiratory disease with adaptive behavior determined by the number and rate of change of detected (reported or hospitalized) cases
Transition from S (susceptible) to E (exposed) depends on the parameter beta, which is
modified by the risk coefficient cr = exp(-sens * p_infection),
where sens is a model parameter representing risk sensitivity, and
p_infection is an individual's perceived infection probability, based on a
time-lagged assessment of reported case counts.
The parameters lrLevel and lrSlope represent the behavioral time lag.
lrLevel is the rate at which individuals assimilate information about case counts, and
lrSlope is the rate at which individuals respond to changes in the trend.
Transition from E occurs either to Id (detected infection) or Iu (undetected infection),
depending on the detection rate, which is a function of time and model parameters as follows:
The detection rate increases from 0 at the start of the simulation to thMax at a rate of
thInc following a logistic function, and optionally decreases to thLow at a rate of thDec.
Source code in compartment/models/respxiety_model/model.py
get_initial_population(admin_zones, compartment_list, **kwargs)
classmethod
¶
Seed the initial infected across the two infectious compartments.
The base implementation seeds a single I compartment; this model
seeds two infectious compartments: U (unreported and/or unhospitalized)
and I (reported and/or hospitalized)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
admin_zones
|
list[dict]
|
Admin zone dicts providing |
required |
compartment_list
|
list[str]
|
Ordered compartment names, used for column indexing. |
required |
**kwargs
|
Any
|
Additional keyword arguments (unused). |
{}
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Initial populations of shape
|