src.policies.find_people_to_vaccinate

Module Contents

Functions

find_people_to_vaccinate(receives_vaccine, states, params, seed, vaccination_shares, init_start)

Find people that have to be vaccinated on a given day.

find_people_to_vaccinate(receives_vaccine, states, params, seed, vaccination_shares, init_start)[source]

Find people that have to be vaccinated on a given day.

On the init_start date all individuals that should have been vaccinated until that day get vaccinated. Since vaccinations take effect within three weeks and the burn in period is four weeks this does not lead to jumps in the simulation period.

Parameters
  • states (pandas.DataFrame) – States DataFrame that must contain the column vaccination_rank. This column is a float with values between zero and one. Low values mean that people get vaccinated early.

  • params (pandas.DataFrame) – not used.

  • seed (int) – not used.

  • vaccination_shares (pandas.Series) – Series with a date index. For each day the value indicates the share of people who get vaccinated on that day.

  • no_vaccination_share (float) – Share of people who refuse to get vaccinated.

  • init_start (pd.Timestamp) – start date of the burn in period. On the init_start all vaccinations that have been done until then are handed out on that day.