Education#

class Education(pars=None, location=None, **kwargs)[source]#

Bases: Connector

Attributes

auto_state_list

List of "automatic" states with boolean type (ss.BoolState) that were added via define_states()

dt

Get the current module timestep

now

Shortcut to self.t.now()

state_dict

Return a flat dictionary (objdict) of all states

state_list

Return a flat list of all states (ss.Arr objects)

ti

Get the current module timestep

timevec

Shortcut to self.t.timevec

Methods

init_results()[source]#

Initialize results

set_objective_dists(objective_data)[source]#

Return an educational objective distribution based on provided data. The data should be provided in the form of a pandas DataFrame with

“edu” and “percent” as columns.

Returns:

An ss.Dist instance that returns an educational objective for newly created agents

init_post()[source]#

Initialize with educational attainment based on attainment data, if provided.

start_education()[source]#

Begin education. TODO, this assumes everyone starts, but in reality, some may not start school or start later

interrupt_education()[source]#

Interrupt education due to pregnancy. This method hinders education progression if a woman is pregnant and towards the end of the first trimester

resume_education()[source]#

# Basic mechanism to resume education post-pregnancy: # If education was interrupted due to pregnancy, resume after 9 months pospartum () # TODO: check if there’s any evidence supporting this assumption

update_results()[source]#

Update results for education module