Equal-margins allocation of a fixed health budget across programmes with diminishing returns
alloc(a_j, c_j, B) = (x_j, lambda, k, H)
Takes a health curve for each of J programmes, written here with the parameters a_j and c_j, and a budget B, and returns the spending x_j on each programme that gives the most total health, the health lambda bought by the last pound of budget, its inverse k and the total health H. This is the article's constrained maximisation with smooth curves, where every funded programme stops at the same marginal health per pound. HE-FM-ALLE-001 solves it for two programmes on a stated curve and HE-CF-ALLE-001 for any number. When each extra pound buys the same health within a programme the allocation is the league-table fill of HE-FN-CELT-001. The article's worked example runs on that record although its tranches are not independent programmes, because tranches with falling yields enter HE-CF-CELT-001 as rows in rising ICER order, so each is reached after the one before it, giving 164 QALYs and the critical ratio of HE-FM-CELT-002, about 16,667 pounds per QALY (derived). Whole programmes are HE-FN-IPH-001. The article's other displayed and worked quantities are live and not restated here. The threshold as spending over health at the margin is HE-FM-CET-001, net health benefit is HE-FM-CET-002, a gain from moving one tranche is HE-FM-CET-002 with k set by the health given up, the average cost per QALY is HE-FM-ACER-001, the input-side ratios TE and AE are HE-FM-EFF-002, whose score HE-ER-EFF-002 warns against reading as programme allocation, and the welfare loss of insurance-induced care is HE-FM-MH-001. Notation follows the Allocative Efficiency article.
Equal-margins allocation of a budget between two programmes with logarithmic health curves
k_1 = (B + c_1) / a_1; k_2 = (B + c_2) / a_2; k_12 = (B + c_1 + c_2) / (a_1 + a_2); k = min(min(k_1, k_2), k_12); x_1 = max(0, a_1 * k - c_1); x_2 = max(0, a_2 * k - c_2); lambda = 1 / k; H = a_1 * log(1 + x_1 / c_1) + a_2 * log(1 + x_2 / c_2)
