Class Person
- All Implemented Interfaces:
Comparable<Person>, microsim.agent.Weight, microsim.event.EventListener, microsim.statistics.IDoubleSource, microsim.statistics.IIntSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidprotected voidcohabitation(double probitAdjustment) intprotected DoubleconstrainDhmEstimate(Double healthWbScore0to36) Constrains GHQ12 Level estimates to valid range, 0-36protected DoubleconstrainhealthPsyDstrssEstimate(Double healthPsyDstrss0to12) Constrains GHQ12 Caseness estimates to valid range, 0-12protected DoubleconstrainLifeSatisfactionEstimate(double dls_estimate) Constrains life satisfaction score to valid range, 0-10protected DoubleconstrainSF12Estimate(double sf12) Constrains SF12 (MCS or PCS) estimates to valid range, 0-100booleanprotected voidvoidevaluateSocialCareProvision(double probitAdjustment) protected voidvoidvoidfertility(double probitAdjustment) intintintdoublebooleandoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubleintdoubledoubledoubleintdoubleintintintdoubledoubledoubledoublegetDoubleValue(Enum<?> variableID) doubledoublegetEarningsWeekly(double labourHoursWeekly) doublegetEarningsWeekly(int labourHoursWeekly) intintintdoubledoubleintintdoubledoubledoubledoubledoubleintdoubledoublegetHourlyWageRate(double labourHoursWeekly) doublegetHourlyWageRate(int labourHoursWeekly) doubledoubledoublelonggetId()doublegetImputedIncome(int age) intgetIntValue(Enum<?> variableID) microsim.data.db.PanelEntityKeygetKey()Returns a defensive copy of the field.intgetLabC4()Previous year's weekly labour supply, or null before it has been initialised (unlikegetL1LabourSupplyHoursWeekly(), which throws).intdoubledoubledoubledoublebooleandoubledoublegetLiwwh()intbooleanintintintdoubledoubleintdoubleMethod to obtain private pension contribution (omitting employer contribution) Used for reducing earnings prior to evaluation of taxes and benefitsgetRegressionName(Axis axis) doubledoublelonggetSeed()doubledoubleintbooleanbooleanUKHLS hours-distribution sheet used to draw realised hours (Parameters.USE_UKHLS_LHW_DISTRIBUTION): the one fixed at the start of the last labour-supply choice pass, otherwise the person's current sample type.doubledoublegetWealthNonPensValue(boolean throwError) doublegetWealthPensOpEeContRate(boolean throwError) doublegetWealthPensOpErContRate(boolean throwError) doublegetWealthPensPpContRate(boolean throwError) doublegetWealthPensValue(boolean throwError) doubledoublegetWgt()intgetYear()doubledoubledoubledoublebooleandoubledoubleinthashCode()protected voidhealth()protected voidGenerate EQ5D score from MCS and PCSprotected voidHealth and wellbeing - Mental Component Summary update step 1protected voidHealth and wellbeing - Mental Component Summary update step 2protected voidHealth and wellbeing - GHQ-12 subjective wellbeing, Caseness scale 0-12 step 1protected voidHealth and wellbeing - GHQ-12 subjective wellbeing, Likert scale 0-36 step 1protected voidHealth and wellbeing - GHQ-12 subjective wellbeing, Caseness scale 0-12 step 2protected voidHealth and wellbeing - GHQ-12 subjective wellbeing, Likert scale 0-36 step 2protected voidHealth and wellbeing - Physical Component Summary update step 1protected voidHealth and wellbeing - Physical Component Summary update step 2voidprotected voidbooleaninSchool()booleaninSchool(double probitAdjustment) booleanbooleanTrue while BenefitUnit is scoring the labour-supply choice across candidate hours brackets.booleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidprotected voidHealth and wellbeing - Life satisfaction score 0-10 step 1protected voidHealth and wellbeing - Life satisfaction score 0-10 step 2voidmatchLifetimeIncome(int age, boolean agePlus, double[] sortedZ, List<TemplateIndividual> templateIndividuals) voidprotected voidvoidvoidprotected voidvoidmethod to generate additional person level characteristics for initialisation populationvoidsetBenefitUnit(BenefitUnit newBenefitUnit) voidsetBornInSimulation(boolean demBornInSimFlag) voidsetCareFromInformalFlag(boolean val) voidsetCareHoursFromPartnerWeekly(double hours) voidsetCareHrsFormalWeekL1(double val) voidsetCareHrsInformalWeekL1(double val) voidsetCareNeedFlag(Indicator careNeedFlag) voidsetCareProvidedFlagL1(Indicator careProvision) voidsetClonedFlag(boolean demClonedFlag) voidsetCovidSEISSReceivedFlag(Indicator covidSEISSReceivedFlag) voidsetCovidYLabGross(double covidYLabGross) voidsetCovidYLabGrossL1(double covidYLabGrossL1) voidsetCovidYLabGrossXt5(Quintiles covidYLabGrossXt5) voidvoidsetDemAgePartnerDiffL1(Integer demAgePartnerDiffL1) voidsetDemEthnC6(Ethnicity demEthnC6) voidsetDemLeftPartnerFlag(boolean demLeftPartnerFlag) voidsetDemLifeSatEQ5D(Double demLifeSatEQ5D) voidsetDemMaleFlag(Gender demMaleFlag) voidsetDemPartnerNYear(Integer demPartnerNYear) voidsetDemPartnerNYearL1(Integer demPartnerNYearL1) voidsetDemPartnerStatusL1(Dcpst demPartnerStatusL1) voidsetEducation(Education educationlevel) voidvoidsetEduExitSampleFlag(Indicator eduExitSampleFlag) voidsetEduHighestC4(Education eduHighestC4) voidsetEduHighestC4L1(Education eduHighestC4L1) voidsetEduHighestFatherC4(Education eduHighestFatherC4) voidsetEduHighestMotherC4(Education eduHighestMotherC4) voidsetEduHighestPartnerC4L1(Education eduHighestPartnerC4L1) voidsetEduLeftEduFlag(boolean eduLeftEduFlag) voidsetEduReturnFlag(Indicator eduReturnFlag) voidsetEduSpellFlag(Indicator eduSpellFlag) voidsetEduSpellFlagL1(Indicator eduSpellFlagL1) voidsetEvaluatingLabourChoice(boolean evaluating) voidsetHasTestPartner(boolean demAlignPartnerProcess) voidsetHealthDsblLongtermFlag(Indicator healthDsblLongtermFlag) voidsetHealthDsblLongtermFlagL1(Indicator healthDsblLongtermFlagL1) voidsetHealthMentalMcs(Double healthMentalMcs) voidsetHealthMentalPartnerMcs(Double healthMentalPartnerMcs) voidsetHealthPartnerSelfRatedL1(Dhe healthPartnerSelfRatedL1) voidsetHealthPhysicalPartnerPcs(Double healthPhysicalPartnerPcs) voidsetHealthPhysicalPcs(Double healthPhysicalPcs) voidsetHealthPsyDstrss0to12(Double dhm_ghq) voidsetHealthSelfRated(Dhe health) voidsetHealthSelfRatedL1(Dhe health) voidsetHealthWbScore0to36(Double healthWbScore0to36) voidvoidsetI_demCompHhC4L1(Dhhtp_c4 demCompHhC4L1) voidsetI_demNchild(Integer nbr) voidvoidsetI_demNChild0to2(Indicator idctr) voidvoidsetI_demNchildL1(Integer nbr) voidsetI_demPartnerStatus(Dcpst demPartnerStatus) voidsetI_demRgn(Region region) voidsetI_demYear(Integer i_demYear) voidsetI_yHhQuintilesC5(Ydses_c5 yHhQuintilesC5L1) voidsetIdHousehold(Long idHh) voidsetIoFlag(boolean demIoFlag) voidvoidsetLabC4L1(Les_c4 labC4L1) voidsetLabC7Covid(Les_c7_covid labC7Covid) voidsetLabC7CovidL1(Les_c7_covid labC7CovidL1) voidsetLabHrsWorkNewL1(Integer labHrsWorkNewL1) voidsetLabourSupplyWeekly(Labour labourSupply) voidsetLabStatusPartnerAndOwnC4L1(Lesdf_c4 labStatusPartnerAndOwnC4L1) voidsetLabWageFullTimeHrly(double potentialHourlyEarnings) voidsetLabWageFullTimeHrlyL1(double potentialHourlyEarnings) voidsetLeavePartner(boolean demLeavePartnerFlag) voidvoidsetLtIncome(int maxAge) voidprotected voidmethod to summarise non-labour incomevoidsetPersonContinuousHoursLabourSupplyMap(Map<Labour, Integer> personContinuousHoursLabourSupplyMap) static voidsetPersonIdCounter(long id) voidsetProcessedId(long id) voidsetReceivesBenefitsFlag(boolean yBenReceivedFlag) voidsetReceivesBenefitsFlagNonUC(boolean yBenNonUCReceivedFlag) voidsetReceivesBenefitsFlagUC(boolean yBenUCReceivedFlag) voidvoidsetSampleExit(SampleExit demExitSample) voidsetSocialCareProvision(Indicator provide) voidvoidsetToBePartnered(boolean demBePartnerFlag) voidsetToGiveBirth(boolean toGiveBirth_) voidsetToLeaveSchool(boolean eduLeaveSchoolFlag) voidsetupNewBenefitUnit(boolean automaticUpdateOfBenefitUnits) CREATE NEW BENEFIT UNIT FOR PERSON A new benefit unit is created for someone when: they reach age of maturity - default to parental household (no change in household) they enter a new cohabiting relationship they leave a cohabiting relationship (in which case it is the woman that is allocated a new benefit unit)voidsetupNewBenefitUnit(Person partner, boolean automaticUpdateOfBenefitUnits) protected voidvoidvoidsetWealthNonPensValueL1(Double wealthNonPensValueL1) voidsetWealthPensOpEeContRate(Double wealthPensOpEeContRate) voidsetWealthPensOpErContRate(Double wealthPensOpErContRate) voidsetWealthPensPpContRate(Double wealthPensPpContRate) voidvoidsetWgt(double wgt) voidsetXEquivYear(Double xEquivYear) voidsetXEquivYearL1(Double val) voidsetYBenNonUCReceivedFlagL1(boolean yBenNonUCReceivedFlagL1) voidsetYBenReceivedFlagL1(boolean yBenReceivedFlagL1) voidsetYBenUCReceivedFlagL1(boolean yBenUCReceivedFlagL1) voidsetyCapitalPersMonth(double val) voidsetYEmpPersGrossMonth(double val) voidsetYMiscPersGrossMonth(double yMiscPersGrossMonth) voidvoidvoidsetYPensPersGrossMonth(double val) voidprotected voidprotected voidprotected voidmethod to project investment income where non-pension wealth is not explicitly simulatedvoidvoidvoidvoiddoublemethod to project private pension incomebooleanconsiders retirement statusbooleanupdateRetirementStatus(double probitAdjustment) Considers retirement status, shifting the R1a/R1b probit index by the retirement alignment adjustment (0 unless retirement alignment is on).voidFixes the UKHLS hours-distribution sheet for the coming labour-supply choice pass (called from BenefitUnit.resetLabourStates), so the sample type is resolved once per pass rather than for every candidate hours bracket, which would rerun the partner's atRiskOfWork() each time.
-
Field Details
-
personIdCounter
public static long personIdCounter -
statMScore
-
statFScore
-
countMale
-
countFemale
-
statInverseMillsRatioMaxM
-
statInverseMillsRatioMinM
-
statInverseMillsRatioMaxF
-
statInverseMillsRatioMinF
-
-
Constructor Details
-
Person
public Person() -
Person
public Person(long id) -
Person
public Person(boolean regressionModel) -
Person
-
Person
-
Person
-
-
Method Details
-
cloneCleanup
public void cloneCleanup() -
setAdditionalFieldsInInitialPopulation
public void setAdditionalFieldsInInitialPopulation()method to generate additional person level characteristics for initialisation population -
onEvent
- Specified by:
onEventin interfacemicrosim.event.EventListener
-
fertility
public void fertility() -
fertility
public void fertility(double probitAdjustment) -
updateNonPensionWealth
public void updateNonPensionWealth() -
updatePensionContributionStatus
public void updatePensionContributionStatus() -
getPrivatePensionContributionRate
public double getPrivatePensionContributionRate()Method to obtain private pension contribution (omitting employer contribution) Used for reducing earnings prior to evaluation of taxes and benefits- Returns:
-
updatePensionWealth
public void updatePensionWealth() -
updateRetirementStatus
public boolean updateRetirementStatus()considers retirement status- Returns:
- true if to retire
-
updateRetirementStatus
public boolean updateRetirementStatus(double probitAdjustment) Considers retirement status, shifting the R1a/R1b probit index by the retirement alignment adjustment (0 unless retirement alignment is on). RetirementAlignment evaluates the same probabilities when it searches for the adjustment, so keep the two in step.- Parameters:
probitAdjustment- shift added to the R1a/R1b score- Returns:
- true if to retire
-
healthMentalHM1Level
protected void healthMentalHM1Level()Health and wellbeing - GHQ-12 subjective wellbeing, Likert scale 0-36 step 1Calculates the 'baseline' yearly update to the GHQ-12 likert (level) score (
healthWbScore0to36) based on demographic variables. Runs beforehealthMentalHM2Level().- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.healthWbScore0to36
-
healthMentalHM2Level
protected void healthMentalHM2Level()Health and wellbeing - GHQ-12 subjective wellbeing, Likert scale 0-36 step 2Updates GHQ-12 likert (level) score (
healthWbScore0to36) from the causal effects of economic transitions. Applies separate estimates for Male and Female Persons. Runs afterhealthMentalHM1Level()- See Also:
- Applies to:
- Age 25-64
- Changes the following variables:
Person.healthWbScore0to36
-
healthMentalHM1Case
protected void healthMentalHM1Case()Health and wellbeing - GHQ-12 subjective wellbeing, Caseness scale 0-12 step 1Calculates the 'baseline' yearly update to the GHQ-12 Caseness (cases) score (
healthPsyDstrss0to12) based on demographic variables. Runs beforehealthMentalHM2Case().- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.healthPsyDstrss0to12
-
healthMentalHM2Case
protected void healthMentalHM2Case()Health and wellbeing - GHQ-12 subjective wellbeing, Caseness scale 0-12 step 2Updates GHQ-12 Caseness (cases) score (
healthPsyDstrss0to12) from the causal effects of economic transitions. Applies separate estimates for Male and Female Persons. Runs afterhealthMentalHM1Case()- See Also:
- Applies to:
- Age 25-64
- Changes the following variables:
Person.healthPsyDstrss0to12
-
healthMCS1
protected void healthMCS1()Health and wellbeing - Mental Component Summary update step 1Calculates the 'baseline' yearly update to the MCS score (
healthMentalMcs) based on demographic variables. Runs beforehealthMCS2().- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.healthMentalMcs
-
healthMCS2
protected void healthMCS2()Health and wellbeing - Mental Component Summary update step 2Updates MCS score (
healthMentalMcs) from the causal effects of economic transitions. Applies separate estimates for Male and Female Persons. Runs afterhealthMCS1()- See Also:
- Applies to:
- Age 18-64
- Changes the following variables:
Person.healthMentalMcs
-
healthPCS1
protected void healthPCS1()Health and wellbeing - Physical Component Summary update step 1Calculates the 'baseline' yearly update to the PCS score (
healthPhysicalPcs) based on demographic variables. Runs beforehealthPCS2().- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.healthPhysicalPcs
-
healthPCS2
protected void healthPCS2()Health and wellbeing - Physical Component Summary update step 2Updates PCS score (
healthPhysicalPcs) from the causal effects of economic transitions. Applies separate estimates for Male and Female Persons. Runs afterhealthPCS1()- See Also:
- Applies to:
- Age 18-64
- Changes the following variables:
Person.healthPhysicalPcs
-
lifeSatisfaction1
protected void lifeSatisfaction1()Health and wellbeing - Life satisfaction score 0-10 step 1Calculates the 'baseline' yearly update to the Life Satisfaction score (
demLifeSatScore0to10) based on demographic variables. Runs beforelifeSatisfaction2().- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.demLifeSatScore0to10
-
lifeSatisfaction2
protected void lifeSatisfaction2()Health and wellbeing - Life satisfaction score 0-10 step 2Updates Life Satisfaction score (
demLifeSatScore0to10) from the causal effects of economic transitions. Applies separate estimates for Male and Female Persons. Runs afterlifeSatisfaction1()- See Also:
- Applies to:
- Age 25-64
- Changes the following variables:
Person.demLifeSatScore0to10
-
healthEQ5D
protected void healthEQ5D()Generate EQ5D score from MCS and PCSCalculates an EQ5D score per person from previously updated MCS and PCS scores. Loads conversion parameters selected as 'franks' or 'lawrence' at
Parameters.eq5dConversionParameters. Estimates are truncated to -0.594 to 1.0.- See Also:
- Applies to:
- Age 16+
- Changes the following variables:
Person.demLifeSatEQ5D
-
constrainDhmEstimate
-
constrainhealthPsyDstrssEstimate
-
constrainSF12Estimate
Constrains SF12 (MCS or PCS) estimates to valid range, 0-100- Parameters:
sf12- predicted MCS or PCS score- Returns:
Person.healthMentalMcsorPerson.healthPhysicalPcsscore constrained to 0-100
-
constrainLifeSatisfactionEstimate
Constrains life satisfaction score to valid range, 0-10- Parameters:
dls_estimate- predicted life satisfaction score- Returns:
Person.demLifeSatScore0to10score constrained to 0-10
-
health
protected void health() -
evaluateSocialCareReceipt
protected void evaluateSocialCareReceipt() -
evaluateSocialCareProvision
protected void evaluateSocialCareProvision() -
evaluateSocialCareProvision
public void evaluateSocialCareProvision(double probitAdjustment) -
cohabitation
public void cohabitation() -
cohabitation
protected void cohabitation(double probitAdjustment) -
partnershipDissolution
protected void partnershipDissolution() -
inSchool
public boolean inSchool() -
inSchool
public boolean inSchool(double probitAdjustment) -
leavingSchool
public void leavingSchool() -
initialisePotentialHourlyEarnings
protected void initialisePotentialHourlyEarnings() -
updateFullTimeHourlyEarnings
protected void updateFullTimeHourlyEarnings() -
setyCapitalPersMonth
public void setyCapitalPersMonth(double val) -
setYPensPersGrossMonth
public void setYPensPersGrossMonth(double val) -
getPensionIncomeAnnual
public double getPensionIncomeAnnual() -
updatePrivatePensionIncome
public double updatePrivatePensionIncome()method to project private pension income -
getPensionLumpSum
public double getPensionLumpSum() -
updateInvestmentIncome
protected void updateInvestmentIncome()method to project investment income where non-pension wealth is not explicitly simulated -
setNonLabourIncome
protected void setNonLabourIncome()method to summarise non-labour income -
atRiskOfWork
public boolean atRiskOfWork() -
setEducationLevel
public void setEducationLevel() -
getLiquidWealth
public double getLiquidWealth() -
projectEquivConsumption
protected void projectEquivConsumption() -
updateAttributes
protected void updateAttributes() -
setupNewHousehold
protected void setupNewHousehold() -
setupNewBenefitUnit
public void setupNewBenefitUnit(boolean automaticUpdateOfBenefitUnits) CREATE NEW BENEFIT UNIT FOR PERSON A new benefit unit is created for someone when: they reach age of maturity - default to parental household (no change in household) they enter a new cohabiting relationship they leave a cohabiting relationship (in which case it is the woman that is allocated a new benefit unit)- Parameters:
automaticUpdateOfBenefitUnits- - This is a toggle to control the automatic update of the model's set of benefitUnits, which would cause concurrent modification exception to be thrown if called within an iteration through benefitUnits. There are two possible causes of concurrent modification issues: 1) adding of the new benefitUnit to the model's benefitUnits set and 2) removal of the last person from the benefitUnit when updateHousehold() method is called would lead to the automatic removal of the old house from the model's benefitUnits set. To prevent concurrent modification exception being thrown, set this parameter to false and use the iterator on the benefitUnits to add the new benefitUnit manually e.g. (houseIterator.add(newHouse)). Also the updateHousehold() method will need to be called and the person removed from the old house manually outside the iteration through benefitUnits.
-
setupNewBenefitUnit
-
compareTo
- Specified by:
compareToin interfaceComparable<Person>
-
initialise_les_c6_from_c4
public void initialise_les_c6_from_c4() -
getIntValue
- Specified by:
getIntValuein interfacemicrosim.statistics.IIntSource
-
getDoubleValue
- Specified by:
getDoubleValuein interfacemicrosim.statistics.IDoubleSource
-
equals
-
hashCode
-
getKey
public microsim.data.db.PanelEntityKey getKey()Returns a defensive copy of the field. The caller of this method can do anything they want with the returned Key object, without affecting the internals of this class in any way. -
getPersonCount
public int getPersonCount() -
getDemAge
public int getDemAge() -
getDemAgeSq
public int getDemAgeSq() -
setDemAge
-
getDemMaleFlag
-
getGender
public int getGender() -
setDemMaleFlag
-
getLabC4
-
getStudent
public int getStudent() -
getEducation
public int getEducation() -
setLabC4
-
setLabC7Covid
-
getLabC7Covid
-
getLabC4L1
-
getLabC7CovidL1
-
setLabC7CovidL1
-
getHouseholdStatus
-
getCohabiting
public int getCohabiting() -
getEduHighestC4
-
setEduHighestC4
-
setEduHighestC4L1
-
getEduHighestMotherC4
-
setEduHighestMotherC4
-
getEduHighestFatherC4
-
setEduHighestFatherC4
-
getEduSpellFlag
-
getEduSpellFlagL1
-
setEduSpellFlag
-
setEduSpellFlagL1
-
getLowEducation
public int getLowEducation() -
getMidEducation
public int getMidEducation() -
getHighEducation
public int getHighEducation() -
setEducation
-
getGoodHealth
public int getGoodHealth() -
getBadHealth
public int getBadHealth() -
getHealthStatusConversion
-
getEmployed
public int getEmployed() -
getNonwork
public int getNonwork() -
getEmployedFlagL1
public int getEmployedFlagL1() -
getNonworkFlagL1
public int getNonworkFlagL1() -
setI_demRgn
-
getRegion
-
setRegion
-
getDemStatusHhL1
-
isToGiveBirth
public boolean isToGiveBirth() -
setToGiveBirth
public void setToGiveBirth(boolean toGiveBirth_) -
isToLeaveSchool
public boolean isToLeaveSchool() -
setToLeaveSchool
public void setToLeaveSchool(boolean eduLeaveSchoolFlag) -
getWgt
public double getWgt() -
setWgt
public void setWgt(double wgt) -
getWeight
public double getWeight()- Specified by:
getWeightin interfacemicrosim.agent.Weight
-
getBenefitUnit
-
setBenefitUnit
-
getPartner
-
isPartnered
public boolean isPartnered() -
getPartnerID
-
getLabourSupplyWeekly
-
getLabHrsWorkEnumWeekL1
Previous year's weekly labour supply, or null before it has been initialised (unlikegetL1LabourSupplyHoursWeekly(), which throws). -
getL1LabourSupplyHoursWeekly
public int getL1LabourSupplyHoursWeekly() -
getLabourSupplyHoursWeekly
public int getLabourSupplyHoursWeekly() -
getDoubleLabourSupplyHoursWeekly
public double getDoubleLabourSupplyHoursWeekly() -
setLabourSupplyWeekly
-
isEvaluatingLabourChoice
public boolean isEvaluatingLabourChoice()True while BenefitUnit is scoring the labour-supply choice across candidate hours brackets. While on (and Parameters.useRepresentativeHoursInUtility is true), Labour.getHours returns each bracket's representative hours instead of this person's realised hours. -
setEvaluatingLabourChoice
public void setEvaluatingLabourChoice(boolean evaluating) -
updateUkhlsLhwSheet
public void updateUkhlsLhwSheet()Fixes the UKHLS hours-distribution sheet for the coming labour-supply choice pass (called from BenefitUnit.resetLabourStates), so the sample type is resolved once per pass rather than for every candidate hours bracket, which would rerun the partner's atRiskOfWork() each time. -
getUkhlsLhwSheet
UKHLS hours-distribution sheet used to draw realised hours (Parameters.USE_UKHLS_LHW_DISTRIBUTION): the one fixed at the start of the last labour-supply choice pass, otherwise the person's current sample type. -
getLabourSupplyHoursYearly
public double getLabourSupplyHoursYearly() -
getScaledLabourSupplyYearly
public double getScaledLabourSupplyYearly() -
getGrossEarningsYearly
public double getGrossEarningsYearly() -
getAtRiskOfPoverty
public int getAtRiskOfPoverty() -
getLabWageFullTimeHrly
public double getLabWageFullTimeHrly() -
getDemAgeDiffDesired
public double getDemAgeDiffDesired() -
getYWageDesired
public double getYWageDesired() -
getHealthSelfRated
-
setHealthSelfRated
-
getHealthSelfRatedValue
public double getHealthSelfRatedValue() -
getHealthWbScore0to36
public double getHealthWbScore0to36() -
getDemLifeSatScore0to10
-
getHealthMentalMcs
public double getHealthMentalMcs() -
getHealthPhysicalPcs
public double getHealthPhysicalPcs() -
setHealthMentalMcs
-
setHealthPhysicalPcs
-
populateSocialCareReceipt
-
populateSocialCareReceipt_lag1
-
matchLifetimeIncome
public void matchLifetimeIncome(int age, boolean agePlus, double[] sortedZ, List<TemplateIndividual> templateIndividuals) -
setCareFromInformalFlag
public void setCareFromInformalFlag(boolean val) -
setCareHrsInformalWeekL1
public void setCareHrsInformalWeekL1(double val) -
setCareHrsFormalWeekL1
public void setCareHrsFormalWeekL1(double val) -
setCareProvidedFlagL1
-
setHealthWbScore0to36
-
setHealthSelfRatedL1
-
setHealthWbScore0to36L1
-
getHealthPsyDstrss0to12
-
setHealthPsyDstrss0to12
-
isPsychologicallyDistressed
public int isPsychologicallyDistressed() -
getDemEthnC6
-
setDemEthnC6
-
getYFinDstrssFlag
public boolean getYFinDstrssFlag() -
getCareNeedFlag
-
setCareNeedFlag
-
setEduReturnFlag
-
getEduReturnFlag
-
getEduExitSampleFlag
-
getIdPersOriginal
-
getIdBuOriginal
-
getIdHhOriginal
-
getDemAgeGroup
public int getDemAgeGroup() -
isClonedFlag
public boolean isClonedFlag() -
setClonedFlag
public void setClonedFlag(boolean demClonedFlag) -
getDemPartnerStatus
-
setI_demPartnerStatus
-
getHealthDsblLongtermFlag
-
setHealthDsblLongtermFlag
-
setSocialCareReceipt
-
setSocialCareProvision
-
getHealthDsblLongtermFlagL1
-
setHealthDsblLongtermFlagL1
-
setEduExitSampleFlag
-
isLeftEducation
public boolean isLeftEducation() -
setEduLeftEduFlag
public void setEduLeftEduFlag(boolean eduLeftEduFlag) -
isLeftPartnership
public boolean isLeftPartnership() -
setDemLeftPartnerFlag
public void setDemLeftPartnerFlag(boolean demLeftPartnerFlag) -
getDemPartnerNYear
-
setDemPartnerNYear
-
getDemAgePartnerDiff
-
getYNonBenPersGrossMonth
-
setYNonBenPersGrossMonth
-
getYNonBenPersGrossMonthL1
-
getYMiscPersGrossMonth
-
getYCapitalPersMonth
-
getYPensPersGrossMonth
-
setYMiscPersGrossMonth
public void setYMiscPersGrossMonth(double yMiscPersGrossMonth) -
getYMiscPersGrossMonthL1
-
getYEmpPersGrossMonth
public double getYEmpPersGrossMonth() -
setYEmpPersGrossMonth
public void setYEmpPersGrossMonth(double val) -
getWealthPensValue
-
getWealthPensValue
public double getWealthPensValue(boolean throwError) -
setWealthPensValue
-
getYEmpPersGrossMonthL1
public double getYEmpPersGrossMonthL1() -
getYEmpPersGrossMonthL2
public double getYEmpPersGrossMonthL2() -
getYEmpPersGrossMonthL3
public double getYEmpPersGrossMonthL3() -
getYPersAndPartnerGrossDiffMonthL1
-
getLabStatusPartnerAndOwnC4
-
getLabStatusPartnerAndOwnC4L1
-
setLabC4L1
-
setLabStatusPartnerAndOwnC4L1
-
setYNonBenPersGrossMonthL1
-
setEduHighestPartnerC4L1
-
setHealthPartnerSelfRatedL1
-
setYPersAndPartnerGrossDiffMonthL1
-
setDemPartnerNYearL1
-
setDemAgePartnerDiffL1
-
setDemPartnerStatusL1
-
setLabWageFullTimeHrly
public void setLabWageFullTimeHrly(double potentialHourlyEarnings) -
getLabWageFullTimeHrlyL1
public double getLabWageFullTimeHrlyL1() -
setLabWageFullTimeHrlyL1
public void setLabWageFullTimeHrlyL1(double potentialHourlyEarnings) -
setLiwwh
-
setIoFlag
public void setIoFlag(boolean demIoFlag) -
isToBePartnered
public boolean isToBePartnered() -
setToBePartnered
public void setToBePartnered(boolean demBePartnerFlag) -
getAdultChildFlag
public int getAdultChildFlag() -
getIdHousehold
-
setIdHousehold
-
getXEquivYear
-
setXEquivYear
-
getXEquivYearL1
-
setXEquivYearL1
-
getLabHrsWorkNewL1
-
setLabHrsWorkNewL1
-
getCovidYLabGrossL1
public double getCovidYLabGrossL1() -
setCovidYLabGrossL1
public void setCovidYLabGrossL1(double covidYLabGrossL1) -
getCovidSEISSReceivedFlag
-
setCovidSEISSReceivedFlag
-
getCovidYLabGross
public double getCovidYLabGross() -
setCovidYLabGross
public void setCovidYLabGross(double covidYLabGross) -
getCovidYLabGrossXt5
-
setCovidYLabGrossXt5
-
isReceivesBenefitsFlag
public boolean isReceivesBenefitsFlag() -
setReceivesBenefitsFlag
public void setReceivesBenefitsFlag(boolean yBenReceivedFlag) -
isReceivesBenefitsFlag_L1
public boolean isReceivesBenefitsFlag_L1() -
setYBenReceivedFlagL1
public void setYBenReceivedFlagL1(boolean yBenReceivedFlagL1) -
isReceivesBenefitsFlagUC
public boolean isReceivesBenefitsFlagUC() -
setReceivesBenefitsFlagUC
public void setReceivesBenefitsFlagUC(boolean yBenUCReceivedFlag) -
isReceivesBenefitsFlagUC_L1
public boolean isReceivesBenefitsFlagUC_L1() -
setYBenUCReceivedFlagL1
public void setYBenUCReceivedFlagL1(boolean yBenUCReceivedFlagL1) -
isReceivesBenefitsFlagNonUC
public boolean isReceivesBenefitsFlagNonUC() -
setReceivesBenefitsFlagNonUC
public void setReceivesBenefitsFlagNonUC(boolean yBenNonUCReceivedFlag) -
isReceivesBenefitsFlagNonUC_L1
public boolean isReceivesBenefitsFlagNonUC_L1() -
setYBenNonUCReceivedFlagL1
public void setYBenNonUCReceivedFlagL1(boolean yBenNonUCReceivedFlagL1) -
getEquivalisedDisposableIncomeYearly
public double getEquivalisedDisposableIncomeYearly() -
getDisposableIncomeMonthlyNoNull
public double getDisposableIncomeMonthlyNoNull() -
getDisposableIncomeMonthly
public double getDisposableIncomeMonthly() -
getWageOffer
public double getWageOffer() -
getDisability
public int getDisability() -
getSocialCareReceipt
-
getSocialCareReceiptState
-
getSocialCareProvisionState
public double getSocialCareProvisionState() -
getSocialCareProvision
-
getRetired
public double getRetired() -
setI_demYear
-
getYear
public int getYear() -
setI_demNchild0to17
-
setI_demNChild0to2
-
setI_yHhQuintilesC5
-
setI_demCompHhC4L1
-
setI_demNchild
-
setI_demNchildL1
-
setI_demNchild0to2L1
-
getHourlyWageRate1
public double getHourlyWageRate1() -
getHourlyWageRate
public double getHourlyWageRate() -
getHourlyWageRate
public double getHourlyWageRate(double labourHoursWeekly) -
getHourlyWageRate
public double getHourlyWageRate(int labourHoursWeekly) -
getEarningsWeekly
public double getEarningsWeekly() -
getEarningsWeekly
public double getEarningsWeekly(double labourHoursWeekly) -
getEarningsWeekly
public double getEarningsWeekly(int labourHoursWeekly) -
getNumberChildren017Local
-
getNumberChildrenAllLocal
-
getIndicatorChildren02Local
-
getPersonContinuousHoursLabourSupplyMap
-
setPersonContinuousHoursLabourSupplyMap
-
getLabourSupplySingleDraw
public double getLabourSupplySingleDraw() -
getBenefitUnitRandomUniform
public double getBenefitUnitRandomUniform() -
getCareHrsFormalWeekL1
public double getCareHrsFormalWeekL1() -
getHoursFormalSocialCare
public double getHoursFormalSocialCare() -
getCareHrsInformalWeek
public double getCareHrsInformalWeek() -
getCareHoursFromPartnerWeekly
public double getCareHoursFromPartnerWeekly() -
setCareHoursFromPartnerWeekly
public void setCareHoursFromPartnerWeekly(double hours) -
getCareHoursFromParentWeekly
public double getCareHoursFromParentWeekly() -
getCareHoursFromDaughterWeekly
public double getCareHoursFromDaughterWeekly() -
getCareHoursFromSonWeekly
public double getCareHoursFromSonWeekly() -
getCareHoursFromOtherWeekly
public double getCareHoursFromOtherWeekly() -
getCareHoursProvidedWeekly
public double getCareHoursProvidedWeekly() -
getCareHrsInformalWeekL1
public double getCareHrsInformalWeekL1() -
getCareHrsTotalWeekL1
public double getCareHrsTotalWeekL1() -
getCareHoursFromParent_L1
public double getCareHoursFromParent_L1() -
getCareHoursFromPartner_L1
public double getCareHoursFromPartner_L1() -
getCareHoursFromDaughter_L1
public double getCareHoursFromDaughter_L1() -
getCareHoursFromSon_L1
public double getCareHoursFromSon_L1() -
getCareHoursFromOther_L1
public double getCareHoursFromOther_L1() -
getSocialCareCostWeekly
public double getSocialCareCostWeekly() -
getTestPartner
public boolean getTestPartner() -
setHasTestPartner
public void setHasTestPartner(boolean demAlignPartnerProcess) -
getLeavePartner
public boolean getLeavePartner() -
setLeavePartner
public void setLeavePartner(boolean demLeavePartnerFlag) -
getLowWageOffer
public boolean getLowWageOffer() -
getBornInSimulation
public boolean getBornInSimulation() -
setBornInSimulation
public void setBornInSimulation(boolean demBornInSimFlag) -
getHoursWorkedWeekly
public double getHoursWorkedWeekly() -
getLeisureHoursPerWeek
public double getLeisureHoursPerWeek() -
setSampleExit
-
getSampleExit
-
getFertilityRandomUniform2
public double getFertilityRandomUniform2() -
getCohabitRandomUniform2
public double getCohabitRandomUniform2() -
getRegressionName
-
setProcessedId
public void setProcessedId(long id) -
getSeed
public long getSeed() -
getYPersAndPartnerGrossDiffMonth
-
getId
public long getId() -
getIdMother
-
getIdFather
-
getInheritanceSourceId
-
getToBePartnered
public boolean getToBePartnered() -
setPersonIdCounter
public static void setPersonIdCounter(long id) -
getDemLifeSatEQ5D
-
setDemLifeSatEQ5D
-
getHealthPhysicalPartnerPcs
-
setHealthPhysicalPartnerPcs
-
getHealthMentalPartnerMcs
-
setHealthMentalPartnerMcs
-
getHealthMentalMcsL1
-
getHealthPhysicalPcsL1
-
setLtIncomeDonor
-
getImputedIncome
public double getImputedIncome(int age) -
setLtIncome
public void setLtIncome(int maxAge) -
getYLifeTime
public double getYLifeTime() -
updateLtIncome
public void updateLtIncome() -
getLtIncomeDonor
-
getLiwwh
-
isHousingOwned
public boolean isHousingOwned() -
getEduHighestPartner
-
getHealthPartner
-
getAgeDifferencePartner
-
getIdPartner
-
getWealthPensOpEeContRate
-
getWealthPensOpEeContRate
public double getWealthPensOpEeContRate(boolean throwError) -
setWealthPensOpEeContRate
-
getWealthPensOpErContRate
-
getWealthPensOpErContRate
public double getWealthPensOpErContRate(boolean throwError) -
setWealthPensOpErContRate
-
getWealthPensPpContRate
-
getWealthPensPpContRate
public double getWealthPensPpContRate(boolean throwError) -
setWealthPensPpContRate
-
getPrivatePension
-
getWealthNonPensValue
-
getWealthNonPensValue
public double getWealthNonPensValue(boolean throwError) -
setWealthNonPensValue
-
getWealthNonPensValueL1
-
setWealthNonPensValueL1
-