Class RetirementAlignment

java.lang.Object
simpaths.model.RetirementAlignment
All Implemented Interfaces:
IEvaluation

public class RetirementAlignment extends Object implements IEvaluation
RetirementAlignment adjusts the probability of retiring. The object is designed to assist modification of the intercept of the retirement models (R1a for singles, R1b for persons with a partner). The target (input/alignment_files/alignment_targets_retirement.xlsx) is the share of retired persons among those aged Parameters.MIN_AGE_TO_RETIRE or older with a labour status, the population of inTargetPopulation(Person). Retirement is considered only from that age, so younger persons do not enter the share. The alignment runs just before the Retirement process, when the current activity status labC4 has been cleared for the new year (it is @NullInitialised; labC4L1 holds last year's status). Like Person.updateRetirementStatus(double), it therefore reads the lagged status: everyone aged MIN_AGE_TO_RETIRE or older gets a status this year, those retired last year stay retired, those not retired last year and aged up to Parameters.MAX_AGE_FLEXIBLE_LABOUR_SUPPLY retire with the (adjusted) R1a/R1b probability, and older ones retire for certain. With intertemporal optimisation and a retirement state the decision is deterministic, so the adjustment has no effect on it. A search routine is used to find the value by which the intercept should be adjusted. If the projected share of retired individuals in the target population differs from the desired target by more than a specified threshold, then the intercept is adjusted and the share re-evaluated. Importantly, the adjustment needs to be only found once. Modified intercepts can then be used in subsequent simulations.
  • Constructor Details

    • RetirementAlignment

      public RetirementAlignment(Set<Person> persons)
  • Method Details

    • inTargetPopulation

      public static boolean inTargetPopulation(Person person)
      Whether a person belongs to the population of the retirement target once statuses are set for the year: aged Parameters.MIN_AGE_TO_RETIRE or older, with a labour status. The target is computed on the same population from the initial populations (input/alignment_files/DoFilesTarget/05_retirement_targets_initpopdata.do), and AlignmentStatistics reports the simulated share on it at the end of each year.
    • evaluate

      public double evaluate(double[] args)
      Evaluates the discrepancy between the expected (smooth) retired share at a candidate adjustment and the target share. Uses sum of probit probabilities rather than stochastic realisations, yielding a smooth, deterministic objective for the root search.
      Specified by:
      evaluate in interface IEvaluation
      Parameters:
      args - An array of parameters, where args[0] represents the probit intercept adjustment.
      Returns:
      target retired share minus expected retired share of the target population at the given adjustment.
    • getTargetRetiredShare

      public double getTargetRetiredShare()