Abstract
The age dynamics of sexual partnership formation determine patterns of sexually transmitted disease transmission and have long been a focus of researchers studying human immunodeficiency virus. Data on selfreported sexual partner age distributions are available from a variety of sources. We sought to explore statistical models that accurately predict the distribution of sexual partner ages over age and sex. We identified which probability distributions and outcome specifications best captured variation in partner age and quantified the benefits of modelling these data using distributional regression. We found that distributional regression with a sinharcsinh distribution replicated observed partner age distributions most accurately across three geographically diverse data sets. This framework can be extended with wellknown hierarchical modelling tools and can help improve estimates of sexual agemixing dynamics.
Introduction
Patterns in sexual mixing across ages determine patterns of transmission of sexually transmitted infections (STIs). Consequently, sexual agemixing has been of great interest to researchers studying the human immunodeficiency virus (HIV) since the beginning of the global epidemic. Anderson et al., 1992 used a model of partnership formation to predict that mixing between young women and older men would amplify the alreadysubstantial effect of HIV on population growth. Garnett and Anderson, 1994 used a mathematical model to show that patterns of agemixing could substantially influence the magnitude and timing of hypothetical epidemic trajectories, whereas Hallett et al., 2007 demonstrated that delaying sexual debut and increasing agesimilar partnerships could reduce an individual’s risk of HIV infection in a highly endemic setting.
These modelling studies have been complemented by analyses of survey and population cohort data on agemixing patterns. Gregson et al., 2002 and Schaefer et al., 2017 observed that individuals with older partners were at greater risk of HIV infection in a generalpopulation cohort in Zimbabwe. Ritchwood et al., 2016 and MaughanBrown et al., 2016 found that larger age differences were associated with more risky sexual behaviour in surveys of young South African people. Similarly, Akullian et al., 2017 found that partner age was an important risk factor for HIV infection in a cohort study in rural South Africa. On the other hand, Harling et al., 2014 found that agedisparate relationships were not associated greater risk of HIV acquisition in young women in South Africa.
These results underscore the importance of considering agemixing dynamics when designing and evaluating HIV prevention strategies, and, consequently, the importance of measuring them accurately. For example, an intervention aiming to prevent new HIV infections among young women could be attenuated by high prevalence among older men. Identifying changes in sexual partner age distributions and attributing them to interventions might even be a valuable end by itself, in which case accurate measurement must be complemented by an effective modelling strategy.
Data about sexual partner agemixing are routinely collected by longterm cohort studies (such as those that comprise the Analysing Longitudinal Populationbased HIV/AIDS data on Africa, or ALPHA, Network) and largescale household surveys (such as the Demographic and Health Surveys) (The DHS program, 2021; Reniers et al., 2016). Typically, these data consist of the respondent’s age and sex and the ages of their sexual partners in the last 12 months. These data are highly variable, skewed, and often deviate substantially from conventional parametric distributions, such as the normal distribution or the gamma distribution (Beauclair et al., 2018).
One may consider statistical modelling approaches for the distribution of partner age as a function of respondent age and sex. Some notable previous approaches to modelling partner age distributions include (Morris, 1991), who developed a loglinear modelling framework to quantify selective mixing from contingency tables, and applied the model to ordinal categorical data on husbands’ and wives’ ages in the United States. Hallett et al. used a loglogistic distribution to continuously model partner age differences for women aged 15–45 years, assuming that the partner age difference distributions did not vary over respondent age. More recently, as an input to a model of Chlamydia trachomatis, Smid et al., 2018 fit skew normal distributions to each age/sexspecific partner age distribution and used a secondary regression model to smooth the estimated skew normal parameters across respondent age. They observed substantial changes in the estimated skew normal parameters with respect to respondent age. Although this method allows for nonlinear variation across respondent age, their twostage estimation process makes uncertainty propagation complex. Replacing this process with a single ‘distributional’ regression model, in which all distributional parameters (e.g. the location, scale, skewness, etc.) are modelled as functions of data (Kneib and Umlauf, 2017), allows for complex variation across respondent age while still robustly incorporating uncertainty. Another elegant approach has been the development of exponentialfamily random graph models (ERGMs) to infer full partnership networks from individuals reports of the partnerships (’egocentric’ observations of the network) (Krivitsky and Morris, 2017). These stochastic methods, along with the broader suite of ERGMs (Hunter et al., 2008a; Hunter et al., 2008b; Krivitsky et al., 2011; Krivitsky and Handcock, 2014), can model social network data accurately with robust incorporation of covariates, and tools exist to incorporate their estimates into epidemic models (Jenness et al., 2018; Morris, 1993).
We focused on evaluating parametric models for continuously representing the distribution of sexual partner ages conditional on the respondent’s age. We were specifically interested in distributions that introduce parameters to control tail weight, which may capture intergenerational mixing that could sustain endemic HIV and STI transmission (Akullian et al., 2017; Schaefer et al., 2017; Harling et al., 2014). This led us to test the ability of the fourparameter ‘sinharcsinh’ distribution originally proposed by Jones and Pewsey, 2009 to fit to these data.
We hypothesised that integrating the sinharcsinh distribution into a distributional modelling framework would allow us to replicate observed partner age distributions more accurately than prior modelling strategies. We tested this theory by comparing a variety of candidate strategies, which varied along three dimensions: the parametrisation of the dependent variable, the choice of distribution, and the method for incorporating variability across respondent age and sex.
Materials and methods
Data
In this work, we compared a set of probability distributions and regression specifications to identify a modelling strategy that produced stable and accurate estimates of sexual partner age distributions with wellquantified uncertainty. We conducted two model comparison experiments to identify which of a set of strategies best replicated partner age distributions. First, in our probability distribution comparison, we identified which of a set of distributiondependent variable combinations fit best to age/sexspecific data subsets, and then, in our distributional regression evaluation, we tested whether distributional regression methods could be used to estimate age/sexspecific partner age distributions by sharing strength across observations. In distributional regression, all parameters of a distribution can vary with respect to data, so it allowed us to smooth and interpolate even higher order moments of observed partner ages. We divided the model comparison into two separate experiments to make the probability distribution comparison as fair as possible (accounting for the possibility that certain distributions would perform particularly well under certain regression specifications).
We analysed data on sexual partner age distributions from three sources: the Africa Centre Demographic Information System, a health and demographic surveillance site in uMkhanyakude district, South Africa collected by the African Health Research Institute (AHRI) (Gareta et al., 2021; Gareta et al., 2020a; Gareta et al., 2020b), the Manicaland General Population Cohort in Zimbabwe (Gregson et al., 2017), and the 2016–2017 Demographic and Health Survey (DHS) in Haiti (Institut Haïtien de l’Enfance, 2018).
The AHRI and Manicaland studies are multiround, open, general population cohort studies designed to measure the dynamics of HIV, sexual risk behaviour, and demographic change in subSaharan African settings. We used rounds one through six of the Manicaland study, collected between 1998 and 2013. The AHRI data we used were collected annually between 2004 and 2018. The 2016–17 Haiti DHS was a large, nationally representative household survey conducted in 2016 and 2017. We did not incorporate the weights associated with the survey into this analysis because our primary interest was in statistical modelling of partner age distribution as a function of respondent age, not producing population representative statistics for the Haitian population.
These data sets consisted of individuals’ reports of their own age and sex and the ages of each of their sexual partners from the last year. Let $i\in (1,\mathrm{\dots},N)$ index reported partnerships, ${a}_{i}\in [15,64]$ and ${s}_{i}\in \{0,1\}$ be the age and sex of the respondent in partnership $i$ with $s=1$ indicating female, and p_{i} be the age of nonrespondent partner in partnership $i$. These questionnaires do not ask specifically about partner sex, but selfreporting of nonheterosexual partnerships in these populations is thought to be low (Arias Garcia et al., 2020; World Health Organization and UNAIDS, 2020).
Respondents in each of these data sets are disproportionately likely to report that their partners’ ages are multiples of five or multiples of five away from their own age, leading to distinct ‘heaping’ in the empirical partner age (or age difference) distributions at multiples of five. For example, if a questionnaire asks ‘how many years older or younger is your partner than you?', respondents might be disproportionately likely to report a multiple of five, leading to age differences that are heaped on multiples of five. We tested the sensitivity of our results to heaping by developing a simple ‘deheaping’ algorithm, applying it to the AHRI data, and running each analysis on the deheaped AHRI data. We present these results in Appendix section ‘Age heaping'.
Probability distribution comparison
To identify the best probability distribution for modelling sexual partner age distributions, we split all three data sets into 12 subsets by sex and fiveyear age bin ranging from 20 to 50, resulting in 36 subsets, and fit a number of distributiondependent variable combinations to each subset.
Distributions
Request a detailed protocolWe tested five candidate probability distributions: normal, skew normal, beta, gamma, and sinharcsinh. Table 1 summarises the domains, parameters, and probability density functions (PDFs) of these distributions. Because the gamma distribution is always rightskewed and men typically partner with women who are younger than them, we transformed data among male respondents to be rightskewed when using the gamma distribution. Specifically, we multiplied the men’s partners’ ages by −1 to reflect the distribution horizontally across the yaxis, and added 150 to the reflected ages to ensure that all resulting values were positive. Similarly, the beta distribution is only defined on the interval (0, 1), so, only when using a beta distribution, we scaled all partner ages to be between zero and one using upper and lower bounds of 0 and 150.
The sinharcsinh distribution, presented by Jones and Pewsey, 2009, is an extension of Johnson’s distribution (Johnson, 1949). It has four parameters: location, scale, skewness, and tail weight (denoted, μ, σ, $\u03f5$, and δ, respectively), and it can deviate substantially from the normal distribution. Figure 1 plots the density of this distribution with $\mu =0$ and $\sigma =1$ for a variety of values of skewness and tail weight.
Dependent variable transformations
Request a detailed protocolWe considered the possibility that certain distributions could fit better to particular transformations of the dependent variable (partner age) by testing a set of four potential outcome parametrisations. For example, if $X$ is a positivevalued, rightskewed random variable, then assuming $\mathrm{log}X$ is normally distributed might be more effective than assuming that $X$ itself is normal.
Let y_{i} be the dependent variable value for partnership $i$, and let a_{i} and p_{i} be the respondent age and partner age of partnership $i$, respectively. We tested the following dependent variables:
Linear age: ${y}_{i}={p}_{i}$. This is untransformed partner age, included as a baseline. It has the undesirable quality of being able to predict negative ages.
Age difference: ${y}_{i}={p}_{i}{a}_{i}$. If changes in expected partner age are consistent across respondent age then this variable would be more consistent across respondent age than the linear age. This parametrisation also allows for negative partner age predictions.
Logage: ${y}_{i}=\mathrm{log}{p}_{i}$. We can use a $\mathrm{log}$ link function to ensure that our predictions will be positivevalued.
Logratio: ${y}_{i}=\mathrm{log}({p}_{i}/{a}_{i})$. Finally, we can combine the link function and differencing approaches by modelling the log of the ratio of partner to respondent age. This variable will only produce positive predictions and, like the age difference variable, should be relatively constant over respondent age.
Because the gamma and beta distributions are not defined on the entire real line, we only fit them with the linear age dependent variable with the previously discussed transformations.
To identify which distributiondependent variable combination best modelled the characteristics of sexual partner age distributions, we stratified each of our three data sets by sex and 5year age bin from 20 to 24 through 45–49. We omitted ages 15–19 from the probability distribution comparison because relatively small sample sizes in that group would make reliable comparison difficult. We fit every viable distributiondependent variable combination to all 36 data set/sex/age binspecific subsets independently. Given that we fit only the linear age dependent variable to the gamma and beta distributions, comprising a total of 504 models (14 per data subset). We fit each model using the brms R package (Bürkner, 2018), defining custom families as necessary.
Distributional regression evaluation
Request a detailed protocolGiven a probability distribution that accurately replicated the nonGaussian characteristics of partner age distributions, we tested whether or not distributional regression would allow us to pool data across age and sex without sacrificing fit. In distributional regression, we make all of our distributional parameters, not just the mean, functions of data (Kneib and Umlauf, 2017). Taking conventional Bayesian regression as an example, we have
where β and $\mathrm{log}\sigma $ are free parameters. There is an explicit assumption in this model that the standard deviation of the generating distribution is constant across all observations. We can use distributional regression to relax this assumption, making σ a function of data:
where ${\beta}^{\mu}$ and ${\beta}^{\sigma}$ are now our free parameters. Note that we have not assumed that ${\mathbf{\mathbf{X}}}^{\mu}={\mathbf{\mathbf{X}}}^{\sigma}$. If ${\mathbf{\mathbf{X}}}^{\sigma}$ is a column of ones, this model is identical to the conventional case. This approach increases the complexity of the model and requires more data, but, based on previously described characteristics of how the distribution of partnership age distribution changes with age, even a simple model for our distributional parameters could yield large improvements.
In this application, we modelled the logratio dependent variable with the sinharcsinh distribution, specifying a model for all four distributional parameters:
where ${\beta}^{\mu}$, ${\beta}^{\sigma}$, ${\beta}^{\u03f5}$, and ${\beta}^{\delta}$ are free parameters. We placed essentially arbitrary shrinkage priors on all coefficients:
By varying the specifications of the four design matrices, ${\mathbf{\mathbf{X}}}^{\mu}$, ${\mathbf{\mathbf{X}}}^{\sigma}$, ${\mathbf{\mathbf{X}}}^{\u03f5}$, and ${\mathbf{\mathbf{X}}}^{\delta}$, we tested how well a series of increasingly complex distributional regression models fit to each data set. We fit the following models, which varied in the definitions of their four design matrices:
Conventional: linear agesex interaction for location and constants for all three higherorder parameters
Distributional 1: linear agesex interaction for location and independent age and sex effects for all other parameters
Distributional 2: linear agesex interactions for all four parameters
Distributional 3: sexspecific spline with respect to age for location and linear agesex interactions for all other parameters
Distributional 4: sexspecific splines with respect to age for all four parameters
Table 2 describes all five models. By fitting a wide set of specifications, we hoped to assess whether the additional complexity incurred by distributional regression was valuable. We fit each of the five models to all three data sets, including all respondents aged 15–64 years. We implemented these analyses with brms (Bürkner, 2018), which has deep support for distributional regression. More detailed descriptions of each model are available in the ‘Model specification details’ section of the Appendix. We tested the effect of age heaping on this analysis by fitting to the deheaped AHRI data and report results in the ‘Age heaping’ section of the Appendix.
Model comparison
Request a detailed protocolAcross both analyses, we used two metrics to measure model fit. First, we calculated the expected log posterior density (ELPD), which estimates the density of the model at a new, unobserved data point (Vehtari et al., 2017). In cases where we wanted to compare across dependent variables, we multiplied the posterior densities of any variables resulting from nonlinear transformations of observed partner ages by the Jacobians of the transformations. For example, if our observation model was defined on the logage dependent variable ${y}_{i}=\mathrm{log}{p}_{i}$, we divided the posterior density by p_{i}. We used the loo R package (Vehtari et al., 2020) to calculate ELPD values.
To measure the ability of our models to replicate partner age distributions in an objective and interpretable way, we found the root mean squared error (RMSE) between the observed and posterior predictive quantiles. We calculated quantiles from 10 to 90 in increments of 10 by age bin and sex in the data and in the posterior predictions, and found the error in model prediction of each quantile. This measure tells how well our model predicts the entire distribution in the same units as our predictions. It is equivalent to finding the root mean squared distance from the line of equality in a quantilequantile (QQ) plot.
Software
We conducted all of these analysis using the R programming language (R Development Core Team, 2020) and the brms library (Bürkner, 2018). We used the loo library to estimate all ELPDs (Vehtari et al., 2020), and produced all plots in this paper with the ggplot2 library (Wickham, 2016). We cannot provide the data we used for this analysis, but we do provide code and data for a simulated case on GitHub (https://github.com/twolock/distregillustration; Wolock, 2021, copy archived at swh:1:rev:a7f808f2cde2bb16edde8fdcbfa6e208df7952f9).
Results
The AHRI data included 77,619 partnerships, Manicaland had 58,676, and the Haiti DHS had 12,447. There were 36,033 respondents reporting at least one partnership in the AHRI data, 25,024 in the Manicaland data, and 12,143 in the Haiti DHS, resulting in averages of 2.2, 2.3, and 1.0 partners per respondent, respectively. As an illustrative example of the distribution of partner ages, Figure 2 presents histograms of reported partner ages among women aged 34 years for each of our three data sets. Figure 3 shows the sex and age binspecific empirical moments for the three data sets. Mean partner age increased with respondent age consistently for both sexes across all three data sets: among women, mean partner age increased by 26.0, 22.7, and 23.7 years in the AHRI data, Haiti DHS data, and Manicaland data, respectively, between age bins 20–24 and 45–49. However, higher order moments were less consistent: the standard deviation of women’s partners’ ages changed by 2.3, 0.5, and 3.5 years in the AHRI data, Haiti DHS data, and Manicaland data, respectively, between age bins 20–24 and 45–49.
Within each data set, there is systematic variation across sex. For example, the standard deviation of partner ages in the Haiti DHS increased by 2.5 years among men and only by 0.5 years among women. These summary statistics illustrate the heterogeneity of partner age distributions across age and sex.
Probability distribution comparison
To identify the probability distribution that most accurately described the variation in sexual partner age distributions, we first determined the dependent variable with the highest ELPD for each distributiondependent variable combination. Figure 4 illustrates each probability distribution’s best fit to AHRI data among women aged 35–39 with each of the best distributionspecific dependent variables. Results for all 36 data subsets and the 12 deheaped subsets are presented in Appendix 1—table 2–9.
The best dependent variable varied across data subset and probability distribution. Table 3 provides the share of data sets for which each dependent variable has the highest ELPD given each distribution. The logratiodependent variable was best in 50.0% of subsets with a normal distribution, but it was best in only 27.8% of subsets with a skew normal distribution. The dependent variable that was best in a plurality of subsets in each probability distribution (i.e. the variable with the highest percentage in each column of Table 3) used a $\mathrm{log}$ link function. We restricted all remaining comparisons to each distributionsubset combination’s best dependent variable.
The sinharcsinh distribution had the highest ELPD in 35 of 36 data subsets (98%). In 29 of the 35 (83%) cases in which the sinharcsinh provided the highest ELPD, the absolute value of the ratio of the difference between the two best ELPDs and the estimated standard error of the difference was greater than 2, indicating that the sinharcsinh distribution was significantly better than the alternatives in the majority of cases. In one case, men aged 20–24 in the Haiti DHS, the skew normal distribution resulted in a slightly higher ELPD than the sinharcsinh distribution, but the standard error of the difference was greater than the difference. These results were not affected by deheaping the data (Appendix section ‘Age heaping’).
To summarise each distribution’s performance, we calculated the average ELPD and QQ RMSE across the three data sets (Table 4). The sinharcsinh distribution had the highest average ELPD and lowest average QQ RMSE in all three data sets. The sinharcsinh distribution was, on average, able to predict the empirical quantiles of each data set within half a year of accuracy (0.36, 0.37, and 0.44 years for the AHRI, Haiti DHS, and Manicaland data, respectively). Overlaid QQ plots are presented in Appendix 1—figure 3.
Distributional regression evaluation
We fit all five distributional regression specifications to all three of our data sets with sinharcsinh distributions and logratiodependent variables and compared the ELPDs and QQ RMSEs as before (provided in Table 5). Across all three data sets, the most complex distributional model (Distributional 4) had the highest ELPD and lowest QQ RMSE. When fit to the AHRI and Manicaland data sets (but not for the Haiti DHS), the most complex distributional model was at least two standard errors better than the next best model. Notably, the largest ELPD improvements came from moving from conventional regression (Conventional) to the simplest distributional model (improvements of 1646.0 units, 361.0 units, and 2181.2 units in the AHRI, Haiti DHS, and Manicaland data, respectively). Full results are presented in Appendix 1—table 10.
Figure 5 shows the posterior predictive distributions from the conventional regression model and the most complex distributional model among men aged 16 years, 24 years, and 37 years in the AHRI data to illustrate the effect of distributional regression. Not only does the distributional model capture the high peak in the youngest age more accurately, but it also allows the variance of the distributions to change appropriately (beyond the change that naturally results from the log link function).
Figure 6 illustrates posterior summaries among men and women in the AHRI data for all four distributional parameters for the conventional regression model, the simplest distributional model, and the most complex distributional model. The red estimates (Conventional Regression) of the three higher order parameters were constant across age and sex, whereas the blue estimates (Distributional Model 1) included independent, linear age and sex effects. The orange estimates (Distributional Model 4) were generated sexspecific splines with respect to age, allowing for flexible variation across age and sex.
The third row of plots in Figure 6, which corresponds to the skewness parameter, illustrates the impact of incorporating sex and age effects into the model. The conventional regression model estimated that neither the distrbution for men nor women exhibited much skewness; the estimated parameter value was −0.05 (95% UI: −0.06 to −0.05) regardless of age, with 0.0 corresponding to perfect symmetry. However, when we allowed independent age and sex effects in Distributional Model 1, we estimated that at age 15, women’s skewness was −0.26 (95% UI: −0.27 to −0.25) and men’s was 0.11 (95% UI: 0.10 to 0.12).
The most complex model (Distributional Model 4) inferred sexspecific, nonlinear variation with respect to age in all four distributional parameters. The nonlinearity was particularly dramatic in the scale parameter among men. The scale value began at 0.05 (95% UI: 0.05–0.06) among 15yearolds, peaked among 37yearolds at 0.11 (95% UI: 0.10–0.11), and decreased back down to 0.05 (95% UI: 0.04–0.06) at age 64.
Finally, Figure 7 presents inferred distributional parameters from Distributional Model 4 for both men and women for all three data sets. Based on those plots, the flexible model was justified for most distributional parameters in all three data sets. Were we to continue developing these models, this plot suggests that skewness might only need linear, sexspecific effects with respect to age. Interestingly, the 2016–2017 Haiti DHS and Manicaland estimates exhibit similar patterns across all four parameters, despite the different sociocultural contexts surrounding partnerships in the two populations. We also note that the DHS does not collect data on adults aged 50 years and older, so our estimates in Haiti from age 50 to age 64 are purely extrapolated.
Discussion
We found that the sinharcsinh distribution reproduced observed sexual partner age distributions better than a number of other possible distributional assumptions across age and sex in three distinct data sets. We integrated this finding into a distributional regression framework using existing statistical modelling software. Even the simplest distributional regression in our set of candidate models far outperformed conventional regression, in which all moments except the first are estimated as constants. Our most complex distributional model fit better than all other models in all three data sets, suggesting that modelling these data benefits from the additional complexity.
These results indicate that distributional regression models with sinharcsinh distributions can accurately replicate age/sexspecific sexual partner age distributions. This approach presents a number of advantages over previous methods. First, like Smid et al., it allows a unique distribution for every agesex combination. As Figure 3 illustrates, partner age distributions can exhibit substantial, systematic variation across age and sex in any of the first four moments, so we must consider modelling strategies that allow for such variation. Second, distributional regression offers a principled method to propagate uncertainty through this estimation process.
Finally, distributional regression implemented through brms provides access to a deep set of hierarchical modelling tools that could enable estimation in a variety of lowdata settings. We evaluated a small set of relatively simple distributional models in this work, but, theoretically, each distributional parameter could have its own, arbitrarily complex hierarchical regression model. Using these tools, one could estimate unique partner age distributions across levels of stratification that are substantively interesting but do not provide sufficient sample size for independent estimation (e.g. study sites or geographic areas).
We have identified several limitations in this approach. First, the amount of data required to produce usefully precise estimates is not tested. Each additional distributional parameter introduces model parameters, so this method is more complex than conventional regression. The sinharcsinh distribution did fail to produce the highest ELPD in our smallest data subset (N = 170), but it was not significantly worse than the best distribution. More importantly, by integrating these data into a distributional modelling framework, we gain the ability to impose structure on these parameters, which could easily offset the cost of any additional model parameters.
Interpreting the inferred model parameters in sinharcsinh regression can also be difficult. Although conventional regression estimates the effects of covariates on expected values, the sinharcsinh distribution is parametrised in terms of a location parameter. This parameter correlates closely with the central tendency of the distribution, but it is not strictly equal to the mean. We can reparametrise the distribution so that we estimate a mean (and therefore effects of covariates on the expected value), but it is not currently possible in the probabilistic programming software that underlies brms.
Third, our analysis assumed that we were operating at a level of stratification at which partnerships are basically comparable, but any number of factors could lead to fundamentally different partner age distributions. For example, we did not control for whether the partnership was samesex or the type of the partnership (married, casual, etc.). That said, our distributional framework would allow us to incorporate data on any of those factors directly into the model.
There are two sources of possible nonindependence in our data sets that were not modelled. First, in the two cohort studies, participants are eligible to participate in multiple survey rounds, in which case the same partnership could be reported multiple times in our data set. Second, many individuals report multiple partners in the same survey, and the age of one partner may be correlated ages of other partners, for example due to individual preferences for partnerships. Because we modelled multiple observations of the same individual as conditionally independent, we anticipate that these correlations may artificially increase the precision of our estimates.
Finally, our model does not address any reporting biases in selfreported partnership data. If certain relationship types are perceived as less socially acceptable, respondents might be less likely to report them, resulting in systematic missingness. Our method could still be appropriate to model the age distribution from the data reported about an underreported partnership type, but it cannot predict whether or not a given partnership exists. However, if underreporting correlates with partner age (or age difference), then the empirical distributions will be biased and our method will only smooth and interpolate the biased data.
Despite these limitations, we believe that the strategy we present will work well in future projects that require estimates of partner age distributions. We plan to use these methods to produce agemixing matrices to inform epidemic models of HIV, but there are a number of additional directions that could be explored. We are specifically interested in leveraging the spatiotemporal structure of the survey data used here. Hierarchical mapping exercises with household survey data are increasingly common in epidemiology, but estimating spatially varying partner age distributions would require an evaluation of how best to model higher order moments over space. We would, for example, need to consider how the variance of partner age distributions varies by urbanicity.
Similarly, populationbased studies typically collect far more detailed information on partnerships than we took advantage of here. Relationship type is a key confounder of the association between respondent age and partner age (that we ignored for the purposes of our experiments). We might expect the age distributions of casual partners to vary substantially from those of longterm cohabiting partners. Because we have built our model in an existing regression framework, incorporating new covariates into any of the distributional regression specifications is straightforward. The distribution regression framework with the sinharcsinh may also be a useful parametric model for continuous representation of marginal distributions within sexual mixing models or network models, such as the ERGM framework.
We believe that our framework offers a flexible, accurate, and robust method for smoothing and interpolating sexual partner age distributions, but these methods are not specific to partner age distributions. The sinharcsinh distribution is relatively easy to implement without incurring high computational cost, so it could be applied in many settings. Even without the distributional regression framework, we have used here, allowing the third and fourth moments of the distribution to vary from the ‘default’ normal values could be valuable across a variety of applications.
Distributional regression is also underutilised in social science applications. We often work with large surveys that would comfortably support models for higher order parameters. Data requirements will vary by application and model, but, as we have shown here, even a simple distributional model can improve fit and avoid biasing estimates.
Appendix 1
Age heaping
Respondents in each of these data sets are disproportionately likely to report that their partners’ ages are multiples of five or multiples of five away from their own age, leading to distinct ‘spikes’ in the empirical partner age (or age difference) distributions at multiples of five. The left panel of Appendix 1—figure 1 illustrates this phenomenon among women aged 24 years in the AHRI data. These spikes, widely referred to as ‘heaping’, could bias our results towards certain probability distributions, so we developed a simple deheaping algorithm, applied it to the AHRI data.
To account for the possibility that heaping affected the results, we developed a simple deheaping algorithm and treated the deheaped AHRI data as a fourth data set. Due to the structure of the questionnaire (‘how many years older or younger is your partner than you?’), the AHRI partner age data exhibit strong heaping on partner ages that are multiples of five years from the respondent’s age. For example, among women aged 24 years, we observe far more partners aged exactly 29 years than expected.
Let ${n}_{s,a,p}$ be the number of observed partnerships with ${s}_{i}=s$, ${a}_{i}=a$, and ${p}_{i}=p$. Fixing age to be $a$ and sex to be $s$, we can find the expected count at partner age $p$, ${\widehat{n}}_{s,a,p}$ by fitting a NadarayaWatson estimator to all ordered pairs $(p,{n}_{s,a,p})$ such that $pa$ is not a multiple of five. We can then find the positivevalued excess counts at all $p$ such that $pa$is a multiple of five: ${e}_{s,a,p}=\mathrm{max}({n}_{s,a,p}{\widehat{n}}_{s,a,p},0).$
This quantity, ${e}_{s,a,p}$, is what the NadarayaWatson estimator has identified as number of heaped observations. Fixing ${p}^{\star}$ to be a partner age such that $({p}^{\star}a)mod5\equiv 0$, we assume that all of the excess mass at ${p}^{\star}$ will be allocated to the four partner ages on either side of ${p}^{\star}$. We find the share of ${e}_{s,a,{p}^{\star}}$ to be allocated to each of $({p}^{\star}2,\mathrm{\dots},{p}^{\star}+2)$, denoted ${b}_{s,a,p}$, as
substituting in ${\widehat{n}}_{s,a,{p}^{\star}}$ for ${n}_{s,a,p}$ wherever applicable. Finally, we find the number of individuals to be reassigned from ${p}^{\star}$ to each $p$ within two years of ${y}^{\star}$ as ${d}_{s,a,p}={b}_{s,a,p}\cdot {e}_{s,a,{p}^{\star}}$. Note that each partner age can only ‘receive’ partnerships from its nearest multiple of five and that each multiple of five can only ‘send’ partnerships to itself and the four partner ages on either side of it. For each $y$ within two years of ${y}^{\star}$, we randomly select $\lfloor {d}_{s,a,p}\rceil $ individuals to move from ${p}^{\star}$ to $p$. We apply this method for both sexes and all respondent ages with at least two observations separately.
Appendix 1—figure 1 illustrates the effect of this process on data among women aged 24 in the AHRI data. This method is quite simple, but it seems to work reasonably well on the AHRI data. Regardless, we do not need a perfect deheaping algorithm for this application; we just need one that will give us a plausibly deheaped version of the AHRI data. If the results differ drastically between the heaped and deheaped data sets (i.e. if one probability distribution works perfectly only on the deheaped data), then we will know that our results are sensitive to irregularities in the data.
Results
Appendix 1—figure 2 shows the presence of age heaping among women in the AHRI data, as well as the effects of our deheaping algorithm. Visible diagonal lines indicate that women were disproportionately likely to report that the difference between their partner’s age and their own age was a multiple of five. Heaping to partner ages (not partner age differences) would manifest as horizontal lines. As we can see in the right panel, the deheaping procedure resolves the majority of the heaping. We cannot validate the algorithm, but for the purposes of this experiment, simply producing plausibly deheaped age distributions should be sufficient.
Appendix 1—table 1 provides ELPD and QQ RMSE values for all five regression models fit to the deheaped AHRI data. As with the heaped AHRI data, the most complex distributional model had the highest ELPD (58504.0). From these results, we conclude that the presence of heaping in the three main data sets is unlikely to have substantially altered the results of this analysis.
Model specification details
We modelled the logratio dependent variable using the fourparameter sinharcsinh distribution:
where ${\beta}^{\mu}$, ${\beta}^{\sigma}$, ${\beta}^{\u03f5}$, and ${\beta}^{\delta}$ are free parameters. We placed essentially arbitrary shrinkage priors on all coefficients:
First, we fit a conventional regression, in which only the location parameter, μ, is a function of data. Specifically, we allowed for linear sex and age effects and a linear interaction between respondent sex and age (s_{i} and a_{i}, respectively) in the model of μ:
In the second model, we allowed the three higher order distributional parameters to vary by age and sex:
In the third model, all four distributional parameters had age, sex, and agesex interaction effects:
To allow for the possibility of nonlinear variation with respect to age in the fourth model, we modelled the location parameter using sexspecific natural splines on age:
where $K$ is the number of columns in the spline design matrix. By including a second set of basis function values that are multiplied by s_{i}, we are estimating an additional, femalespecific trend with respect to age.
Finally, we fit a fifth model, in which all four distributional parameters were modelled as sexspecific splines with respect to age:
Full Results
Data availability
Data from the Demographic and Health Surveys are available from the DHS Program website (https://dhsprogram.com/data/availabledatasets.cfm). Data from the Africa Centre Demographic Information System are available on request from the AHRI website (https://data.ahri.org/index.php/home). Data from the Manicaland study were used with permission from the study investigators (http://www.manicalandhivproject.org/manicalanddata.html).

AHRI Data RepositoryAHRI.PIP.Men's General Health.All.Release 202007.https://doi.org/10.23664/AHRI.PIP.RD0499.MGH.ALL.202007

AHRI Data RepositoryAHRI.PIP.Women's General Health.All.Release 202007.https://doi.org/10.23664/AHRI.PIP.RD0399.WGH.ALL.202007

The DHS Program, Haiti: Standard DHS, 201617ID surveydisplay503.cfm. Haiti Enquête Mortalité, Morbidité et Utilisation des Services 20162017  EMMUSVI [Dataset].
References

Agedependent choice of sexual partners and the transmission dynamics of HIV in SubSaharan AfricaPhilosophical transactions of the Royal Society of London. Series B, Biological sciences 336:135–155.https://doi.org/10.1098/rstb.1992.0052

Availability and Quality of Surveillance and Survey Data on HIV Prevalence Among Sex Workers, Men Who Have Sex With Men, People Who Inject Drugs, and Transgender Women in Low and MiddleIncome Countries: Review of Available Data (20012017)JMIR Public Health and Surveillance 6:e21688.https://doi.org/10.2196/21688

Advanced bayesian multilevel modeling with the R package brmsThe R Journal 10:395–411.https://doi.org/10.32614/RJ2018017

DataAHRI.PIP.men’s general health.all.release 202007 [Version Number: 8 type: dataset]Africa Health Research Institute (AHRI).https://doi.org/10.23664/AHRI.PIP.RD0499.MGH.ALL.202007

Cohort profile update: africa centre demographic information system (ACDIS) and populationbased HIV surveyInternational Journal of Epidemiology 50:33–34.https://doi.org/10.1093/ije/dyaa264

Balancing sexual partnerships in an age and activity stratified model of HIV transmission in heterosexual populationsMathematical Medicine and Biology 11:161–192.https://doi.org/10.1093/imammb/11.3.161

Behaviour change in generalised HIV epidemics: impact of reducing crossgenerational sex and delaying age at sexual debutSexually Transmitted Infections 83 Suppl 1:i50–i54.https://doi.org/10.1136/sti.2006.023606

Do agedisparate relationships drive HIV incidence in young women? evidence from a population cohort in rural KwaZuluNatal, South AfricaJAIDS Journal of Acquired Immune Deficiency Syndromes 66:443–451.https://doi.org/10.1097/QAI.0000000000000198

Goodness of fit of social network modelsJournal of the American Statistical Association 103:248–258.https://doi.org/10.1198/016214507000000446

Ergm: a package to fit, simulate and diagnose ExponentialFamily models for networksJournal of Statistical Software 24:nihpa54860.https://doi.org/10.18637/jss.v024.i03

ConferenceHaiti enquête mortaité, morbidité et utilisation des services 20162017  EMMUSVI [dataset]IHE/Haiti, ICF [Producers] IHE/Haiti, & ICF.

EpiModel: an R package for mathematical modeling of infectious disease over networksJournal of Statistical Software 84:8.https://doi.org/10.18637/jss.v084.i08

ReportA Primer on Bayesian Distributional Regression Working Paper Technical Report 201713Working Papers in Economics and Statistics.

A separable model for dynamic networksJournal of the Royal Statistical Society: Series B 76:29–46.https://doi.org/10.1111/rssb.12014

A loglinear modeling framework for selective mixingMathematical Biosciences 107:349–377.https://doi.org/10.1016/00255564(91)90014A

Epidemiology and social networks:: modeling structured diffusionSociological Methods & Research 22:99–126.https://doi.org/10.1177/0049124193022001005

SoftwareR: A Language and Environment for Statistical ComputingR Foundation for Statistical Computing, Vienna, Austria.

Data resource profile: network for analysing longitudinal Populationbased HIV/AIDS data on africa (ALPHA network)International Journal of Epidemiology 45:83–93.https://doi.org/10.1093/ije/dyv343

Characteristics of AgeDiscordant partnerships associated with HIV risk among young south african women (HPTN 068)JAIDS Journal of Acquired Immune Deficiency Syndromes 72:423–429.https://doi.org/10.1097/QAI.0000000000000988

Practical bayesian model evaluation using leaveoneout crossvalidation and WAICStatistics and Computing 27:1413–1432.https://doi.org/10.1007/s1122201696964

ReportLoo: Efficient LeaveOneOut CrossValidation and WAIC for Bayesian Modelsloo.

BookGgplot2: Elegant Graphics for Data AnalysisNew York: SpringerVerlag.https://doi.org/10.1007/9780387981413

BookRecommended Population Size Estimates of Men Who Have Sex with MenWorld Health Organization.
Decision letter

Eduardo FrancoSenior Editor; McGill University, Canada

Talía MalagónReviewing Editor; McGill University, Canada

Adam AkullianReviewer; Institute for Disease Modeling, United States
In the interests of transparency, eLife publishes the most substantive revision requests and the accompanying author responses.
Acceptance summary:
This paper demonstrates the use of a sinharcsinh distribution to fit sex partner age distributions across different settings, and shows a superior fit compared to other more conventional distributions and regression methods. The methods outlined in this study will be of particular interest to social science researchers examining age mixing patterns, and for infectious disease modelers wishing to model sexual partner age mixing into their frameworks.
Decision letter after peer review:
Thank you for submitting your article "Evaluating distributional regression strategies for modelling selfreported sexual agemixing" for consideration by eLife. Your article has been reviewed by 2 peer reviewers, one of whom is a member of our Board of Reviewing Editors, and the evaluation has been overseen by a Senior Editor. The following individual involved in review of your submission has agreed to reveal their identity: Adam Akullian (Reviewer #2).
As is customary in eLife, the reviewers have discussed their critiques with one another. What follows below is the Reviewing Editor's edited compilation of the essential and ancillary points provided by reviewers in their critiques and in their interaction postreview. Please submit a revised version that addresses these concerns directly.
Essential revisions:
1) Include more discussion about biases in selfreported data, including misreporting of partnership characteristics, selection bias, and missing data; also, discuss how these biases may affect the modelling of age mixing patterns.
2) Some methods could be further clarified by including text from the appendix into the main text.
3) Discuss how your results compare with and add to previous statistical frameworks for age mixing, notably loglinear models for mixing and Exponentialfamily Random Graph Models
Reviewer #1:
In this study, Wolock et al. compare the ability of different distributions to fit sexual age mixing patterns in a variety of settings, and provide a modeling framework for fitting these distributions across all ages without having to partition the data into separate datasets. They convincingly demonstrate that a sinharcsinh distribution will better fit the data than many other commonly used distributions, and also explore various ways of parameterizing age differences between partners. In general, the sinharcsinh produced both better fit statistics and more visually pleasing fits to the data. Moreover, the results confirm that more complex distributional assumptions with more parameters are in many cases warranted to fit age mixing patterns.
Particular strengths of this study are the exhaustive examination of multiple distributional assumptions, the use of multiple datasets to test the generalizability of results across regions, and use of objective fit statistics to discriminate between models and distributions. I do not see any major weaknesses, apart from maybe the issue of how possible it would be to fit these more complex distributions and models to smaller datasets, where there is less data to inform parameters.
As the authors point out, the methods outlined in this paper could be extended by including further stratification factors predicting age mixing, or potentially also mixing by some other continuous characteristics that are not expected to follow a normal distribution. The authors provided some sample code for fitting these distributions to the data, which should help others implement their proposed methods.
Comments for the authors:
• I had a lot of difficulty following the methods for the second aim, the regression component. I was very unclear on what was the outcome (dependent variables) being modeled and what were the parameters of the model. The appendix on model specifications helped to explain this a bit more. I think the manuscript would benefit from putting the model specification details from the appendix in the main text, as I could not understand what was being done without this further information.
• I find the heaping of ages surprising. This might have occurred due to the way the question about partner age was framed to participants. It might be useful to comment on the wording of this question across the different studies, and if there was a particular way of wording the question that led to more heaping in one study than in others.
• P. 8 I was initially confused as to why there are 36 subsets, given that there are only 2 sexes and 6 age groups between 20 and 50. It was not clear that there was a third stratification (survey). You should mention there are also 3 surveys (2*6*3=36).
• Table 1: the definition in the legend for Ce,d should probably read Ce,d(x).
Reviewer #2:
In "Evaluating distributional regression strategies for modelling selfreported sexual agemixing" Wolock and colleagues present a statistical modeling framework to estimate the agedistribution of sexual partners from selfreported data. The authors use data from three populationlevel surveys where respondents report the ages of their most recent sexual partners. The authors use a Bayesian distributional regression approach to fit probability distribution parameters to the data and assess model performance. In this way, the authors demonstrate that a unique distribution of partnership ages can be reconstructed for each age and sex combination. The best fitting distributions and parameterizations are presented in the paper and the authors found that the sinharcsinh distribution most accurately reconstructed the distribution of partnership ages for each of the three geographies. Results from this analysis will be highly useful as a component of HIV (or other STI) risk prediction or to reconstruct sexual networks for mathematical models of STI transmission.
The main strength of this analysis is the simplicity of their modeling approach, which uses probability distributions with few parameters to capture the age distribution of sexual partnerships. This approach will allow researchers to easily simulate age and sexspecific partnership probabilities and inherent uncertainty in those estimates without the need for complex empirical distributions.
Weaknesses of the analysis center around the inherent limitations of selfreported data on sexual partnership age. The authors use data on selfreported age(s) of a respondent's partnership(s) in the last 12 months. The authors don't consider potential reporting biases and missing data associated with selfreport that may be differential by age, gender, and relationship type. For example, some individuals may selectively report certain types of partners over others – perhaps stable partnerships versus transient ones. Missing data is quite common for sensitive questions on sexual histories and thus the results presented here should be interpreted with that in mind. It is important to consider that some relationship types may be underrepresented and may lead to biased age distributions.
Nonetheless, the results support the conclusions made by the authors. This paper makes an important methodological contribution to the literature on sexual networks and has broad application to understanding the transmission of STI's, especially HIV in diverse settings.
Overall this paper has a sound methodological approach and is clearly written.
1.Page 12, line 241, the number of partnerships is indicated for each geography but not the number of respondents. Would be good to understand how many individuals reported just one partner versus more than one. Also, I assume the same partner could be reported multiple times at different survey rounds for the two longitudinal datasets, which could create pseudo replication. Could the authors discuss how this type of correlated data might influence the uncertainty estimates?
Reviewer #3:
The primary weakness with this manuscript is that the authors appear to be unaware of two robust statistical frameworks that have been used to estimate age mixing (and other forms of heterogeneous mixing) for many years.
The first is the use of loglinear models for mixing matrices (Morris, 1991, 1993). These models can be used to fit a wide array of mixing patterns, both discrete and continuous, and are also quite general. They offer everything from parsimonious summary parameterization (with assessments of goodness of fit) to dummy parameterization for each cell in the matrix to get exact fits. They benefit from the well developed statistical theory and methods that support generalized linear models. While they can be generalized to include random effects for persons, the limitations of these models is that they can not be used to represent "edge dependence" (think monogamy bias – the presence of one spouse ("edge") has a profound effect on the probabilty of another spouse for the same individual). The papers above integrate the resulting estimates into a standard deterministic compartmental model for epidemic simulation.
The second is the more recent Exponentialfamily Random Graph Models (ERGMs, and their temporal cousins TERGMs – references provided below). These models are also a form of GLM, but extend the loglinear framework with the capability to represent dependent edges. They are designed primarily for use with stochastic network epidemic models, and are sufficiently well established that they serve as the foundation for the EpiModel (Jenness et al. 2018) software package.
In both cases, the benefit of these models is that they are a general, principled statistical framework, with well understood properties and established methods for model testing and evaluation. This enables the analyst to model not only age mixing, but other forms of heterogeneous mixing (e.g., by sex, or geographic location, or race/ethnicity), and, in the case of TERGMs, degree distributions and higher order network configurations, along with heterogeneous edge duration. All of these terms can be estimated jointly, from sampled network data, and simulations from the estimated model will reproduce the sufficient statistics in expectation. This latter property makes these models a natural foundation for epidemic simulation.
As a result, the added value of this distributional regression strategy is unclear. And this statement: "More broadly, no previous work has systematically evaluated the wide variety of distributions potentially available to model partner age distributions" is simply untrue. Both frameworks above provide general methods for fitting and assessing a wide variety of distributions.
References:
Morris, M. (1991). "A loglinear modeling framework for selective mixing." Math Biosc 107: 349377.
Morris, M. (1993). "Epidemiology and Social Networks: Modeling Structured Diffusion." Soc. Meth. Res. 22(1): 99126.
Jenness, S. M., S. M. Goodreau and M. Morris (2018). "EpiModel: An R Package for Mathematical Modeling of Infectious Disease over Networks." Journal of Statistical Software 84(8).
Selected refs for ERGMs and TERGMs
Hunter, D. R., M. S. Handcock, C. T. Butts, S. M. Goodreau and M. Morris (2008). "ergm: A Package to Fit, Simulate and Diagnose ExponentialFamily Models for Networks." Journal of Statistical Software 42(i03).
Hunter, D. R., S. M. Goodreau and M. S. Handcock (2008). "Goodness of fit of social network models." Journal of the American Statistical Association 103(481): 248258.
Krivitsky, P. N. and M. S. Handcock (2014). "A separable model for dynamic networks." Journal of the Royal Statistical Society, Series B 76(1): 2946.
Krivitsky, P. N., M. S. Handcock and M. Morris (2011). "Adjusting for Network Size and Composition Effects in ExponentialFamily Random Graph Models." Statistical Methodology 8(4): 319–339.
Krivitsky, P. N. and M. Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." Annals of Applied Statistics 11(1): 427455.
https://doi.org/10.7554/eLife.68318.sa1Author response
Essential revisions:
1) Include more discussion about biases in selfreported data, including misreporting of partnership characteristics, selection bias, and missing data; also, discuss how these biases may affect the modelling of age mixing patterns.
Thank you for this suggestion. The reviewers raise a good point about missingness and bias. Our method cannot resolve the limitations inherent in selfreported data, but, for certain types of missingness, it could be used to smooth and interpolate missing data. We have included a paragraph (lines 456463) addressing this limitation:
“Finally, our model does not address any reporting biases in selfreported partnership data. If certain relationship types are perceived as less socially acceptable, respondents might be less likely to report them, resulting in systematic missingness. Our method could still be appropriate to model the age distribution from the data reported about an underreported partnership type, but it cannot predict whether or not a given partnership exists. However, if underreporting correlates with partner age (or age difference), then the empirical distributions will be biased and our method will only smooth and interpolate the biased data.”
2) Some methods could be further clarified by including text from the appendix into the main text.
Thank you for this feedback. We have moved some of the explanation of the distributional regression methods from the Appendix back into the main text. In lines 235240 we have included a general description of the models we fit, and in lines 241245, we have clarified that our five regression models vary in how their design matrices are defined:
“By varying the specifications of the four design matrices, X^{µ}, X^{σ}, X^{ε}, and X^{δ}, we tested how well a series of increasingly complex distributional models fit to each data set. We fit the following models, which varied in the definitions of their four design matrices:”
3) Discuss how your results compare with and add to previous statistical frameworks for age mixing, notably loglinear models for mixing and Exponentialfamily Random Graph Models
Thank you for this suggestion. We focused our analysis on a relatively narrow problem of identifying continuous parametric models for sexual partner ages conditional on an individual’s age and sex. We agree with the editors and reviewer that it is valuable to connect our work to the broader context of more general and flexible statistical approaches to model sexual partner mixing matrices and sexual network, and greatly appreciate the suggestion.
We have elaborated the introductory paragraph on previous approaches to modelling sexual partner age distributions to also draw connections to this wider literature (lines 5277; revisions emphasised below):
“One may consider statistical modelling approaches for the distribution of partner age as a function of respondent age and sex. […] These stochastic methods, along with the broader suite of ERGMs (David R. Hunter et al. 2008a; David R Hunter et al. 2008b; Krivitsky and Handcock 2014; Krivitsky, Handcock, and Martina Morris 2011), can model social network data accurately with robust incorporation of covariates, and tools exist to incorporate their estimates into epidemic models (Morris 1993; Jenness et al. 2018).”
In the penultimate paragraph of the introduction (line 78), we have clarified the focus of our analysis in the context of this wider research area:
“We focused on evaluating parametric models for continuously representing the distribution of sexual partner ages conditional on the respondent's age…”
Finally in the Discussion section (line 481), we have noted the potential opportunity to use sinharcsinh distribution within more comprehensive models for mixing matrices, such as those described above:
“The distribution regression framework with the sinharcsinh may also be a useful parametric model for continuous representation of marginal distributions within sexual mixing models or network models, such as the ERGM framework.”
Reviewer #1:
In this study, Wolock et al. compare the ability of different distributions to fit sexual age mixing patterns in a variety of settings, and provide a modeling framework for fitting these distributions across all ages without having to partition the data into separate datasets. They convincingly demonstrate that a sinharcsinh distribution will better fit the data than many other commonly used distributions, and also explore various ways of parameterizing age differences between partners. In general, the sinharcsinh produced both better fit statistics and more visually pleasing fits to the data. Moreover, the results confirm that more complex distributional assumptions with more parameters are in many cases warranted to fit age mixing patterns.
Particular strengths of this study are the exhaustive examination of multiple distributional assumptions, the use of multiple datasets to test the generalizability of results across regions, and use of objective fit statistics to discriminate between models and distributions. I do not see any major weaknesses, apart from maybe the issue of how possible it would be to fit these more complex distributions and models to smaller datasets, where there is less data to inform parameters.
As the authors point out, the methods outlined in this paper could be extended by including further stratification factors predicting age mixing, or potentially also mixing by some other continuous characteristics that are not expected to follow a normal distribution. The authors provided some sample code for fitting these distributions to the data, which should help others implement their proposed methods.
Comments for the authors:
• I had a lot of difficulty following the methods for the second aim, the regression component. I was very unclear on what was the outcome (dependent variables) being modeled and what were the parameters of the model. The appendix on model specifications helped to explain this a bit more. I think the manuscript would benefit from putting the model specification details from the appendix in the main text, as I could not understand what was being done without this further information.
Thank you for raising this point. As discussed in our second response to the Essential Revisions above, we have provided a specific definition of our sinharcsinh distributional model in the main text (including a definition of the dependent variable) in lines 235240. In lines 241245, we have clarified that our five distributional models vary in their definitions of the four design matrices. We hope that these changes clarify the methods.
• I find the heaping of ages surprising. This might have occurred due to the way the question about partner age was framed to participants. It might be useful to comment on the wording of this question across the different studies, and if there was a particular way of wording the question that led to more heaping in one study than in others.
The reviewer is correct that heaping is determined how the questions are phrased. The AHRI survey asks how much older/younger the partner is, so respondents round age differences to multiples of five (as opposed to rounding partner ages themselves). We have included a description of this phenomenon in the main text in lines 151154: “For example, if a questionnaire asks "how many years older or younger is your partner than you?", respondents might be disproportionately likely to report a multiple of five, leading to age differences that are heaped on multiples of five.”
• P. 8 I was initially confused as to why there are 36 subsets, given that there are only 2 sexes and 6 age groups between 20 and 50. It was not clear that there was a third stratification (survey). You should mention there are also 3 surveys (2*6*3=36).
Thank you for this feedback. We have clarified that the data subsets are data set, sex, and age binspecific in line 214: replaced “all 36 subsets” with “all 36 data set/sex/age binspecific subsets”. In line 160 we have replaced “each data set” with “all three data sets”
• Table 1: the definition in the legend for C_{ε,δ} should probably read C_{ε,δ}(x).
Thank you for pointing out this mistake. We have replaced “C_{ε,δ}” with “C_{ε,δ}(x)” in the caption of Table 1.
Reviewer #2:
[…] Overall this paper has a sound methodological approach and is clearly written. The following are suggestions to improve clarity and understanding:
1.Ppage 12, line 241, the number of partnerships is indicated for each geography but not the number of respondents. Would be good to understand how many individuals reported just one partner versus more than one. Also, I assume the same partner could be reported multiple times at different survey rounds for the two longitudinal datasets, which could create pseudo replication. Could the authors discuss how this type of correlated data might influence the uncertainty estimates?
The reviewer raises an excellent point that we did not address in the original submission. We view both of these forms of structure in the data sets as violations of the independence we have assumed across observations. Because of this pseudoreplication, we suspect that we are attributing too much information to respondents who are repeated in the data and therefore might be deflating estimated uncertainty. We have included the number of individual respondents and the resulting average partners per respondent in lines 292285: “There were 36,033 respondents reporting at least one partnership in the AHRI data, 25,024 in the Manicaland data, and 12,143 in the Haiti DHS, resulting in averages of 2.2, 2.3, and 1.0 partners per respondent, respectively.”
We have also included a paragraph (lines 447455) identifying both of these details as a limitation of the method:
“There are two sources of possible nonindependence in our data sets that were not modelled. […] Because we modelled multiple observations of the same individual as conditionally independent, we anticipate that these correlations may artificially increase the precision of our estimates.”
Reviewer #3:
The primary weakness with this manuscript is that the authors appear to be unaware of two robust statistical frameworks that have been used to estimate age mixing (and other forms of heterogeneous mixing) for many years.
The first is the use of loglinear models for mixing matrices (Morris, 1991, 1993). These models can be used to fit a wide array of mixing patterns, both discrete and continuous, and are also quite general. They offer everything from parsimonious summary parameterization (with assessments of goodness of fit) to dummy parameterization for each cell in the matrix to get exact fits. They benefit from the well developed statistical theory and methods that support generalized linear models. While they can be generalized to include random effects for persons, the limitations of these models is that they can not be used to represent "edge dependence" (think monogamy bias – the presence of one spouse ("edge") has a profound effect on the probabilty of another spouse for the same individual). The papers above integrate the resulting estimates into a standard deterministic compartmental model for epidemic simulation.
The second is the more recent Exponentialfamily Random Graph Models (ERGMs, and their temporal cousins TERGMs – references provided below). These models are also a form of GLM, but extend the loglinear framework with the capability to represent dependent edges. They are designed primarily for use with stochastic network epidemic models, and are sufficiently well established that they serve as the foundation for the EpiModel (Jenness et al. 2018) software package.
In both cases, the benefit of these models is that they are a general, principled statistical framework, with well understood properties and established methods for model testing and evaluation. This enables the analyst to model not only age mixing, but other forms of heterogeneous mixing (e.g., by sex, or geographic location, or race/ethnicity), and, in the case of TERGMs, degree distributions and higher order network configurations, along with heterogeneous edge duration. All of these terms can be estimated jointly, from sampled network data, and simulations from the estimated model will reproduce the sufficient statistics in expectation. This latter property makes these models a natural foundation for epidemic simulation.
As a result, the added value of this distributional regression strategy is unclear. And this statement: "More broadly, no previous work has systematically evaluated the wide variety of distributions potentially available to model partner age distributions" is simply untrue. Both frameworks above provide general methods for fitting and assessing a wide variety of distributions.
References:
Morris, M. (1991). "A loglinear modeling framework for selective mixing." Math Biosc 107: 349377.
Morris, M. (1993). "Epidemiology and Social Networks: Modeling Structured Diffusion." Soc. Meth. Res. 22(1): 99126.
Jenness, S. M., S. M. Goodreau and M. Morris (2018). "EpiModel: An R Package for Mathematical Modeling of Infectious Disease over Networks." Journal of Statistical Software 84(8).
Selected refs for ERGMs and TERGMs
Hunter, D. R., M. S. Handcock, C. T. Butts, S. M. Goodreau and M. Morris (2008). "ergm: A Package to Fit, Simulate and Diagnose ExponentialFamily Models for Networks." Journal of Statistical Software 42(i03).
Hunter, D. R., S. M. Goodreau and M. S. Handcock (2008). "Goodness of fit of social network models." Journal of the American Statistical Association 103(481): 248258.
Krivitsky, P. N. and M. S. Handcock (2014). "A separable model for dynamic networks." Journal of the Royal Statistical Society, Series B 76(1): 2946.
Krivitsky, P. N., M. S. Handcock and M. Morris (2011). "Adjusting for Network Size and Composition Effects in ExponentialFamily Random Graph Models." Statistical Methodology 8(4): 319–339.
Krivitsky, P. N. and M. Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." Annals of Applied Statistics 11(1): 427455.
We thank the Reviewer for these suggestions. As we have indicated in our responses to the Essential Revisions above, we conceptualised the focus of our work on the somewhat narrower problem of continuously modelling the distributional features of sexual partner age mixing. We agree with, and greatly appreciate, the suggestion to draw connection and situate our work in the context of these powerful and flexible statistical approaches to modelling mixing matrices and sexual networks. Our specific revisions, including references to the literature highlighted above, are detailed in our responses to the ‘Essential revisions’ section above.
https://doi.org/10.7554/eLife.68318.sa2Article and author information
Author details
Funding
Bill and Melinda Gates Foundation (OPP1190661)
 Jeffrey W Eaton
Bill and Melinda Gates Foundation (OPP1164897)
 Kathryn A Risher
 Simon Gregson
 Jeffrey W Eaton
Medical Research Council (MR/R015600/1)
 Simon Gregson
 Jeffrey W Eaton
National Institute of Allergy and Infectious Diseases (R01AI136664)
 Jeffrey W Eaton
Engineering and Physical Sciences Research Council (EP/V002910/1)
 Seth Flaxman
Imperial College London (President's PhD Scholarship)
 Timothy M Wolock
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Acknowledgements
JWE, SG, and KAR acknowledge funding support from the Bill and Melinda Gates Foundation (OPP1190661, OPP1164897). JWE and SG acknowledge funding support from the MRC Centre for Global Infectious Disease Analysis (reference MR/R015600/1), jointly funded by the UK Medical Research Council (MRC) and the UK Foreign, Commonwealth and Development Office (FCDO), under the MRC/FCDO Concordat agreement and is also part of the EDCTP2 programme supported by the European Union. JWE also acknowledges funding support from National Institute of Allergy and Infectious Disease of the National Institutes of Health under award number R01AI136664. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. SRF acknowledges funding support from the EPSRC (EP/V002910/1). TMW’s work is funded by the Imperial College President’s PhD Scholarship. We thank all of the people who participated in the three studies that shared their data with us, as well as the survey and data management teams, without whom this work would not be possible.
Ethics
Human subjects: We conducted secondary analysis of previously collected anonymised data in compliance with each data producer's use requirements. Procedures and questionnaires for standard DHS surveys have been reviewed and approved by the ICF International Institutional Review Board (IRB). The Manicaland study was approved by the Medical Research Council of Zimbabwe and the Imperial College Research Ethics Committee. The Africa Centre Demographic Information System PIP surveillance study was approved by Biomedical Research Ethics Committee, University of KwaZuluNatal, South Africa (BE290/16).
Senior Editor
 Eduardo Franco, McGill University, Canada
Reviewing Editor
 Talía Malagón, McGill University, Canada
Reviewer
 Adam Akullian, Institute for Disease Modeling, United States
Publication history
 Received: March 11, 2021
 Accepted: June 23, 2021
 Accepted Manuscript published: June 24, 2021 (version 1)
 Version of Record published: July 7, 2021 (version 2)
Copyright
© 2021, Wolock et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics

 196
 Page views

 15
 Downloads

 0
 Citations
Article citation count generated by polling the highest count across the following sources: Crossref, PubMed Central, Scopus.