Skip to content

Waning effect classes

The following classes are nested within interventions (both individual-level and node-level) to indicate how their efficacy wanes over time. They can be used with several parameters including Blocking_Config, Killing_Config, and Waning_Config. Note that waning effect parameters do not control the overall duration of an intervention and are not assigned probabilistically.

Note

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Parameters are case-sensitive. For Boolean parameters, set to 1 for true or 0 for false.
Minimum, maximum, or default values of "NA" indicate that those values are not applicable for
that parameter.

EMOD does not use true defaults; that is, if the dependency relationships indicate that a 
parameter is required, you must supply a value for it. However, many of the tools used to work 
with EMOD will use the default values provided below.

JSON format does not permit comments, but you can add "dummy" parameters to add contextual
information to your files. Any keys that are not EMOD parameter names will be ignored by the
model.

See the example below that uses a mix of different waning effect classes and the tables below that describe all parameters that can be used with each waning effect class.

link

WaningEffectBox

The efficacy is held at a constant rate until it drops to zero after the user-defined duration.

link

Parameter Example Description Type Min Max Default
Box_Duration link The box duration of the effect in days. float 0 100000 100
Initial_Effect link Strength of the effect, which remains constant until the duration is complete, as specified with the Box_Duration parameter for the WaningEffectBox class. float 0 1 1

WaningEffectBoxExponential

The initial efficacy is held for a specified duration, then the efficacy decays at an exponential rate where the current effect is equal to Initial_Effect - dt/Decay_Time_Constant.

link

Parameter Example Description Type Min Max Default
Box_Duration link The box duration of the effect in days. float 0 100000 100
Decay_Time_Constant link The exponential decay length, in days, where the current effect is equal to Initial_Effect - dt/Decay_Time_Constant (dt equal to delta time). float 0 100000 100
Initial_Effect link The initial efficacy, held for a duration as specified with the Box_Duration parameter and then decaying at an exponential length (in days), where the current effect is equal to Initial_Effect - dt/Decay_Time_Constant (dt equal to delta time). float 0 1 1

WaningEffectCombo

The WaningEffectCombo class is used within individual-level interventions and allows for specifiying a list of effects when the intervention only has one WaningEffect defined. These effects can be added or multiplied.

link

Parameter Example Description Type Min Max Default
Initial_Effect link Strength of the effect, which remains constant when using with the WaningEffectConstant class. float 0 1 1

WaningEffectConstant

The efficacy is held at a constant rate.

link

Parameter Example Description Type Min Max Default
Initial_Effect link Strength of the effect, which remains constant when using with the WaningEffectConstant class. float 0 1 1

WaningEffectExponential

The efficacy decays at an exponential rate where the current effect is equal to Initial_Effect - dt/Decay_Time_Constant.

link

Parameter Example Description Type Min Max Default
Decay_Time_Constant link The exponential decay length, in days, where the current effect is equal to 1 - dt/Decay_Time_Constant (dt equal to delta time). float 0 100000 100
Initial_Effect link The initial efficacy, held for a specified duration (in days) as specified with the Box_Duration parameter. After this duration the efficacy decays at an exponential decay length (in days), where the current effect is equal to Initial_Effect - dt/Decay_Time_Constant (dt equal to delta time). float 0 1 1

WaningEffectMapLinear

The efficacy decays based on the time since the start of the intervention. This change is defined by a map of time to efficacy values in which the time between time/value points is linearly interpolated. When the time since start reaches the end of the times in the map, the last value will be used unless the intervention expires. If the time since start is less than the first value in the map, the efficacy will be zero. This can be used to define the shape of a curve whose magnitude is defined by the Initial_Effect multiplier.

link

Parameter Example Description Type Min Max Default
Durability_Map link The time, in days, since the intervention was distributed and a multiplier for the Initial_Effect. JSON object nan nan nan
Expire_At_Durability_Map_End link Set to 1 to let the intervention expire when the end of the map is reached. boolean 0 1 0
Initial_Effect link The multiplier used to define the magnitude of the shape of the curve, as specified when using the parameters with the WaningEffectMapLinear class. float 0 1 1
Reference_Timer link The timestamp at which linear-map should be anchored. integer 0 2.14748e+09 0
Times link An array of days. array of floats 0 999999 nan
Values link An array of values to match the defined Times. array of floats 0 3.40282e+38 nan

WaningEffectMapLinearAge

Similar to WaningEffectMapLinear, except that the efficacy decays based on the age of the individual who owns the intervention instead of the time since the start of the intervention.

link

Parameter Example Description Type Min Max Default
Durability_Map link The time, in days, since the intervention was distributed and a multiplier for the Initial_Effect. JSON object nan nan nan
Initial_Effect link The multiplier used to define the magnitude of the shape of the curve, as specified when using the parameters with the WaningEffectMapLinearAge class. float 0 1 1
Times link An array of years. array of floats 0 125 nan
Values link An array of values to match the defined Times. array of floats 0 3.40282e+38 nan

WaningEffectMapLinearSeasonal

Similar to WaningEffectMapLinear, except that the map will repeat itself every 365 days. That is, the time since start will reset to zero once it reaches 365. This allows you to simulate seasonal effects.

link

Parameter Example Description Type Min Max Default
Durability_Map link The time, in days, since the intervention was distributed and a multiplier for the Initial_Effect. JSON object nan nan nan
Initial_Effect link The multiplier used to define the magnitude of the shape of the curve, as specified when using the parameters with the WaningEffectMapLinearSeasonal class. float 0 1 1
Times link An array of days. array of floats 0 365 nan
Values link An array of values to match the defined Times. array of floats 0 3.40282e+38 nan

WaningEffectMapPiecewise

Similar to WaningEffectMapLinear, except that the data is assumed to be constant between time/value points (no interpolation). If the time since start falls between two points, the efficacy of the earlier time point is used.

link

Parameter Example Description Type Min Max Default
Durability_Map link The time, in days, since the intervention was distributed and a multiplier for the Initial_Effect. JSON object nan nan nan
Expire_At_Durability_Map_End link Set to 1 to let the intervention expire when the end of the map is reached. boolean 0 1 0
Initial_Effect link The multiplier used to define the magnitude of the shape of the curve, as specified when using the parameters with the WaningEffectMapPiecewise class. float 0 1 1
Reference_Timer link The timestamp at which linear-map should be anchored. integer 0 2.14748e+09 0
Times link An array of days. array of floats 0 999999 nan
Values link An array of values to match the defined Times. array of floats 0 3.40282e+38 nan

WaningEffectRandomBox

The efficacy is held at a constant rate until it drops to zero after a user-defined duration. This duration is randomly selected from an exponential distribution where Expected_Discard_Time is the mean.

link

Parameter Example Description Type Min Max Default
Expected_Discard_Time link The mean time, in days, of an exponential distribution of the duration of the effect of an intervention (such as a vaccine or bed net). Specify how this effect decays over time using one of the Waning effect classes. float 0 100000 100
Initial_Effect link Strength of the effect, which remains constant until the duration is complete when using with the WaningEffectRandomBox class. float 0 1 1