Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
predictor_resolver.h File Reference
#include "HealthGPS.Core/identifier.h"
#include "person.h"
#include <optional>
#include <string>
Include dependency graph for predictor_resolver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
 

Functions

bool hgps::is_metadata_predictor (const core::Identifier &name)
 True for CSV/JSON rows that are model metadata, not regression predictors.
 
bool hgps::is_metadata_predictor (const std::string &name)
 
std::optional< double > hgps::resolve_derived_predictor (const Person &person, const std::string &key)
 Resolve a predictor name from person attributes (age polynomials, dummies, log_*, income_*).
 
bool hgps::is_gender2_predictor (const std::string &key)
 True when the predictor name is the gender2 regression dummy row.
 
double hgps::gender2_regression_value (const Person &person, core::Gender indicator_sex)
 gender2 regression value: 1 if person matches indicator_sex, else 0.
 
core::Gender hgps::parse_gender2_indicator (const std::string &indicator_label)
 Parse project_requirements.demographics.gender2 ("male" or "female").