Class FertilityAlignment
java.lang.Object
simpaths.model.FertilityAlignment
- All Implemented Interfaces:
IEvaluation
FertilityAlignment adjusts the probability of fertile women having a child to match total fertility rates implicit in population projections.
The object is designed to assist modification of the intercept of the "fertility" probit models.
A search routine is used to find the value by which the intercept should be adjusted.
If the projected share of the population having a child 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluate(double[] args) Evaluates the discrepancy between the expected (smooth) fertility rate at a candidate adjustment and the target rate.
-
Constructor Details
-
FertilityAlignment
-
-
Method Details
-
evaluate
public double evaluate(double[] args) Evaluates the discrepancy between the expected (smooth) fertility rate at a candidate adjustment and the target rate. Uses sum of probit probabilities rather than stochastic realisations, yielding a smooth, deterministic objective for the root search.- Specified by:
evaluatein interfaceIEvaluation- Parameters:
args- An array of parameters, where args[0] represents the probit intercept adjustment.- Returns:
- target fertility rate minus expected fertility rate at the given adjustment.
-