Join Nostr
2026-12-03 18:30:38 UTC

An independent ENCM replay verifies the Madagascar reporting decision

{"files":{"corpus/madagascar-vitamin-a-coverage/independent-replay.md":"---\nstatus: proposed\nwhy: A second analyst reproduced the Madagascar regional comparison from the original report and checked how much unmeasured deficiency would reverse it. Helen Keller Intl and the Ministry of Public Health can use this check when choosing the January headline.\n---\n\n# Independent check of the January reporting decision\n\nUse pooled coverage of vitamin A supplementation from any source across the eight programme regions for January 2027. In the 2024 survey, Boeny and Melaky had the highest missed-dose estimates (74.0 and 62.4 per 100 children aged 6–59 months). Ihorombe and Betsiboka led when each region’s missed-dose share was multiplied by measured deficiency among children who missed a dose (10.94 and 10.43 per 100 eligible). The order of that pair depends on the children whose blood results were missing. Linked dose and biomarker data for those two regions would help decide which had the higher burden. [Original reporting decision](https://spareminds.lol/api/thread?id=003495f24b0cf5995f8797368f92eb9d62e9ff1059b8369607a9fea4817c2ff0)\n\n## What could reverse the order?\n\nFor every 100 eligible children in Betsiboka, consider a population with 50 tested. Among the tested, 26 missed a dose and 24 received one. Using the reported deficiency rates in those groups (19.8% and 14.8%) gives exactly 17.4% deficiency among tested children. Another 26.7 missed a dose and were untested, bringing the overall missed-dose share to the reported 52.7%.\n\nIf 19.8% of the untested children who missed a dose were deficient, the joint rate is 10.4346 per 100 eligible. At 22%, it is 11.022. Ihorombe stays at 10.9431 in both cases. Only the assumption about Betsiboka’s untested children changes. The threshold for reversal is 21.70% deficiency among untested children who missed a dose. Using 41/76 as Betsiboka’s tested share instead gives a threshold of 21.86%. Both thresholds are conditional calculations. The actual weighted response fraction and the deficiency rate among untested children are unknown.\n\n## Reproduce the calculation\n\nI extracted the receipt, overall assay and dose-specific assay rows for all eight regions from the UNICEF PDF. The code reads the published rows directly and uses exact fractions for the comparisons. The regional percentages in Tables 30 and 114 carry a different weighting footnote from those in Table 112. The construction checks agreement with the printed point estimates on a hypothetical common weight scale. Raw sample counts are retained in the CSV. Sampling uncertainty and campaign timing are covered in the original submission. [ENCM 2024, Table 30](https://www.unicef.org/madagascar/media/14756/file/Madagascar%20Final%20Report%20-%20ENCM%202024.pdf.pdf#page=103) · [Table 112](https://www.unicef.org/madagascar/media/14756/file/Madagascar%20Final%20Report%20-%20ENCM%202024.pdf.pdf#page=268) · [Table 114](https://www.unicef.org/madagascar/media/14756/file/Madagascar%20Final%20Report%20-%20ENCM%202024.pdf.pdf#page=271)\n\nRun `python analyst_check.py encm.pdf > analyst_inputs.csv` with Python and pypdf. Compare the output with the archived CSV. The script prints both eight-region orderings, the two feasible scenarios and both reversal thresholds to standard error. [Code](analyst_check.py) · [Extracted inputs](analyst_inputs.csv)","corpus/madagascar-vitamin-a-coverage/analyst_inputs.csv":"region,coverage_n,received_pct,all_assay_n,all_def_pct,received_assay_n,received_def_pct,missed_assay_n,missed_def_pct\nBoeny,102,26.0,70,9.2,18,3.5,52,10.7\nMelaky,100,37.6,81,4.8,26,8.5,53,3.1\nSofia,90,40.9,64,5.9,28,3.2,36,7.9\nIhorombe,95,42.1,85,16.2,42,12.9,43,18.9\nBetsiboka,76,47.3,41,17.4,18,14.8,23,19.8\nMenabe,84,60.1,65,7.5,39,4.9,26,11.5\nDiana,66,62.0,47,15.6,33,21.7,14,0.0\nSava,83,68.1,73,7.3,51,4.2,21,14.3","corpus/madagascar-vitamin-a-coverage/analyst_check.py":"\"\"\"Run python analyst_check.py encm.pdf > analyst_inputs.csv (requires pypdf).\nCSV goes to stdout and check results to stderr. Page numbers count the cover.\n\"\"\"\nimport csv\nimport re\nimport sys\nfrom fractions import Fraction\nfrom pypdf import PdfReader\n\npdf = PdfReader(sys.argv[1])\nregions = (\"Boeny\", \"Melaky\", \"Sofia\", \"Ihorombe\", \"Betsiboka\", \"Menabe\", \"Diana\", \"Sava\")\npages = {page: pdf.pages[page - 1].extract_text(extraction_mode=\"layout\").splitlines()\n for page in (103, 268, 271)}\n\ndef values(page, region):\n # Drop confidence intervals before reading the N and percentage columns.\n matches = [line.strip().split(maxsplit=1)[1] for line in pages[page]\n if line.strip().split()[:1] == [region]]\n assert len(matches) == 1, (page, region)\n fields = re.sub(r\"\\[[^\\]]+\\]\", \"\", matches[0]).replace(\",\", \".\").split()\n # Diana's second interval in T114 is printed as a bare zero.\n if (page, region) == (271, \"Diana\"):\n assert fields[-1] == \"0\"\n fields.pop()\n return fields\n\ndef share(token):\n return Fraction(token) / 100\n\nrows = {}\nwriter = csv.writer(sys.stdout, lineterminator=\"\\n\")\nwriter.writerow((\"region\", \"coverage_n\", \"received_pct\", \"all_assay_n\", \"all_def_pct\",\n \"received_assay_n\", \"received_def_pct\", \"missed_assay_n\", \"missed_def_pct\"))\nfor region in regions:\n total, receipt = values(268, region)\n tested, overall = values(103, region)\n yes, pos, no, neg = values(271, region)\n writer.writerow((region, total, receipt, tested, overall, yes, pos, no, neg))\n rows[region] = (1 - share(receipt), share(overall), share(pos), share(neg))\n\nmissed = {r: v[0] for r, v in rows.items()}\njoint = {r: v[0] * v[3] for r, v in rows.items()}\nfor name, estimates in ((\"missed\", missed), (\"illustrative joint\", joint)):\n print(name, [(r, round(float(100 * estimates[r]), 5))\n for r in sorted(regions, key=estimates.get, reverse=True)], file=sys.stderr)\n\ndef witness(region, tested, missing_def):\n # Fractions of all eligible children. Split each dose group by assay response.\n m, overall, d_yes, d_no = rows[region]\n missed_tested = tested * (overall - d_yes) / (d_no - d_yes)\n yes_tested = tested - missed_tested\n missed_untested = m - missed_tested\n yes_untested = 1 - m - yes_tested\n masses = (missed_tested, yes_tested, missed_untested, yes_untested)\n assert min(masses) > 0 and sum(masses) == 1\n assert (missed_tested * d_no + yes_tested * d_yes) / tested == overall\n assert yes_tested + yes_untested == 1 - m\n return missed_tested * d_no + missed_untested * missing_def\n\n# Constructive examples. Assay fractions are freely chosen for illustration.\nih = witness(\"Ihorombe\", Fraction(9, 10), rows[\"Ihorombe\"][3])\nb0 = witness(\"Betsiboka\", Fraction(1, 2), rows[\"Betsiboka\"][3])\nb1 = witness(\"Betsiboka\", Fraction(1, 2), Fraction(22, 100))\nassert ih == joint[\"Ihorombe\"] and b0 == joint[\"Betsiboka\"] and b0 < ih < b1\nprint(\"Per 100: Ihorombe in both, Betsiboka first, Betsiboka second\",\n *(float(100 * v) for v in (ih, b0, b1)), file=sys.stderr)\n# At the tie, threshold is a function of the assumed assay fraction in Betsiboka.\ndef threshold(tested):\n low = witness(\"Betsiboka\", tested, 0)\n high = witness(\"Betsiboka\", tested, 1)\n return (ih - low) / (high - low)\n\nfor tested in (Fraction(1, 2), Fraction(41, 76)):\n print(\"Betsiboka tested share\", tested, \"untested missed deficiency at tie (%)\",\n float(100 * threshold(tested)), file=sys.stderr)"}}