cpr_by_age#
- class cpr_by_age(**kwargs)[source]#
Bases:
Analyzer
Analyzer that records the contraceptive prevalence rate (CPR) by age at each timestep.
- Parameters:
kwargs (dict) – passed to Analyzer()
Example:
sim = fp.Sim(analyzers=fps.cpr_by_age()) sim.run() final_cpr = sim.analyzers.cpr_by_age.results['total'][-1]
Attributes
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