Skip to content

Update Leaving Parental Home process #509

Description

@Mariia-Var

Currently, the SimPaths considers all individuals aged 18+ whose AdultChildFlag = True:

if (demAge == Parameters.AGE_TO_BECOME_RESPONSIBLE) {
setupNewBenefitUnit(true);
considerLeavingHome();
} else if (demAge > Parameters.AGE_TO_BECOME_RESPONSIBLE && Indicator.True.equals(demAdultChildFlag)) {
considerLeavingHome();
}

However, the estimation files also check for the education spell:

* Leave the parental home
global p1_if_condition "ded == 0 & dag >= ${age_leave_parental_home}"

I will adjust this filtering condition to include the check for education spell.
Also, I will remove Leaving Parental Home process from aging() and schedule it as its own Person.Processes.ConsiderLeavingHome event after education level alignment.
Additionaly, I'll introduce MAX_AGE_ADULT_CHILD and MIN_AGE_LEAVE_PH parameters to have additional flexibility for future configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions