change_initiation#
- class change_initiation(years=None, eligibility=None, perc=0.0, annual=True, force_theoretical=False, **kwargs)[source]#
Bases:
Intervention
Intervention that modifies the outcomes of whether women are on contraception or not Select a proportion of women and sets them on a contraception method.
- Parameters:
years (list, float) – The year we want to start the intervention. if years is None, uses start and end years of sim as defaults if years is a number or a list with a single lem,ent, eg, 2000.5, or [2000.5], this is interpreted as the start year of the intervention, and the end year of intervention will be the eno of the simulation
eligibility (callable) – callable that returns a filtered version of people eligible to receive the intervention
perc (float) –
a value between 0 and 1 indicating the x% extra of women who will be made to select a contraception method . The proportion or % is with respect to the number of women who were on contraception:
the previous year (12 months earlier)?
at the beginning of the intervention.
annual (bool) – whether the increase, perc, represents a “per year” increase.
Attributes
has_product
Check if the intervention has a product
now
Shortcut to self.t.now()
states
Return a flat list of all states
statesdict
Return a flat dictionary (objdict) of all states
ti
Get the current module timestep
timevec
Shortcut to self.t.timevec
Methods