Optimises the mortality rates to reproduce a target (equilibrium) age distribution

estimate_mortality_rates(target_age_distribution, starting_mortality_rates)

Arguments

target_age_distribution

Target age distribution. The proportion of the population in each age band. This should sum to 1.

starting_mortality_rates

A vector of mortality rates to initialise the optimisation. This is recommended to be the variable qx from the UN WPP life tables

Value

The sum of squared differences between the target and current age distributions