Class InSchoolAlignment

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

public class InSchoolAlignment extends Object implements IEvaluation
InSchoolAlignment adjusts the probability of being a student. The object is designed to assist modification of the intercept of the "inSchool" models. A search routine is used to find the value by which the intercept should be adjusted. If the projected share of students in the 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

    • InSchoolAlignment

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

    • evaluate

      public double evaluate(double[] args)
      Evaluates the discrepancy between the expected (smooth) student 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. The adjustment only affects the E1a model (continuing students deciding whether to stay). The E1b model (re-entry) does not use the adjustment.
      Specified by:
      evaluate in interface IEvaluation
      Parameters:
      args - An array of parameters, where args[0] represents the probit intercept adjustment.
      Returns:
      target student share minus expected student share at the given adjustment.
    • getTargetStudentShare

      public double getTargetStudentShare()