|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
#include <jacardi_employment_static.h>
Classes | |
| struct | FactorTerm |
| struct | Assignment |
| Drawn detailed id + recoded 4-cat id (both NaN when missing). More... | |
| struct | AgeFactors |
| Age-only predictors (precomputed for 19..80). More... | |
Public Member Functions | |
| void | set_coefficients (std::unordered_map< int, std::vector< FactorTerm > > by_category) |
| void | set_recode (std::array< int, category_count+1 > detailed_to_cat4) |
| bool | has_coefficients () const noexcept |
| bool | has_recode () const noexcept |
| std::array< double, category_count > | score_probabilities (unsigned int age, core::Gender gender, int education_id) const |
| Softmax probabilities p_1..p_6 for SCORE checks (indices 0..5 = categories 1..6). | |
| Assignment | initialise (unsigned int age, core::Gender gender, int education_id, Random &rng) const |
| Part A — missing 0..18; else SCORE → DRAW → recode. | |
| Assignment | update (unsigned int age, core::Gender gender, int education_id, const Assignment ¤t, Random &rng) const |
| Part B — missing under 19; first assign if still missing at 19+; else hold (temporary). | |
| int | recode (int employment_id) const |
Static Public Member Functions | |
| static Assignment | hold (const Assignment ¤t) noexcept |
| MAHIMA: Isolated hold — yearly package replaces this path only. | |
| static int | gender_code (core::Gender gender) |
| static AgeFactors | compute_age_factors (int age_capped) |
| static double | factor_value (const std::string &factor, const AgeFactors &age_f, int gender, int education_id) |
Static Public Attributes | |
| static constexpr double | missing = std::numeric_limits<double>::quiet_NaN() |
| static constexpr unsigned int | age_missing_max = 18U |
| static constexpr unsigned int | age_assign_min = 19U |
| static constexpr int | age_cap = 80 |
| static constexpr int | category_count = 6 |
| static constexpr int | category_min = 1 |
| static constexpr int | category_max = 6 |
MAHIMA: Slovenia employment static (partner algo 16 Oct 2026) — P1b after education.
Part A (initialise): start year + still-missing adults. Part B (update): after ageing + education; first SCORE/DRAW at 19+ when missing; otherwise temporary hold (swappable when yearly package arrives).
Person fields: EmploymentDetailed (1..6) and Employment (1..4). Ages 0–18 = NaN. CSV gender: 1 = male, 0 = female. Needs finite education_id at ages 19+.
Serial person loops only — shared Random is not thread-safe (same as education).
|
static |
|
static |
|
static |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
MAHIMA: Isolated hold — yearly package replaces this path only.
| EmploymentStaticTables::Assignment hgps::EmploymentStaticTables::initialise | ( | unsigned int | age, |
| core::Gender | gender, | ||
| int | education_id, | ||
| Random & | rng ) const |
Part A — missing 0..18; else SCORE → DRAW → recode.
| int hgps::EmploymentStaticTables::recode | ( | int | employment_id | ) | const |
| std::array< double, EmploymentStaticTables::category_count > hgps::EmploymentStaticTables::score_probabilities | ( | unsigned int | age, |
| core::Gender | gender, | ||
| int | education_id ) const |
Softmax probabilities p_1..p_6 for SCORE checks (indices 0..5 = categories 1..6).
| void hgps::EmploymentStaticTables::set_coefficients | ( | std::unordered_map< int, std::vector< FactorTerm > > | by_category | ) |
| void hgps::EmploymentStaticTables::set_recode | ( | std::array< int, category_count+1 > | detailed_to_cat4 | ) |
| EmploymentStaticTables::Assignment hgps::EmploymentStaticTables::update | ( | unsigned int | age, |
| core::Gender | gender, | ||
| int | education_id, | ||
| const Assignment & | current, | ||
| Random & | rng ) const |
Part B — missing under 19; first assign if still missing at 19+; else hold (temporary).
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |