Trends in Median Age at First Sex and Age at First Marriage Among Youth in Tanzania: Accelerated Failure Time Model (1994–2016)
Jacqueline Materu, Eveline T. Konje, Ties Boerma, Mark Urassa, Milly Marston, Emma Slaymaker, Jim Todd

TL;DR
The study finds that the median age at first sex and first marriage in Tanzania increased over time, with education playing a key role in delaying these events.
Contribution
The study introduces the use of the accelerated failure time model to more accurately assess trends in age at first sex and marriage among youth in Tanzania.
Findings
Median age at first sex increased by one year for both sexes between 1994–2016.
Education is associated with higher median ages at first sex and first marriage.
The AFT model detected gradual increases that traditional statistics missed.
Abstract
Understanding trends in age of first sex and first marriage is vital for interventions addressing sexually transmitted infections (STIs/HIV) and youth sexual behavior. Shifts in these milestones affect fertility, contraceptive use, and STI/HIV dynamics. Traditional descriptive statistics often overlook younger populations, leading to inaccurate trend assessments. This study analyzed trends in median age at first sex and first marriage using survival analysis. Data from eight surveys within Magu Health and Demographic Surveillance System (1994–2016) were analyzed, focusing on individuals aged 15–24 years. The accelerated failure time (AFT) model with log-logistic distribution estimated these medians. Results showed an increase in median age at first sex by one year for both sexes and in first marriage by one year for females and two years for males. The AFT model captured gradual…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 10
Figure 11
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9- —http://dx.doi.org/10.13039/100000061Fogarty International Center
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdolescent Sexual and Reproductive Health · Global Maternal and Child Health · HIV/AIDS Research and Interventions
Introduction
Evaluating trends in the age of first sexual intercourse and marriage is crucial for designing and evaluating effective programs targeting sexually transmitted infections (STIs/HIV) and adolescent sexual behavior (Adair, 2008; Onsomu et al., 2013; Shrestha et al., 2016). Typically, these milestones occur in the later teenage years (Gupta & Mahy, 2003; Ryu, 2023; SPOUSES, 2001; Wellings et al., 2006), and even slight shifts in the median age, by just a year or two, are considered epidemiologically significant. Such shifts can influence fertility rates, contraceptive use, and the length of the period of premarital sex (Magadi & Agwanda, 2010; Marston et al., 2017; Wellings et al., 2006). Changes in the period between age at first sex and age at first marriage had significant implications for the HIV epidemic, as a longer period of premarital sex increases the exposure risk to HIV and other STIs (Ajaegbu, 2015; Wellings et al., 2006). Additionally, studies have shown that age at first sex is associated with rates of contraceptive use, which can affect population growth and the burden on healthcare systems (Fagbamigbe, 2021; Magnusson et al., 2012).
Trends in the timing of age at first sex and age first marriage have been extensively studied, as they play a crucial role in understanding family formation, gender dynamics, and risky behaviors related to sexual and reproductive health (Cohen & Bessinger, 2003; Mensch et al., 2006; Wellings et al., 2006; Zaba et al., 2004). However, the estimating trends from surveys is challenging, due to inconsistencies in survey questions, analysis methods, and the quality of self-reported data (Materu et al., 2023; Mensch et al., 2003, 2014; Wringe et al., 2009; Zaba et al., 2004). Some studies address inconsistencies and estimate the median (Upchurch et al., 2002; Wringe et al., 2009), while others estimate without correction (Materu et al., 2023). Other studies have observed different approaches, including the implementation of various data collection techniques to enhance privacy and consistency, with little to no improvement found (Mensch et al., 2003, 2014).
The major source of age at first sex and age first marriage information remains self-reported data collected through nationally representative household surveys conducted in many countries (Ministry of Health et al., 2016; Ministry of Health (MoH) [Tanzania Mainland] et al., 2022; National Bureau of Statistics & ICF Macro, 2011). Estimating changes in trends after correcting for inconsistencies using robust statistical methods helps increase confidence in these sensitive self-reported data, especially for the young people, and informs interventions and policy decisions.
The reported ages have often been used to estimate the mean or median age at first sexual intercourse and marriage using a standard descriptive statistics approach (traditional method), typically focusing only on individuals who have already experienced these events, which often leads to the exclusion of those who have not (Becker et al., 2018; Nahar et al., 2013). This method often emphasizes older age groups where these milestones are more universally experienced. In contrast, a survival analysis approach includes censored observations, allowing for the consideration of all individuals, including younger age groups (15–19 and 20–24). In Tanzania, data on age at first sex and age at first marriage are typically gathered through national surveys like the Demographic and Health Survey and Malaria Indicator Survey (TDHS-MIS) (Ministry of Health (MoH) [Tanzania Mainland] et al., 2022). However, the estimates from the standard descriptive statistics for estimating the median age at first sex and age at first marriage for age groups 15–24 or 15–19 years are often unavailable because fewer than half of the respondents have experienced these events. This means the reported estimations, for older individuals, may be outdated, and not applicable to current adolescents, who may have different experiences. In contrast to the standard descriptive statistics, which require more than 50% of respondents to have experienced the event, survival analysis includes all data, including censored cases who have not yet experienced the event, to estimate median age at first sex and age at first marriage (Ministry of Health (MoH) [Tanzania Mainland] et al., 2022; Zaba et al., 2002). Using survival analysis, such as accelerated failure time (AFT) models, allows inclusion of all individuals, even those who have not yet experienced these events, to estimate median ages more accurately. Consequently, survival analysis can yield more timely and relevant estimates compared to conventional descriptive statistics (Zaba et al., 2002).
In survival analysis, the Kaplan–Meier and Life Table methods have been used to estimate the median age at first sex and age at first marriage (Cremin et al., 2009; Zaba et al., 2002). These two techniques are both nonparametric methods, meaning they do not rely on assumptions about the underlying distribution of the data. Instead, they utilize the observed data directly to make estimations, making them flexible and robust approaches for analyzing survival data. Previous studies have shown that accelerated failure time (AFT) models with a log-logistic distribution fit the data well and are more useful for estimating or predicting the median ages of the events (Eaton, 2022; Materu et al., 2023).
The AFT model directly analyzes time to event, assuming a multiplicative effect of covariates on survival time, unlike proportional hazard (PH) models that focus on the survival function (Swindell, 2009). While less commonly used than Cox PH models for analyzing age at first sex and age at first marriage, the AFT model is highly adaptable and versatile. A prior study using the same dataset as this one found that the AFT model with a log-logistic distribution outperformed other survival models in analyzing these events across survey rounds (Materu et al., 2023). Its flexibility allows for various hazard shapes (e.g., increasing, decreasing, or constant), accommodates time-varying covariates, and facilitates robust prediction and inference (Saikia & Barman, 2017).
The current study aimed to evaluate the trends in age at first sex and age at first marriage among the young population aged 15–24 years in Magu-Kisesa, Tanzania, using the accelerated failure time (AFT) model with a log-logistic distribution for corrected inconsistency data. The study estimates the median age at first sex and age at first marriage, overall and stratified by sex, education level, and HIV status, to show trends over 22 years from 1994 to 2016.
Method
Participants
We utilized data from eight serological surveys conducted at an average interval of three years within the Magu Health and Demographic Surveillance System (HDSS), also known as the Kisesa Observational HIV Cohort Study, from 1994 to 2016. Magu HDSS is an open community cohort located 20 km east of Mwanza city. Detailed descriptions of the sampling strategies and survey methods employed in Magu HDSS can be found elsewhere (Urassa et al., 2024). The analysis focused on individuals aged 15–24 years who attended at least one survey between 1994 and 2016. Males and females were analyzed separately for all participants aged 15–24 years living in the cohort each year between 1994 and 2016.
Measures
The surveys collected information on age at first sexual intercourse and age at first marriage through two questions: whether the respondent had engaged in sexual activity or had been married, and if so, at what age (in completed years) they first experienced the event. Additionally, data were collected on the respondent’s sex, education level, age, date of birth, interview date, residence area, and other survey parameters (not relevant for the current analysis). It is important to note that these surveys did not distinguish between formal marriage and cohabitation (living with a partner), which may influence reported ages at first marriage.
Round 3 (1999–2000) lacked data on age at first sex, and rounds 2 (1996–1997) and 3 lacked data on age at first marriage; however, all rounds provided information on whether participants had experienced sex or marriage, so we did not exclude these years from analysis (Materu et al., 2025). From these data (over the reported serological surveys), we compiled the “best” estimate of age at first sex and age at first marriage corrected for inconsistencies (Materu et al., 2025).
Procedure
Trends over time in age at first sex and first marriage were analyzed by determining the median age for these events between 1994 and 2016 among those aged 15–24 years. We also compared estimates from the Magu HDSS cohort with those from the Tanzania Demographic and Health Survey (TDHS), focusing on young adults (aged 20–24 years) as reported by TDHS for that age group and for adults aged 25–49 years (ICF, 2012).
Statistical Analysis
We used a parametric survival method (accelerated failure time model [AFT] with a log-logistic distribution) to calculate the median age at first sex and age at first marriage. The AFT model was used as it was identified as the best model in a previous study using similar data (Eaton, 2022; Materu et al., 2023). We also used traditional descriptive statistics to calculate the median from the reported age at first and age at first marriage, and compared the estimates from the AFT results. The calculation of the median from the standard descriptive statistics includes those who experienced the events (i.e., it does not account for censoring).
The survival curves showing the estimated probability of first sex and marriage experience using the log-logistic AFT model were generated. All analyses were performed using STATA version 18 and R version 4.3.0.
Results
Trend in Age at First Sex
Figure 1 and Appendix: Table 1 show the trend in the estimated median age at first sex from the accelerated failure time (AFT) model for both sexes. Overall, the median age at first sex increased by one year for both females (from 16.18 years in 1994–1995 to 17.61 years in 2015–2016) and males (from 16.98 years in 1994–1995 to 18.24 years in 2015–2016), with the median age at first sex for males consistently higher than for females. A slight systematic increase was observed for females, with the median age at first sex rising from 16.36 years in 2003–2004 to 17.61 years in 2015–2016, while males experienced a slight decline in the median age at first sex from 18.37 years in 2010 to 18.24 years in 2015–2016. For both sexes, the median age at first sex initially increased from 1994–1995 to 1999–2000 (females: 16.18–17.49; males: 16.98–18.18), followed by a drop and then a subsequent increase. When comparing the trends in the estimated median age at first sex using the AFT model (a survival method) with those obtained using the traditional method (median from descriptive statistics), the overall median age at first sex was higher with the AFT model for both females and males. Additionally, the AFT model was observed to capture small changes more effectively than the traditional method, which showed no changes (constant or flat trend) in some years for both females and males (females: 16.00–16.00 from 1996–1997 to 2012–2013; males: 16.00–16.00 from 2003–2004 to 2012–2013) (Fig. 2a and b) (Appendix: Table 1).Fig. 1. Trends in median age at first sex by survey year, females and males (15–24 years)Table 1. Estimated median age at first sex using survival (AFT) and traditional method by survey year and age groupsN = 12,403^‡^N = 4,069N = 3,089N = 2,369N = 1,575N = 7,537N = 3,885N = 3,060N = 2,358N = 1,57315–24 years20–24 years25–29 years30–34 years35–39 years15–24 years20–24 years25–29 years30–34 years35–39 yearsMedian from AFT^^Median from descriptive statistics (Traditional)^†^n = 6,979n = 2,665n = 2,041n = 1,469n = 928n = 4,599n = 2,610n = 2,037n = 1,466n = 925FemalesOverall16.9216.8816.7016.6716.5716.0017.0017.0017.0016.00Years1994–9516.1816.1216.0415.8415.8215.0016.0016.0015.0016.001996–9716.6416.5715.5515.9915.8116.0016.0015.0016.0016.001999–2017.4916.6016.8617.0816.4316.0016.0017.0017.0016.002003–0416.3616.8016.7516.9716.5716.0017.0017.0017.0017.002006–0717.0217.0717.2617.1417.2016.0017.0017.0017.0017.00201017.0917.0617.0317.1317.0816.0017.0017.0017.0017.002012–1317.3517.1016.7116.9517.1116.0017.0017.0017.0017.002015–1617.6117.6917.4417.0217.1917.0018.0018.0017.0017.00Malesn = 5,424n = 1,404n = 1,048n = 900n = 651n = 2,938n = 1,275n = 1,023n = 892n = 648Overall17.4617.6317.4617.8117.8216.0018.0018.0018.0018.00Years*1994–9516.9817.1417.1717.4917.3516.0017.0017.0018.0018.001996–9717.4217.6717.1517.8017.7316.0017.0017.0018.0018.001999–2018.1818.7717.2717.3717.9015.0017.0017.0017.0018.002003–0416.6717.3717.6918.2017.7116.0018.0018.0018.0018.002006–0716.8117.2017.1517.2917.7116.0017.0017.0017.0018.00201018.3718.3418.1417.9719.0016.0018.0018.0018.0019.002012–1318.3018.4518.0917.9818.4316.0018.0018.0018.0018.002015–1618.2418.2417.9618.8418.3617.0018.0018.0018.0018.00^‡^1087 (8.8%) reported first sex before 15 years; ^*^Take into account censoring (i.e., include those who never experienced the events); ^†^Estimated based only on those who experienced the eventsFig. 2Trends in median age at first sex estimated using AFT and traditional methods (15–24 years)
Figure 3a and b and Appendix: Table 2 present a comparison of the trends in median age at first sex estimated in this study (Magu HDSS) with those from Mwanza DHS and Tanzania DHS for females and males in the young adult age group (20–24 years). While erratic trends were observed for males in both surveys, for females, a systematic gradual increase in median age at first sex was noted for the Magu HDSS, rising from 16.12 years in 1995–17.69 years in 2016. In contrast, erratic trends were evident for females in Mwanza DHS and Tanzania DHS, with the median age at first sex fluctuating between 17.40 years in 1999 and 17.60 years in 2017 in Mwanza DHS and between 17.70 and 17.0 years in Tanzania DHS during the same period. In years where estimates are available across all surveys, such as 2000 and 2007, closely aligned and very slight differences in estimates between the Magu HDSS and Mwanza DHS. For instance, in 2000, the median age at first sex was 16.60 years in Magu HDSS compared to 16.30 years in Mwanza DHS, while in 2007, the median age at first sex was 17.07 years in Magu HDSS and 17.70 years in Mwanza DHS. These differences highlight the general consistency between the Magu HDSS and Mwanza DHS estimates, despite the erratic trends in other surveys (Fig. 3a and Appendix: Table 2).Fig. 3. Trends in median age at first sex estimated with Magu HDSS, Mwanza and Tanzania DHS (20–24 years)Table 2. Comparison of median age at first sex estimated by Magu HDSS (Kisesa) and DHS for females and males by survey years and age group20–24 years25–29 years30–34 years35–39 yearsSurvey yearMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSFemales199115.9017.4016.1016.9015.9016.9015.3016.40199416.9016.8016.8016.30199516.1216.0415.8415.82199716.5715.5515.9915.81199917.4017.7016.9017.6017.0017.7017.6017.60200016.6016.3017.1016.8616.7017.3017.0816.4017.3016.4316.5017.00200316.8017.5017.3017.5017.3017.5016.4017.00200416.8016.7516.9716.57200516.3017.4016.6017.4016.2017.4016.6017.30200717.0717.7018.1017.2616.8017.9017.1417.7017.9017.2017.4017.90201017.0617.0317.1317.08201116.5017.5016.9017.4016.4017.4016.0017.20201317.1016.7116.9517.11201617.6917.4417.0217.19201717.6017.3017.0017.1016.0017.1016.3016.80MalesSurvey yearMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHS199118.6017.8018.0017.6018.8018.1019.1018.20199417.5017.6017.6017.70199517.1417.1717.4917.35199717.6717.1517.8017.73199918.5018.5018.2018.6018.1018.7018.4018.70200018.7718.5018.3017.2717.5018.2017.3718.5018.4017.9016.2018.70200318.4018.5018.4018.5018.0018.5018.2018.50200417.3717.6918.2017.71200518.2018.5017.3018.2018.3018.8016.9018.50200717.2018.8018.5017.1518.2018.6017.2918.4018.8017.7118.5018.90201018.3418.1417.9719.00201116.6018.1019.7018.3017.3017.9016.2018.10201318.4518.0917.9818.43201618.2417.9618.8418.36201718.7018.3017.7018.2018.9018.7019.0018.70
Age at First Sex by Education and HIV Status
The median age at first sex was significantly lower for males and females with no education compared to those with secondary or higher education (Fig. 4a and b). For males, the median age was 17.1 years for those with no education compared to 18.3 years for those with secondary or higher education, while for females, it was 16.2 years and 18.2 years, respectively. Overall, females and males with no education experience first sex at a younger age compared to those with secondary or higher education, although the difference starts to become minimal or insignificant from 22 years onwards. A very small and insignificant difference was also observed between males with no education (17.1 years) and those with primary education (17.3 years) (Fig. 4a). Additionally, males and females with a positive HIV status experienced first sex slightly earlier (16.9 years and 16.3 years, respectively) compared to those with a negative HIV status (17.5 years and 16.9 years, respectively) (Fig. 5a and b), but this difference minimized from 22 years onwards.Fig. 4. Estimated probability of first sex experience for the log-logistic AFT model for males and females by education levelFig. 5Estimated probability of first sex experience for the log-logistic AFT model for males and females by HIV status
Trend in Age at First Marriage
From 1994–1995 to 2015–2016, the median age at first marriage increased by approximately one year for females (from 18.30 years in 1994–1995 to 19.38 years in 2015–2016) and two years for males (from 21.85 years in 1994–1995 to 24.27 years in 2015–2016), although this progression was not consistent annually (Fig. 6 and Appendix: Table 3). There was a slight systematic rise observed from 2003–04 to 2015–16 for females (from 18.57 years in 2003–2004 to 19.38 years in 2015–2016) and from 2003–04 to 2010 for males (from 23.01 years in 2003–2004 to 23.81 years in 2010). Overall, males consistently had a higher median age at first marriage compared to females across all survey years. The year 1996–1997 displayed slightly elevated values for both sexes, with a median age at first marriage of 20.54 years for females and 24.04 years for males, compared to the surrounding years. When comparing the trends in estimated median age at first marriage using the AFT model with those derived from the traditional method (standard descriptive statistics), similar trends were observed as in age at first sex. The overall median age at first marriage was higher with the AFT model for both females and males. Moreover, the AFT model was better at capturing subtle changes compared to the standard descriptive statistics, which exhibited no changes (a constant or flat trend) in certain years for both sexes (females: 18.00–18.00 from 1994–1995 to 2015–2016; males: 20.00–20.00 from 2003–2004 to 2010) (Fig. 7a and b; Appendix: Table 3).Fig. 6. Trends in median age at first marriage by survey year, females and males (15–24 years)Table 3. Comparison of median age at first marriage using survival (AFT) and traditional method by survey year and age groupsN = 11,116^‡^N = 4,051N = 3,054N = 2,389N = 1,581N = 3,484N = 2,622N = 2,678N = 2,258N = 1,52915–24 years20–24 years25–29 years30–34 years35–39 years15–24 years20–24 years25–29 years30–34 years35–39 yearsMedian from AFT^^Median from descriptive statistics (Traditional)^†^n = 6,492n = 2,664n = 2,018n = 1,459n = 898n = 3,048n = 2,234n = 1,913n = 1,414n = 875FemalesOverall18.7918.9018.8618.6318.2218.0018.0018.0018.0018.00Years1994–9518.3018.5118.4617.8216.9818.0018.0018.0018.0017.001996–9720.5420.5519.8819.2617.9518.0020.0018.0019.0018.001999–2019.1919.0819.0618.8218.2218.0018.0018.0018.0018.002003–0418.5718.9918.9818.8518.6618.0019.0018.5019.0018.502006–0718.6118.7219.0419.1818.6818.0018.0019.0019.0018.50201018.6918.7018.8018.6718.7418.0018.0019.0018.0019.002012–1318.9119.0418.6419.1719.0218.0018.0018.0019.0018.002015–1619.3819.3119.2918.6218.5718.0018.0018.0018.0018.00Malesn = 4,624n = 1,387n = 1,036n = 930n = 683n = 436n = 388n = 765n = 844n = 654Overall23.3323.4823.8824.6924.3720.0020.0022.0024.0024.00Years*1994–9521.8521.9322.8424.2124.1220.0020.0022.0024.0024.001996–9724.0423.2428.7527.6525.5020.0022.0023.0023.0025.001999–2023.0923.0726.4926.1123.9622.0022.0024.0024.0024.002003–0423.0123.1423.9025.5824.5920.0021.0022.0025.0025.002006–0723.3123.5823.2124.1724.2120.0020.0023.0024.0024.50201023.8124.0024.4023.7625.0320.0020.0023.0024.0025.002012–1323.3123.3424.4325.4124.3919.0020.0023.0025.0024.002015–1624.2724.5624.1924.4323.9720.0020.0022.0024.0024.00^‡^6112 (55.0%) reported first marriage before 18 years; ^*^Take into account censoring (i.e., include those who never experienced the events); ^†^Estimated based only on those who experienced the eventsFig. 7Trends in median age at first marriage estimated using AFT and traditional methods (15–24 years)
Figure 8a and b and Appendix: Table 4 show a comparison between the trends in median age at first marriage as estimated in our study (Magu HDSS) and those from Mwanza DHS and Tanzania DHS. This comparison focuses on females and males in the young adult age group (20–24 years). While Mwanza and Tanzania DHS surveys displayed erratic trends across most years, Magu HDSS data showed a consistent gradual increase in median age at first marriage for females, from 18.72 years in 2007 to 19.31 years in 2016, and for males, from 23.07 years in 2000 to 24.00 years in 2010.Fig. 8. Trends in median age at first marriage estimated with Magu HDSS, Mwanza and Tanzania DHS (20–24 years)Table 4. Comparison of median age at first marriage estimated by Magu HDSS (Kisesa) and DHS for females and males by survey years and age group20–24 years25–29 years30–34 years35–39 yearsSurvey yearMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSMagu HDSSMwanza DHSTanzania DHSFemales199119.1019.0018.8018.7019.3018.5016.7017.60199419.0018.8018.5018.00199518.5118.4617.8216.98199720.5519.8819.2617.95199919.2019.3019.2019.1019.2018.7018.6018.80200019.0818.2018.7019.0618.5019.0018.8218.4018.7018.2217.7018.40200318.5018.9018.3019.0019.7019.1017.8018.60200418.9918.9818.8518.66200518.8019.2019.1018.9018.8019.1019.0018.60200718.7219.6019.8019.0419.5019.4019.1818.0019.2018.6819.5019.10201018.7018.818.6718.74201119.3019.7019.7019.6018.4019.1019.8019.20201319.0418.6419.1719.02201619.3119.2918.6218.57201720.2020.2020.4020.4019.1019.40Males199124.4024.5024.4025.5025.30199423.4023.8024.30199521.9322.8424.2124.12199723.2422.7527.6525.50199923.1023.8024.2024.2024.9024.10200023.0723.4922.9023.6026.1124.4024.6023.9623.9024.40200324.4024.1022.1023.8023.9024.80200423.1423.9025.5824.59200524.1023.8022.8023.9022.8024.60200723.5823.2123.4024.4024.1726.7024.7024.2125.3024.30201024.0024.4023.7625.03201124.4024.5024.5023.9023.80201323.3424.4325.4124.39201624.5624.1924.4323.97201724.6024.7025.2026.0024.80
Age at First Marriage by Education and HIV Status
Figure 9 shows the estimated probability of age at first marriage by education level. For males, no difference was observed in age at first marriage between those with no education (median: 22.8 years) and primary education (median: 22.9 years), while those with secondary education or higher experienced later age at first marriage, with the median age not reached by the end of the observed age period (Fig. 9a). For females, the median age at first marriage was significantly lower for those with no education (18.0 years) compared to those with secondary or higher education (21.3 years). The difference between females with no education and those with primary education was smaller (18.0 years vs. 18.7 years) and very minimal from age 22 onwards (Fig. 9b). Additionally, males with a positive HIV status experienced first marriage slightly later (median: 23.9 years) compared to those with a negative HIV status (median: 23.4 years), while for females the difference was minimal (negative: 18.8 years vs. positive: 19.0 years) (Fig. 10a and b).Fig. 9. Estimated probability of first marriage experience for the log-logistic AFT model for males and females by education levelFig. 10Estimated probability of first marriage experience for the log-logistic AFT model for males and females by HIV status
Discussion
The findings of this study provide valuable insights into the trends of the median age at first sex and the age at first marriage using the AFT model among the young population aged 15–24 in Magu HDSS, Tanzania. Overall, the median age at first sex increased by one year for both sexes, while for age at first marriage, it increased by one year for females and two years for males. Males exhibited higher median ages at first sex and at first marriage compared with females. The comparison between the medians estimated using the survival method (AFT model) and the traditional method (median from standard descriptive statistics) showed higher median ages at first sex and at first marriage from the AFT model compared with the traditional method.
The AFT model captured small changes and showed gradual increases from 2003–2004 to 2015–2016 for females and from 2003–2004 to 2010 for males, while the traditional method showed no changes (a constant or flat trend) in some years for both females and males. Specifically, the years showing no changes were: for median age at first sex, 1996–1997 to 2012–2013 for females, and 2003–2004 to 2012–2013 for males; and for median age at first marriage, 1994–1995 to 2015–2016 for females, and 2003–2004 to 2010 for males. This ability to capture subtle variations enhances the AFT model’s utility in discerning dynamic trends in age at first sex and age at first marriage data while fully utilizing all data sets (i.e., accounting for censoring). By employing the AFT model, we have enhanced the ability to use all self-reported data for the young population without omitting those who never experienced the events or the adolescent age group (15–19 years) during the estimation. This approach offers valuable insights that can inform public health policies and interventions. In real life, a substantial number of young people experience these events before age 20, so omitting them during analysis is not a good approach. For example, in this study (Magu HDSS), among the young population aged 15–24 years, 8.8% reported first sex before age 15 and 55% reported first marriage before age 18 (Appendix: Table 1 and Table 3). We also observed an increase in the median age at first sex in the early years (1994–2000) for both females and males before it dropped again for both sexes. This period coincided with the height of the HIV epidemic in this area, and the increase in median age at first sex around this time might be associated with efforts to abstain from sexual activity and potential HIV fears (Urassa et al., 2024).
When comparing median age at first sex and age at first marriage trends with those from the Mwanza DHS and Tanzania DHS (TDHS) for young adults (20–24 years) of both sexes, we observed erratic trends across the years for Mwanza and TDHS, while systematic gradual changes were observed in certain years in Magu HDSS. Notable closeness in estimates was observed during specific periods, such as 2000 and 2007 for the median age at first sex among females and 2000 for males, highlighting that the Magu HDSS data is a good representation of the population in Tanzania (Urassa et al., 2024). The observed discrepancies may stem from differences in sample sizes, methodologies, or population characteristics between our study and the TDHS.
When stratified by education level, our results showed that individuals with no education had significantly lower median ages at first sex and at first marriage compared to those with secondary or higher education. Specifically, for males, the median age at first sex was 17.1 years for those with no education compared to 18.3 years for those with secondary or higher education, while for females, it was 16.2 years versus 18.2 years, respectively. Similarly, for the median age at first marriage, the median age for females was 18.0 years for those with no education compared to 21.3 years for those with secondary or higher education. This pattern was consistent for both males and females, emphasizing the role of education in delaying the onset of sexual activity and marriage. Additionally, those with a positive HIV status experienced first sex and marriage slightly earlier than those with a negative status, although the difference was very minimal for both genders. For males, the median age at first sex was 17.5 years for those with a negative status compared to 16.9 years for those with a positive status, while for females, the median age was 18.8 years for those with a negative status and 19.0 years for those with a positive status. The increase in educational attainment over the study period has likely contributed to the observed delays in the median age at first sex and median age at first marriage. The substantial rise in education levels reflects broader societal changes and the effectiveness of educational policies implemented during this period. This compositional change in education is a crucial factor in understanding the dynamics of sexual and marital timing among young people. As more individuals attain higher education, the overall trends shift toward later ages for these milestones, underscoring the significant role of education in shaping sexual and reproductive behaviors. Our findings align with global patterns indicating that higher educational attainment is associated with later age at first sex and age at first marriage. Studies from various regions, including sub-Saharan Africa, have documented similar trends, reinforcing the protective role of education in delaying these milestones (Hargreaves et al., 2012; Ikamari, 2005; Lindstrom et al., 2022; Marphatia et al., 2020; Reda & Lindstrom, 2014).
The analysis of the median age at first sex and median age at first marriage reveals significant periods of premarital sexual activity among the young population in Magu, Tanzania, ranging from 1.6 to 3.9 years for females and 4.9 to 6.6 years for males (Appendix: Table 5). These findings underscore the importance of addressing contraceptive use and associated risks during this premarital period. Prolonged premarital sexual activity without adequate contraceptive use increases the risk of unintended pregnancies and sexually transmitted infections (STIs), which can have long-term social and economic consequences (Bertrand et al., 2023; Das & Rout, 2023). Therefore, public health policies should emphasize comprehensive sexual education and access to contraceptive methods for young, unmarried individuals (Krugu & van der Kwaak, 2024). Addressing the social stigma around premarital sex and contraceptive use is also crucial to ensure young people can make informed decisions about their sexual health (Krugu & van der Kwaak, 2024).Table 5. Years of premarital sex for females and malesYearsMedian AFS FemaleMedian AFS MaleMedian AFM FemaleMedian AFM MaleYears of premarital sex FemaleYears of premarital sex Male199516.1816.9818.321.852.104.90199716.6417.4220.5424.043.906.60200017.4918.1819.1923.091.704.90200416.3616.6718.5723.012.206.30200717.0216.8118.6123.311.606.50201017.0918.3718.6923.811.605.40201317.3518.318.9123.311.605.00201617.6118.2419.3824.271.806.00AFS = Age at first sex; AFM = Age at first marriage
We also observed slightly earlier experiences of first sex or marriage when utilizing data corrected for inconsistencies compared to uncleaned data (Appendix: Fig. 1). This suggests that many of the inconsistencies may be attributable to random misreporting rather than systematic biases. This slight difference indicates that the observed trends can be interpreted with some confidence for uncorrected data as well, despite some levels of misreporting. Furthermore, this provides some reassurance when interpreting trends in serial cross-sectional data, such as from Demographic and Health Surveys (DHS), where such inconsistencies cannot be identified. However, consistency of reporting does not always signify accuracy; an individual may consistently report an incorrect age at first sex, a bias which cannot be detected. This small difference, which overall had an insignificant impact, has also been observed in another study (Cremin et al., 2009; Upchurch et al., 2002). However, it is always worth practicing good methodology to correct and clean data for estimating trends and other analyses, as the significant impact may not be evident when dealing with a large sample size, but the story can be different when dealing with a small sample size.
Our findings have some implications for public health interventions and policies aimed at promoting sexual and reproductive health among young population in Tanzania. The observed increase in the median age at first sex and median age at first marriage underscores the need for comprehensive sexuality education and access to reproductive health services to ensure informed decision-making and safe practices among adolescents and young adults. Moreover, addressing disparities in sexual initiation by education level calls for targeted interventions tailored to the needs of vulnerable populations, particularly those with limited access to education.
One of the limitations of this study is the potential presence of anomalies or external influences in certain years, which could introduce bias into the observed trends in median age at first sex and median age at first marriage. These anomalies, particularly notable in 1999–2000 for age at first sex and 1996–1997 for age at first marriage, may reflect the influence of unaccounted factors, such as programs promoting sexual abstinence and other HIV interventions aimed at reducing HIV prevalence (Urassa et al., 2024). Additionally, the surveys did not distinguish between formal marriage and cohabitation. This conflation may introduce bias in estimating median age at first marriage across subgroups, as behaviors may differ between formal marriage and cohabiting individuals. Despite this limitation, the overall trends observed are likely robust, especially when using corrected and cleaned data across multiple survey rounds. Also, despite efforts to correct inconsistencies in the data, it is challenging to ascertain the accuracy of values reported by single respondents across surveys, unlike for those who appeared in multiple rounds, potentially impacting the precision of the estimates. However, despite this limitation, the study spans a considerable time period from 1994–95 to 2015–16, enabling the examination of trends over time. This longitudinal analysis provides valuable insights into changes in age at first sex and age at first marriage over the years among the young population (aged 15–24) using all available data.
In conclusion, access to education remains a significant factor in delaying these events, especially the age at first marriage. There is no significant difference affecting the trend in the median of these events or the inference between the corrected and uncorrected data. However, it is always worthwhile to correct the data to increase confidence in the final estimates and inference of the results. Additionally, using AFT model as a parametric method under survival analysis to estimate the median is useful, as it allows us to utilize all data in the estimation process and capture even small changes rather than relying only on traditional descriptive statistics.
Electronic supplementary material
Below is the link to the electronic supplementary material.Supplementary file1 (XLS 4761 KB)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Cohen, B., & Bessinger, R. (2003). Sexual behavior, HIV, and fertility trends: A comparative analysis of six countries. MEASURE Evaluation. https://www.measureevaluation.org/resources/publications/sr-03-21b.html
- 2ICF. (2012). The DHS Program STA Tcompiler. Funded by USAID. Retrieved 06/02/2024 from http://www.statcompiler.com
- 3Ikamari, L. D. (2005). The effect of education on the timing of marriage in Kenya. Demographic Research,12. https://www.demographic-research.org/volumes/vol 12/1/12-1.pdf
- 4Krugu, J. K., & van der Kwaak, A. (2024). Adolescent sexual and reproductive health in low- and middle-income countries: A synthesis of research findings for improved program development and implementation. KIT Royal Tropical Institute. https://www.kit.nl/wp-content/uploads/2019/05/Adolescent-Research-in-Brief_Sida.docx
- 5Ministry of Health, Community Development, Gender, Elderly and Children (Mo HCDGEC) [Tanzania Mainland]; Ministry of Health (Mo H) [Zanzibar]; National Bureau of Statistics (NBS); Office of the Chief Government Statistician (OCGS); & ICF. (2016). Tanzania Demographic and Health Survey and Malaria Indicator Survey (TDHS-MIS) 2015–16. Dar es Salaam, Tanzania, and Rockville, Maryland, USA: Mo HCDGEC, Mo H, NBS, OCGS, and ICF. https://dhsprogram.com/pubs/pdf/FR 321/FR 321.pdf
- 6Ministry of Health (Mo H) [Tanzania Mainland], Ministry of Health (Mo H) [Zanzibar], National Bureau of Statistics (NBS), Office of the Chief Government Statistician (OCGS), & ICF. (2022). Tanzania Demographic and Health Survey and Malaria Indicator Survey 2022 Final Report. https://dhsprogram.com/pubs/pdf/PR 144/PPR 144.pdf
- 7National Bureau of Statistics (NBS) [Tanzania] & ICF Macro. (2011). Tanzania Demographic and Health Survey 2010. Dar es Salaam, Tanzania: NBS and ICF Macro. https://dhsprogram.com/pubs/pdf/FR 243/FR 243[24June 2011].pdf
- 8Spouses, C. (2001). Early marriage. Innocenti Digest, 7. https://www.girlsnotbrides.org/documents/120/UNICEF-Early-Marrage-child-spouses-Innocenti-digest-2001.pdf
