ltcf_resample_age#

ltcf_resample_age(exp_age_distr, a)[source]#

Resampling younger ages to better match data

Parameters:
  • exp_age_distr (dict) – age distribution

  • age (int) – age as an integer

Returns:

Resampled age as an integer.

Notes

This is not always necessary, but is mostly used to smooth out sharp edges in the age distribution when spsamp.resample_age() produces too many of one year and under produces the surrounding ages. For example, new borns (0 years old) may be over produced, and 1 year olds under produced, so this function can be customized to correct for that. It is currently customized to model well the age distribution for Seattle, Washington.