Calculators for public statistics
Rates, ratios and indices from published definitions, with their confidence bounds and the denominators written out. Each skill states its inputs as a schema and refuses data it cannot use.
14 shown here, each at the exact version the library release of October 9, 2026 serves.
What to watch for
- A rate per 100,000 means nothing without its denominator and its year.
- Small counts need exact Poisson bounds, not a normal approximation.
- Age structure changes crude rates, so compare standardized rates across places.
Components
Calculate the maternal mortality ratio per 100,000 live births
baltor_maternal_mortality_ratioCalculate the maternal mortality ratio per 100,000 live births with exact Poisson confidence bounds from death and birth counts, keeping late maternal deaths out of the ratio and adding companion rates when their denominators are supplied.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- period, maternal_deaths, late_maternal_deaths, live_births, confidence_level, women_reproductive_age_person_years, deaths_women_reproductive_age
Calculate intentional homicide victims per 100,000 population by year and sex
baltor_homicide_rateCalculate intentional homicide victims per 100,000 population by year and sex with exact Poisson bounds and a pooled multi-year rate, counting victims rather than incidents or offenders and keeping attempts and conflict deaths out.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- confidence_level, years
Calculate the unadjusted gender pay gap in mean and median gross hourly earnings
baltor_gender_pay_gapCalculate the unadjusted gender pay gap in mean and median gross hourly earnings from weighted unidentified employee records, overall and by declared breakdown groups, refusing mismatched pay and hours periods.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- currency, earnings_period, hours_period, breakdowns, rows
Calculate Foster-Greer-Thorbecke poverty measures
baltor_fgt_poverty_measuresCalculate the Foster-Greer-Thorbecke poverty headcount, poverty gap and squared poverty gap at a declared poverty line from weighted unit records, with exact period conversion and additive group decomposition.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- welfare_concept, weight_basis, welfare_unit, poverty_line, groups, rows
Calculate Alkire-Foster multidimensional poverty headcount
baltor_alkire_foster_povertyCalculate Alkire-Foster multidimensional poverty headcount, intensity and adjusted headcount ratio from weighted unit deprivation profiles, with exact rational indicator weights, a declared poverty cutoff, censored headcounts and indicator contributions.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- weight_basis, indicators, poverty_cutoff, missing_policy, groups, rows
Calculate a directly age-standardized rate with Fay-Feuer gamma confidence bounds
baltor_direct_age_standardizationCalculate a directly age-standardized rate with Fay-Feuer gamma confidence bounds from age-specific event counts, person-years and a caller-supplied standard population, refusing gaps, overlaps and mismatched age groups.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- rate_multiplier, confidence_level, age_groups
Calculate administrative vaccination coverage against target populations
baltor_vaccination_coverage_dropoutCalculate administrative vaccination coverage for declared antigen doses against explicit target-population denominators, dose-to-dose dropout rates and zero-dose estimates, flagging coverage above 100 percent and negative dropout instead of hiding them.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- period, areas, dropout_pairs, zero_dose_reference
Score minimum dietary diversity for women and young children
baltor_dietary_diversityScore minimum dietary diversity for women (10 food groups, at least 5) or for children aged 6 to 23 months (8 food groups, at least 5) from weighted unidentified food-group recall records, keeping unknown answers apart from foods not consumed.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- scheme, groups, rows
Calculate moderate-or-severe and severe food insecurity prevalence
baltor_fies_prevalenceCalculate moderate-or-severe and severe food insecurity prevalence from a weighted Food Insecurity Experience Scale raw-score distribution with caller-supplied per-raw-score probabilities or raw-score thresholds, keeping incomplete responses out of the denominator.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- method, raw_scores, incomplete_responses, probabilities, thresholds, population
Calculate the prevalence of undernourishment
baltor_undernourishment_prevalenceCalculate the prevalence of undernourishment as the share of a lognormal habitual dietary energy intake distribution below a minimum dietary energy requirement, from caller-supplied mean intake, coefficient of variation and sex-age requirement groups.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- mean_intake_per_person_day, coefficient_of_variation, requirement, population, cv_sensitivity
Calculate crop yield gaps between actual and potential or water-limited yields
baltor_crop_yield_gapCalculate crop yield gaps between actual and potential or water-limited yields for zones of one crop, standardizing yield units and grain moisture, weighting by harvested area and reporting the exploitable gap at a declared attainable fraction.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- crop_id, standard_moisture_pct, attainable_fraction, zones
Calculate heating and cooling degree days from bounded daily temperature extrema
baltor_degree_day_coverageCalculate heating and cooling degree days from bounded daily temperature extrema while exposing calendar gaps and unit assumptions for energy-efficiency analysis.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- start_date, end_date, temperature_unit, base_temperature, observations
Calculate social protection coverage shares for declared population groups
baltor_social_protection_coverageCalculate social protection coverage shares for declared population groups from scheme beneficiary counts with explicit person denominators, refusing non-person count units and giving bounds when people may receive more than one benefit.
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- reference_date, groups, schemes
Give your agent these components
Your harness downloads them through Baltor with Pro, $49 a month. Cancel any time from your account page.
More from Deterministic skills
- Statistics for comparing resultsCompare two models, two prompts or two harness setups with statistics that hold up: calibration, conformal intervals, confidence sequences, covariance shrinkage and kernel two-sample tests.
- Checks for agent workGive each unit of agent work one typed outcome, count the independent evidence behind a claim, and compare candidates only on the rows they all completed.
- Records, schedules and budgetsCritical paths, earned value, shift rosters, appointment slots and retention dates as pure functions of JSON input.
- Algorithms that show their workAlgorithms that report each step: principal components without NumPy, sorting and union-find traces, rule based inference closures, collision clearance and resumable render plans.
- Geometry and mesh algorithmsPure Python geometry whose glTF output loads in Godot: triangulation, convex hulls, polyline simplification, polygon offsets, subdivision, curves and gears.
- Harness toolsTools your coding agent can call.
- Corner casesThe inputs that break code, ready to test.
- Stop starting from nothingFor a developer whose coding agent starts every task from nothing: give each step the guidance and reusable code it needs.
- More efficient operationGive each step only the context, files and tools it asks for, reuse code that already exists, and measure the effect on your own task.
- Harness FilesSkills, instruction files, tools, hooks and settings your harness picks up: what they are, how a harness gets them, and the setup for each harness.
- GalleryBrowse Baltor's original Godot shaders, procedural textures, meshes and Blender tools, each with the render its engine check recorded.
- Pi and Gemma 4 on Ollama CloudPi with Gemma 4 31B on Ollama Cloud searched the library, installed a skill, and a new Pi session loaded and used it.