src.create_initial_states.task_create_background_characteristics

Create a synthetic population that is representative of Germany.

Module Contents

Functions

task_create_initial_states_microcensus(depends_on, n_hhs, produces)

_build_initial_states(mc, county_probabilities, work_daily_dist, work_weekly_dist, other_daily_dist, other_weekly_dist, n_households, seed, no_vaccination_share)

_prepare_microcensus(mc)

_create_mc_hh_id(row)

_sample_mc_hhs(mc, hh_probabilities, n_households, seed)

_draw_counties(hh_ids, county_probabilities, seed)

Draw for each household to which county and federal state it belongs to.

_create_occupation(df)

_create_educ_contact_priority(df)

Create an educ contact priority Series.

_only_keep_relevant_columns(df)

Attributes

_DEPENDENCIES[source]
task_create_initial_states_microcensus(depends_on, n_hhs, produces)[source]
_build_initial_states(mc, county_probabilities, work_daily_dist, work_weekly_dist, other_daily_dist, other_weekly_dist, n_households, seed, no_vaccination_share)[source]
_prepare_microcensus(mc)[source]
_create_mc_hh_id(row)[source]
_sample_mc_hhs(mc, hh_probabilities, n_households, seed)[source]
_draw_counties(hh_ids, county_probabilities, seed)[source]

Draw for each household to which county and federal state it belongs to.

_create_occupation(df)[source]
_create_educ_contact_priority(df)[source]

Create an educ contact priority Series.

The values are 0 for anyone above 12 and uniform from 0 to 1 below. Children in households where no adult is retired or stays home have a higher educ contact priority than chidldren where at least one adult is at home.

_only_keep_relevant_columns(df)[source]