change_initiation_prob#
- class change_initiation_prob(year=None, prob_use_intercept=0.0, verbose=False, **kwargs)[source]#
Bases:
InterventionIntervention to change the probabilty of contraception use trend parameter in contraceptive choice modules that have a logistic regression model.
- Parameters:
year (float) – The year in which this intervention will be applied
prob_use_intercept (float) – A number that changes the intercept in the logistic regression model
/ (p_use = 1)
Attributes
auto_state_listList of "automatic" states with boolean type (ss.BoolState) that were added via define_states()
dtGet the current module timestep
has_productCheck if the intervention has a product
nowShortcut to self.t.now()
state_dictReturn a flat dictionary (objdict) of all states
state_listReturn a flat list of all states (ss.Arr objects)
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods