Skip to content

Calculate Wellbeing Statistics by subgroups for UC analysis outputs #511

Description

@andrewbaxter439

Hi @amorison - building on the improvements in #503 there's a few other key things that the health stats should show which should be simple to incorporate.

Alongside gender subgroups similar subgrouping for age groups, household structures, education. Had set the age groups and household structures previously as:

    List<AgeRange> ageGroups = Arrays.asList(
            new AgeRange(16, 17),
            new AgeRange(18, 24),
            new AgeRange(25, 34),
            new AgeRange(35, 49),
            new AgeRange(50, 64),
            new AgeRange(65, 130)
    );

    List<HouseholdStructure> householdStructures = Arrays.asList(
            new HouseholdStructure(true, true, Gender.Male),
            new HouseholdStructure(true, false, Gender.Male),
            new HouseholdStructure(false, true, Gender.Male),
            new HouseholdStructure(false, false, Gender.Male),
            new HouseholdStructure(true, true, Gender.Female),
            new HouseholdStructure(true, false, Gender.Female),
            new HouseholdStructure(false, true, Gender.Female),
            new HouseholdStructure(false, false, Gender.Female)
    );

Does this now need a new file and new class for WellbeingByHousehold etc.? In previous experimental code I had opted for one Statistics class with an update(filter) method override to get the different splits, e.g.:

 public void update(SimPathsModel model, String gender_s, SimPathsCollector.AgeRange ageRange) {

Would best approach now be to create new files or to change WellbeingByGender to allow other splits?

Activity

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

Metadata

Metadata

Assignees

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