= Solution
Assume a constant annual <force of infection> $\lambda>0$ across ages and calendar years. For independent sampled people with ages $a_i>0$ and binary results $y_i$, fit
$$
Y_i\sim\operatorname{Bernoulli}(p_i),\qquad p_i=1-e^{-\lambda a_i}.
$$
Applying the <complementary log-log link> gives
$$
\begin{aligned}
\ln[-\ln(1-p_i)]&=\ln(\lambda a_i)\\
&=\beta_0+\ln a_i,\qquad\beta_0=\ln\lambda.
\end{aligned}
$$
Therefore fit a <binomial regression> with the <complementary log-log link>, an intercept, and \b[$\ln a_i$ as an offset with coefficient fixed at one]. Age is measured in years. An ordinary freely fitted coefficient of age, or even a freely fitted coefficient of $\ln a_i$, would describe a different exposure model. The annual <force of infection> estimate is
$$
\boxed{\widehat\lambda=e^{\widehat\beta_0}\ \text{year}^{-1}}.
$$
An infection-naive person's one-year infection probability is $1-e^{-\widehat\lambda}$, which is approximately $\widehat\lambda$ only when that rate is small.
The <log-likelihood> being maximized is, apart from constants,
$$
\ell(\beta_0)=\sum_i\left[y_i\ln\{1-\exp(-a_ie^{\beta_0})\}-(1-y_i)a_ie^{\beta_0}\right].
$$
A <confidence interval> for $\beta_0$ can be exponentiated to give a positive interval for $\lambda$. For groups of $n_j$ people at a common age $a_j$, use $Y_j\sim\operatorname{Binomial}(n_j,1-e^{-\lambda a_j})$ with the same <offset>. If an age band is broad, use individual ages or average $1-e^{-\lambda a}$ over the band's age distribution instead of treating its midpoint as exact. No numerical estimate is possible without the survey observations.
The biological interpretation assumes that <immunoglobulin G> positivity records previous infection, persists over the relevant ages, and is not substantially produced by maternal antibodies or vaccination. These are conditions to check, rather than conclusions from the fitted curve. Use known-positive and known-negative serum controls to assess the assay threshold, and validate specificity against relevant other infections. Cross-reactive antibodies to other flaviviruses can produce positive <dengue virus> serology, so a positive result need not be a marker specific to <dengue virus> exposure.<Serologic Tests for Dengue Virus by the Centers for Disease Control and Prevention>[IgG Tests: persistence after previous exposure and cross-reactivity with other flaviviruses]{ref}
If independently established assay <diagnostic sensitivity> and <diagnostic specificity> are $Se$ and $Sp$, the observed positive probability is
$$
p_{i,\mathrm{obs}}=Se(1-e^{-\lambda a_i})+(1-Sp)e^{-\lambda a_i}.
$$
Use that observation model in the <binomial likelihood>; it is generally no longer the simple intercept-plus-offset <complementary log-log link> fit. With only the stated survey, one cannot freely estimate $Se$, $Sp$, antibody loss and an arbitrary infection history simultaneously. A single binary result also does not identify how many subsequent infections a person has experienced.
Back to article page