<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Appl. Math. Stat.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Applied Mathematics and Statistics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Appl. Math. Stat.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2297-4687</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fams.2025.1664415</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Measuring the performance of LPA, LCGA, LGCM, and GMM in identifying the homogenous subgroups (latent classes) within the wider heterogeneous population of patients on DTG</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Nkhoma</surname>
<given-names>Harrid</given-names>
</name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x002A;</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3131563"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Mulaga</surname>
<given-names>Atupele Ngina</given-names>
</name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3282283"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x0026; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &#x0026; editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Kumwenda</surname>
<given-names>Save</given-names>
</name>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/2890036"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x0026; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &#x0026; editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Kamndaya</surname>
<given-names>Mphatso</given-names>
</name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/2986673"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x0026; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &#x0026; editing</role>
</contrib>
</contrib-group>
<aff id="aff1"><label>1</label><institution>USAID/Malawi Learn to Perform</institution>, <city>Lilongwe</city>, <country country="mw">Malawi</country></aff>
<aff id="aff2"><label>2</label><institution>School of Science and Technology, Department of Mathematical Sciences, Malawi University of Business and Applied Sciences</institution>, <city>Blantyre</city>, <country country="mw">Malawi</country></aff>
<aff id="aff3"><label>3</label><institution>School of Science and Technology, Department of Public and Environmental Health Sciences, Malawi University of Business and Applied Sciences</institution>, <city>Blantyre</city>, <country country="mw">Malawi</country></aff>
<author-notes>
<corresp id="c001"><label>&#x002A;</label>Correspondence: Harrid Nkhoma, <email xlink:href="mailto:phdaps23-hbnkhoma@mubas.ac.mw">phdaps23-hbnkhoma@mubas.ac.mw</email></corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2025-12-05">
<day>05</day>
<month>12</month>
<year>2025</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2025</year>
</pub-date>
<volume>11</volume>
<elocation-id>1664415</elocation-id>
<history>
<date date-type="received">
<day>11</day>
<month>07</month>
<year>2025</year>
</date>
<date date-type="rev-recd">
<day>09</day>
<month>10</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>12</day>
<month>11</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x00A9; 2025 Nkhoma, Mulaga, Kumwenda and Kamndaya.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Nkhoma, Mulaga, Kumwenda and Kamndaya</copyright-holder>
<license>
<ali:license_ref start_date="2025-12-05">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<sec>
<title>Background</title>
<p>Identifying heterogeneity in longitudinal data is critical for understanding diverse trajectories in clinical and epidemiological research. Traditional analytical methods often fail to distinguish latent subpopulations. More advanced statistical models such as Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Latent Growth Curve Modeling (LGCM), and Growth Mixture Modeling (GMM) provide a data-driven approach to uncovering the distinct patterns. This study evaluated the performance of these models in classifying longitudinal weight gain trajectories.</p>
</sec>
<sec>
<title>Methods</title>
<p>A retrospective longitudinal dataset of 3,525 HIV positive individuals on DTG based regimen with repeated weight measurements over 24&#x202F;months was analysed. Models were implemented using a stepwise approach: (1) LPA was applied to identify latent subgroups based on weight gain patterns without incorporating time, (2) LCGA and LGCM modelled individual trajectories assuming class-invariant and class-specific variances, respectively, and (3) GMM incorporated within-class variability to allow flexible trajectory shapes. Model performance was assessed using Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), Deviance Statistics, and log-likelihood. Average Posterior Probability (AvePP) was used to evaluate classification certainty by measuring the mean probability of individuals being correctly classified into their assigned latent class. Clinical interpretability was also considered to assess real-world applicability.</p>
</sec>
<sec>
<title>Results</title>
<p>LCGA demonstrated the best model fit, with the lowest AIC (42,239.43) and BIC (42,301.1) and the highest log-likelihood (&#x2212;21,109.71), identifying three distinct weight gain trajectories in the process. Although GMM captured greater within-class variability, LCGA demonstrated superior fit statistics, with the lowest AIC (42,239.43) and BIC (42,301.1) and the highest log-likelihood (&#x2212;21,109.71), identifying three distinct trajectories.</p>
</sec>
<sec>
<title>Conclusion</title>
<p>LCGA and GMM were the most effective models for identifying distinct latent trajectories, with LCGA demonstrating the best overall fit for our data. These findings emphasize the importance of appropriate model selection in longitudinal data analysis, as different approaches yield varying capacities to detect meaningful subpopulations. Selecting an optimal model is essential for improving trajectory classification and supporting evidence-based decision-making in clinical and epidemiological research.</p>
</sec>
</abstract>
<kwd-group>
<kwd>latent class growth analysis</kwd>
<kwd>growth mixture model</kwd>
<kwd>model performance</kwd>
<kwd>trajectory analysis</kwd>
<kwd>longitudinal data</kwd>
<kwd>statistical model comparison</kwd>
</kwd-group>
<funding-group>
<award-group id="gs1">
<funding-source id="sp1">
<institution-wrap>
<institution>Elizabeth Glaser Pediatric AIDS Foundation</institution>
<institution-id institution-id-type="doi" vocab="open-funder-registry" vocab-identifier="10.13039/open_funder_registry">10.13039/100003804</institution-id>
</institution-wrap>
</funding-source>
</award-group>
<funding-statement>The author(s) declare that no financial support was received for the research and/or publication of this article.</funding-statement>
</funding-group>
<counts>
<fig-count count="5"/>
<table-count count="9"/>
<equation-count count="6"/>
<ref-count count="28"/>
<page-count count="14"/>
<word-count count="8627"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Statistics and Probability</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="sec1">
<label>1</label>
<title>Introduction</title>
<p>Body weight gain associated with antiretroviral therapy (ART), particularly with integrase strand transfer inhibitors like Dolutegravir (DTG), has raised significant clinical concerns. Although DTG has transformed HIV treatment by improving viral suppression rates and patient outcomes, emerging evidence links it to excessive weight gain, with heterogeneous responses across patient groups (<xref ref-type="bibr" rid="ref1">1</xref>). Some patients experience minimal changes, while others show substantial increases, underscoring the need for methods that capture diverse weight gain trajectories rather than average trends.</p>
<p>Advanced statistical approaches Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Latent Growth Curve Modeling (LGCM), and Growth Mixture Modeling (GMM) are increasingly applied to reveal latent subgroups in longitudinal data (<xref ref-type="bibr" rid="ref2">2</xref>, <xref ref-type="bibr" rid="ref18">18</xref>). Each method offers distinct strengths: LPA identifies subgroups from continuous measurements; LCGA models trajectories assuming no within-class variability (<xref ref-type="bibr" rid="ref3">3</xref>); LGCM incorporates individual variability in continuous outcomes (<xref ref-type="bibr" rid="ref4">4</xref>, <xref ref-type="bibr" rid="ref5">5</xref>); and GMM integrates class identification with variability, allowing heterogeneity within and between classes (<xref ref-type="bibr" rid="ref6">6</xref>, <xref ref-type="bibr" rid="ref7">7</xref>). While powerful, these models differ in assumptions, complexity, and interpretability.</p>
<p>Comparative evidence is limited on their performance in identifying DTG-related weight gain trajectories. Prior work suggests GMM can capture unobserved subgroups with moderate-to-high classification accuracy (<xref ref-type="bibr" rid="ref8">8</xref>, <xref ref-type="bibr" rid="ref7">17</xref>, <xref ref-type="bibr" rid="ref26">26</xref>), but its complexity raises challenges for convergence and interpretation. Systematically comparing LPA, LCGA, LGCM, and GMM within a single dataset can clarify their relative strengths in modeling DTG-related weight gain.</p>
<p>This study evaluates these four methods in terms of model fit (AIC, BIC), classification accuracy (entropy, posterior probabilities), variance components, and parameter estimates. By identifying distinct weight gain trajectories, we aim to inform clinicians on subgroups at heightened risk, enabling timely interventions such as nutritional counselling, metabolic screening, and treatment adjustments to mitigate complications while sustaining viral suppression.</p>
</sec>
<sec sec-type="methods" id="sec2">
<label>2</label>
<title>Methods</title>
<p>This is a retrospective observational study utilizing secondary data collected from 40 health facilities in eight districts supported by the Elizabeth Glaser Pediatric AIDS Foundation (EGPAF) in southern and central Malawi. The study focused on people living with HIV (PLWH) placed on Dolutegravir (DTG)-based regimen and were alive between 2018 and 2021. The targeted facilities included government of Malawi and Christian Health Association of Malawi (CHAM) owned establishments, supported by EGPAF through the deployment of nurses and clinicians, as well as the provision of medical supplies, electronic database systems, vehicles, and other essential resources. Body weight measurements were recorded at baseline and subsequently at 3-month intervals over a 24-month period to monitor health outcomes longitudinally. To evaluate the performance of different modeling approaches in capturing heterogeneity in body weight gain among individuals on dolutegravir (DTG)-based regimens, we applied and compared four latent variable models: Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Latent Growth Curve Modeling (GCM), and Growth Mixture Modeling (GMM). LPA was employed to identify unobserved subgroups based on weight gain patterns, assuming that the observed categorical weight measures were generated by underlying latent classes while maintaining local independence (<xref ref-type="bibr" rid="ref2">2</xref>, <xref ref-type="bibr" rid="ref21">21</xref>). LCGA extended LPA by incorporating a longitudinal dimension, allowing for trajectory-based classification while assuming class-specific fixed effects for intercepts and slopes (<xref ref-type="bibr" rid="ref3">3</xref>) Both LPA and LCGA included fixed and random effects for class membership and estimated posterior probabilities to assign individuals to latent classes. Model selection was guided by statistical fit indices, including Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), deviance statistic, and log-likelihood ratio tests (<xref ref-type="bibr" rid="ref9">9</xref>), ensuring an optimal balance between goodness-of-fit and model interpretability.</p>
<p>To further evaluate model performance, we fitted GCM and GMM to assess the ability of these approaches to capture continuous growth trajectories. GCM estimated fixed and random effects for both intercept and slope parameters, assuming a single population structure with individual variability (<xref ref-type="bibr" rid="ref4">4</xref>). GMM extended GCM by introducing latent trajectory classes, allowing for the identification of distinct subpopulations with unique growth patterns (<xref ref-type="bibr" rid="ref6">6</xref>). The GMM incorporated linear and quadratic slopes and permitted freely estimated residual variances across classes, providing greater flexibility in modeling heterogeneity in weight gain. Model performance was assessed using log-likelihood values, deviance statistics, and parameter estimates, including intercepts, slopes, and their respective residual standard errors (RSE).</p>
<sec id="sec3">
<label>2.1</label>
<title>Data collection</title>
<p>We obtained routinely collected DTG based regimen treatment patient-level data for people receiving HIV care in EGPAF-supported ART facilities in Malawi. We used two sources: the Malawi District Health Information Software version 2 (DHIS2) and facility-based ART electronic medical records systems (EMRS). Strategic information and evaluation (SI&#x0026;E) officers extracted the data using a Microsoft Excel tool.</p>
<p>Data collection tools, developed in accordance with the study protocol, were digitized and deployed online for use across the sampled health facilities. Twenty-one nurses and clinicians were recruited to collect the data using tablets configured with ODK-X software for quick and secure online data transfer. Data were synchronized to a central server every 2&#x202F;days after verification and proofreading by field supervisors. Quality control measures included: embedded logic checks during data entry and random sampling of data by supervisors to ensure accuracy, completeness, and protocol adherence. A standardized data extraction was designed and administered to ensure consistent and comprehensive data captured across all 40 targeted health facilities.</p>
</sec>
<sec id="sec4">
<label>2.2</label>
<title>Sample and data sources</title>
<p>The study sample comprised 3,525 adult HIV-positive patients receiving DTG-based ART. Eligibility criteria required participants to be aged 18&#x202F;years or older and have at least three recorded body weight measurements during the study period. Two groups were compared in this study: patients who switched to DTG from another regimen, ART-experienced and patients who initiated treatment with DTG as their first regimen, ART-na&#x00EF;ve patients: Clinical parameters were extracted from medical records, including patient cards, ART registers, CD4 count logbooks, and laboratory registers. &#x201C;Time 0&#x201D; was defined as the point of regimen change to DTG for ART-experienced patients or the initiation of DTG-based ART for ART-na&#x00EF;ve patients. The parameters retrieved included: demographics: gender, and date of birth. Anthropometrics: weight (kg) at ART initiation and during follow-up, height (cm) at ART initiation date, ART Data: regimen type, regimen start and stop dates, ART start date, and treatment outcome, HIV-Related Data: date of confirmed HIV diagnosis, date of treatment initiation, viral load results and viral load capture date, CD4 cell counts, and duration of viral suppression until Time 0.</p>
<p>Data were obtained from ART registers, patient cards, laboratory logbooks, HIV Testing and Counseling (HTC) registers, viral load registers, CD4 count registers, and electronic medical records (EMR). The facilities were sampled from districts in the central region (Mchinji, Dedza, Ntcheu) and southern region (Blantyre, Neno, Thyolo, Zomba, Chiradzulu).</p>
</sec>
<sec id="sec5">
<label>2.3</label>
<title>Inclusion and exclusion criteria</title>
<p>Patients were included into the study if they were on ART and alive between 2018 and 2021 and data values for the following key variables were available at all data capture points: weight, regimen type, age, and sex. Patients were excluded from this study if they enrolled on ART after November 2020, had missing data values on the key variables (weight, regimen type, age, and sex) at any data capture point.</p>
</sec>
<sec id="sec6">
<label>2.4</label>
<title>Sampling techniques and sample size determination</title>
<p>A single-stage sampling technique using probability proportional to size (PPS) was employed to select 40 health facilities from the 179 supported by EGPAF in eight districts and a sample size of at least 3,500 was determined.</p>
</sec>
<sec id="sec7">
<label>2.5</label>
<title>Statistical analysis</title>
<p>The study employed four latent variable models; LPA, LCGA, LGCM, and GMM to identify heterogeneity in body weight gain trajectories. Model performance was evaluated using statistical fit indices (Akaike Information Criterion [AIC], Bayesian Information Criterion [BIC], sample-size adjusted BIC [SSBIC], log-likelihood, and entropy), classification quality (posterior probabilities), and interpretability of identified trajectories. Descriptive statistics summarized patient characteristics, with means, medians, and standard deviations (SDs) for continuous variables, and proportions for categorical variables. Independent <italic>t</italic>-tests compared mean weight gain by gender, ART status (na&#x00EF;ve vs. experienced), and age categories. A significance threshold of <italic>p</italic>&#x202F;&#x003C;&#x202F;0.05 was applied. All models were estimated in R (<xref ref-type="bibr" rid="ref10">10</xref>) using the tidyLPA (<xref ref-type="bibr" rid="ref11">11</xref>), lcmm (<xref ref-type="bibr" rid="ref12">12</xref>), and lavaan (<xref ref-type="bibr" rid="ref13">13</xref>) packages. Missing data were addressed using Full Information Maximum Likelihood (FIML) under the assumption of Missing at Random (MAR) (<xref ref-type="bibr" rid="ref27">27</xref>).</p>
<p><xref ref-type="fig" rid="fig1">Figure 1</xref> provides a conceptual visualization of LPA, LCGA, GCM, and GMM and how they differ in capturing heterogeneity ranging from static profiles to longitudinal trajectories with or without within-class variability.</p>
<fig position="float" id="fig1">
<label>Figure 1</label>
<caption>
<p>Conceptual comparison of latent variable models compared in this study.</p>
</caption>
<graphic xlink:href="fams-11-1664415-g001.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Four-panel graph comparing statistical analysis methods. Top left: Latent Profile Analysis (LPA) with blue and red X marks for profiles one and two. Top right: Latent Class Growth Analysis (LCGA) with blue and red lines showing class slopes one and two. Bottom left: Growth Curve Modeling (GCM) displays a black mean trajectory line with dashed intervals. Bottom right: Growth Mixture Modeling (GMM) features blue and red lines for class mean slopes one and two with dashed intervals. Each panel has "Outcome" on the y-axis and "Time" on the x-axis.</alt-text>
</graphic>
</fig>
</sec>
<sec id="sec8">
<label>2.6</label>
<title>Representative model equations</title>
<p>Below are the representative model equations for Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Growth Curve Modeling (GCM) and Growth Mixture Modeling (GMM).</p>
</sec>
<sec id="sec9">
<label>2.7</label>
<title>Latent profile analysis (LPA)</title>
<p>Latent Profile Analysis (LPA) is a person-centered statistical technique that is used to identify unobserved subgroups within a population based on continuous observed variables. It classifies individuals into distinct profiles that share similar patterns of responses (<xref ref-type="bibr" rid="ref25">25</xref>). LPA uncovers hidden heterogeneity, enabling more precise interpretation and targeted insights from complex data. Below is a standard LPA notation equation, illustrating how the model represents these latent profiles.</p>
<disp-formula id="E1">
<mml:math id="M1">
<mml:mi>f</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="true">)</mml:mo>
<mml:mo>=</mml:mo>
<mml:munderover>
<mml:mo movablelimits="false">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>c</mml:mi>
</mml:munderover>
<mml:msub>
<mml:mi>&#x03C0;</mml:mi>
<mml:mi>c</mml:mi>
</mml:msub>
<mml:mspace width="0.25em"/>
<mml:munderover>
<mml:mo movablelimits="false">&#x220F;</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:munderover>
<mml:mi>f</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi mathvariant="italic">ij</mml:mi>
</mml:msub>
<mml:mo>&#x2223;</mml:mo>
<mml:msub>
<mml:mi>&#x03B8;</mml:mi>
<mml:mi mathvariant="italic">jc</mml:mi>
</mml:msub>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</disp-formula>
<disp-formula id="E2">
<mml:math id="M2">
<mml:mtext mathvariant="italic">with</mml:mtext>
<mml:munderover>
<mml:mo movablelimits="false">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>c</mml:mi>
</mml:munderover>
<mml:mi>f</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:msub>
<mml:mi>&#x03B8;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mi>&#x03B8;</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</disp-formula>
<p>Where:</p>
<p><inline-formula>
<mml:math id="M3">
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:math>
</inline-formula> is the vector of observed indicators for individual <italic>i.</italic></p>
<p><italic>c</italic> is the number of latent classes,</p>
<p><inline-formula>
<mml:math id="M4">
<mml:msub>
<mml:mi>&#x03C0;</mml:mi>
<mml:mi>c</mml:mi>
</mml:msub>
</mml:math>
</inline-formula> is the probability of membership in latent class c<italic>c</italic> (mixing proportion),</p>
<p><inline-formula>
<mml:math id="M5">
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi mathvariant="italic">ij</mml:mi>
</mml:msub>
</mml:math>
</inline-formula> is the observed value of indicator j for individual i,</p>
<p><inline-formula>
<mml:math id="M6">
<mml:msub>
<mml:mi>&#x03B8;</mml:mi>
<mml:mi mathvariant="italic">jc</mml:mi>
</mml:msub>
</mml:math>
</inline-formula> are the class-specific parameters for indicator <italic>j</italic> in class <italic>c.</italic></p>
<p><inline-formula>
<mml:math id="M7">
<mml:mi>f</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi mathvariant="italic">ij</mml:mi>
</mml:msub>
<mml:mspace width="0.25em"/>
<mml:mo>&#x2223;</mml:mo>
<mml:mspace width="0.25em"/>
<mml:msub>
<mml:mi>&#x03B8;</mml:mi>
<mml:mi mathvariant="italic">jc</mml:mi>
</mml:msub>
<mml:mo stretchy="true">)</mml:mo>
<mml:mspace width="0em"/>
</mml:math>
</inline-formula> is the probability density function of the observed indicator y<sub>ij</sub> given the parameters &#x03B8;<sub>jc</sub>.</p>
</sec>
<sec id="sec10">
<label>2.8</label>
<title>Latent class growth analysis (LCGA)</title>
<p>Latent Class Growth Analysis (LCGA) is a person-centered method that identifies unobserved subgroups based on longitudinal trajectories. Unlike LPA, LCGA focuses on patterns of change over time rather than cross-sectional profiles. LCGA fixes the within-class variances of growth factors (intercepts and slopes) to zero (<xref ref-type="bibr" rid="ref24">24</xref>). The following standard LCGA equation illustrates how these latent trajectory classes are modeled.</p>
<disp-formula id="E3">
<mml:math id="M8">
<mml:msubsup>
<mml:mi>y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>=</mml:mo>
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>0</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>+</mml:mo>
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>1</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mi>t</mml:mi>
<mml:mo>+</mml:mo>
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>2</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mspace width="0.25em"/>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:math>
</disp-formula>
<p>Where:</p>
<p><inline-formula>
<mml:math id="M9">
<mml:msubsup>
<mml:mi>y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
</mml:math>
</inline-formula> is an outcome for individual ii at time t in latent class k.</p>
<p><inline-formula>
<mml:math id="M10">
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>0</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
</mml:math>
</inline-formula> is a class-specific intercept.</p>
<p><inline-formula>
<mml:math id="M11">
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>1</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mi>t</mml:mi>
</mml:math>
</inline-formula> is a class-specific linear slope.</p>
<p><inline-formula>
<mml:math id="M12">
<mml:msubsup>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>2</mml:mn>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mspace width="0.25em"/>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:math>
</inline-formula> is a class-specific quadratic slope.</p>
</sec>
<sec id="sec11">
<label>2.9</label>
<title>Latent growth curve modeling (LGCM)</title>
<p>Growth Curve Modeling (GCM) examines individual trajectories of change over time. Unlike LCGA, LGCM models continuous variation across individuals rather than classifying them into discrete latent classes (<xref ref-type="bibr" rid="ref20">20</xref>, <xref ref-type="bibr" rid="ref22">22</xref>). The following equation illustrates how these individual growth trajectories are represented.</p>
<disp-formula id="E4">
<mml:math id="M13">
<mml:msub>
<mml:mi mathvariant="normal">Y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>0</mml:mn>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mi>t</mml:mi>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>t</mml:mi>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>&#x03B5;</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
</mml:msub>
</mml:math>
</disp-formula>
<p>Where:</p>
<p><inline-formula>
<mml:math id="M14">
<mml:msub>
<mml:mi>Y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
</mml:msub>
</mml:math>
</inline-formula> is outcome for individual i at time <italic>t.</italic></p>
<p><inline-formula>
<mml:math id="M15">
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>0</mml:mn>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
</mml:math>
</inline-formula> are the fixed (population-level) intercept and slope.</p>
<p><inline-formula>
<mml:math id="M16">
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mspace width="0.25em"/>
<mml:mtext mathvariant="italic">is</mml:mtext>
<mml:mspace width="0.25em"/>
<mml:mi>a</mml:mi>
</mml:math>
</inline-formula> quadratic slope, optional term for acceleration/deceleration in growth.</p>
<p><inline-formula>
<mml:math id="M17">
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>i</mml:mi>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223C;</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>&#x03A8;</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula> =&#x202F;random effects for individual deviations.</p>
<p><inline-formula>
<mml:math id="M18">
<mml:msub>
<mml:mi>&#x03B5;</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
</mml:msub>
<mml:mo>&#x223C;</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mi>&#x03C3;</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula> Residual error at time t for individual i, assumed normally distributed.</p>
</sec>
<sec id="sec12">
<label>2.10</label>
<title>Growth mixture modeling (GMM)</title>
<p>Growth Mixture Modeling (GMM) identifies latent subgroups with distinct growth trajectories while allowing for individual variation within each class (<xref ref-type="bibr" rid="ref23">23</xref>). Unlike LCGA, GMM models both between-class differences and within-class heterogeneity change over time (<xref ref-type="bibr" rid="ref19">19</xref>). The following standard GMM equation illustrates how these latent trajectory classes and individual variations are represented:</p>
<disp-formula id="E5">
<mml:math id="M19">
<mml:msubsup>
<mml:mi>Y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mrow>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>t</mml:mi>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi mathvariant="italic">ic</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi mathvariant="italic">ic</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>t</mml:mi>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi mathvariant="italic">ic</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>+</mml:mo>
<mml:msubsup>
<mml:mi>&#x03B5;</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mrow>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:math>
</disp-formula>
<p>Where:</p>
<p><inline-formula>
<mml:math id="M20">
<mml:msubsup>
<mml:mi>Y</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mrow>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> is the observed continuous outcome for individual i at time t in class c.</p>
<disp-formula id="E6">
<mml:math id="M21">
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mtext>fixed inteecept and slope for class</mml:mtext>
<mml:mspace width="0.25em"/>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>
<p><inline-formula>
<mml:math id="M22">
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi mathvariant="italic">ic</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi mathvariant="italic">ic</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223C;</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>&#x03A8;</mml:mi>
<mml:mi>c</mml:mi>
</mml:msub>
<mml:mo stretchy="true">)</mml:mo>
<mml:mo>=</mml:mo>
</mml:math>
</inline-formula>&#x202F;individual-level random effects (intercept and slope deviations) within class c.</p>
<p><inline-formula>
<mml:math id="M23">
<mml:msub>
<mml:mi>&#x03B2;</mml:mi>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mi>t</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>=</mml:mo>
</mml:math>
</inline-formula> class specific quadratic slope (optional).</p>
<p><inline-formula>
<mml:math id="M24">
<mml:msubsup>
<mml:mi>&#x03B5;</mml:mi>
<mml:mi mathvariant="italic">it</mml:mi>
<mml:mi>c</mml:mi>
</mml:msubsup>
<mml:mo>~</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi>&#x03C3;</mml:mi>
<mml:mi>c</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula>&#x202F;=&#x202F;residual error for class c.</p>
</sec>
<sec id="sec13">
<label>2.11</label>
<title>Stability of standard errors through residual constraints</title>
<p>Constraining class-specific residuals stabilizes standard errors, particularly for intercept estimates, allowing a clearer assessment of how adding quadratic terms affects growth trajectories Class-specific residual variances were held constant across the linear and quadratic models to simplify estimation, ensure comparability of parameter estimates, and maintain interpretability of growth trajectories. This was done to stabilize standard errors and ensure that differences between models reflect changes in trajectory shape rather than residual variability.</p>
</sec>
<sec id="sec14">
<label>2.12</label>
<title>Sensitivity analysis</title>
<p>To ensure the robustness of the findings, sensitivity analyses were conducted. These included varying the initial starting values for each model to minimize the risk of converging on local maxima. Additionally, model stability was assessed by systematically altering the number of latent classes to evaluate the consistency and reliability of the results across different model specifications. Furthermore, alternative model specifications were tested to assess the robustness of the identified trajectories. These included allowing for class-specific variances in the intercept and slope terms (i.e., relaxing the assumption of homoscedasticity across classes), testing models with and without quadratic growth terms, and comparing LCGA models with growth mixture models (GMM) that permit within-class variability. Additionally, the inclusion of covariates predicting class membership was examined to determine the influence of external variables on classification. The consistency of class membership probabilities and model fit indices across these specifications supported the stability and validity of the final model solution.</p>
</sec>
<sec id="sec15">
<label>2.13</label>
<title>Ethical considerations</title>
<p>Ethical approval for the study was obtained from the National Health Sciences Research Committee (NHSRC) of Malawi&#x2019;s Ministry of Health, (protocol V2.09 # 18/09/2139), and registered with USA&#x2019;s Office of the Human Research Protections (OHRP) IRB # IRB00003509, FWA 99999576. Ethical review authorities in 40 of the participating health facilities independently reviewed and approved the data collection protocols from their facilities. No Individual written consent was required because this was a retrospective data collection process where there was no direct contact with patients. No identifiers (ART numbers, names, home addresses, or phone numbers) were extracted from any of the data sources used. Data was collected anonymously and solely from hospital records.</p>
</sec>
</sec>
<sec sec-type="results" id="sec16">
<label>3</label>
<title>Results</title>
<sec id="sec17">
<label>3.1</label>
<title>Descriptive analysis of the sampled participants</title>
<p><xref ref-type="table" rid="tab1">Table 1</xref> shows that male patients gained an average of 1.23&#x202F;kg, while females gained 1.65&#x202F;kg at 12&#x202F;months from DTG initiation or switch (<italic>p</italic>&#x202F;=&#x202F;0.446). ART-na&#x00EF;ve patients experienced a higher mean weight gain of 2.29&#x202F;kg compared to 1.39&#x202F;kg for ART-experienced patients. Among males, the mean weight gain was significantly different between ART-experienced (1.02&#x202F;kg) and ART-na&#x00EF;ve (3.66&#x202F;kg) individuals (<italic>p</italic>&#x202F;=&#x202F;0.012). However, for females, the difference between ART-experienced (1.71&#x202F;kg) and ART-na&#x00EF;ve (1.19&#x202F;kg) patients was not statistically significant (<italic>p</italic>&#x202F;=&#x202F;0.6172).</p>
<table-wrap position="float" id="tab1">
<label>Table 1</label>
<caption>
<p>Descriptive statistics of the sampled participants.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top">N&#x202F;=&#x202F;3,525</th>
<th align="left" valign="top" rowspan="2">Category/Subgroup</th>
<th align="center" valign="top" rowspan="2">Mean (SD)/Frequency (<italic>N</italic>, %)</th>
<th align="center" valign="top" rowspan="2">Mean Weight Gain (kg)</th>
<th align="center" valign="top" rowspan="2"><italic>p</italic>-value</th>
</tr>
<tr>
<th align="left" valign="top">Variable</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">Age (Years)</td>
<td align="left" valign="top">Mean (SD)</td>
<td align="center" valign="top">33.5 (12.8)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td/>
<td align="left" valign="top">Min&#x202F;&#x003C;&#x202F;Median &#x003C; Max</td>
<td align="center" valign="top">15&#x202F;&#x003C;&#x202F;33&#x202F;&#x003C;&#x202F;81</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td/>
<td align="left" valign="top">IQR (CV)</td>
<td align="center" valign="top">19 (0.4)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="2">Sex</td>
<td align="left" valign="top">Male</td>
<td align="center" valign="top">1,317 (37.4%)</td>
<td align="center" valign="top">1.23</td>
<td align="center" valign="top">0.446</td>
</tr>
<tr>
<td align="left" valign="top">Female</td>
<td align="center" valign="top">2,208 (62.6%)</td>
<td align="center" valign="top">1.65</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="2">Overall weight (kg)</td>
<td align="left" valign="top">Mean (SD)</td>
<td align="center" valign="top">51.7 (12.9)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Min&#x202F;&#x003C;&#x202F;Median &#x003C; Max</td>
<td align="center" valign="top">20&#x202F;&#x003C;&#x202F;53&#x202F;&#x003C;&#x202F;125</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td/>
<td align="left" valign="top">IQR (CV)</td>
<td align="center" valign="top">17 (0.2)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="4">Mean max weight on DTG (kg)</td>
<td align="left" valign="top">Baseline</td>
<td align="center" valign="top">52.5 (12.3)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">6&#x202F;months</td>
<td align="center" valign="top">55.9 (12.7)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">12&#x202F;months</td>
<td align="center" valign="top">56.4 (12.4)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">24&#x202F;months</td>
<td align="center" valign="top">45.3 (18.2)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="5">Patient treatment outcome</td>
<td align="left" valign="top">Alive and on Treatment (0)</td>
<td align="center" valign="top">2,993 (84.9%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Dead (1)</td>
<td align="center" valign="top">26 (0.7%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Defaulted (2)</td>
<td align="center" valign="top">265 (7.5%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Stopped (3)</td>
<td align="center" valign="top">2 (0.1%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Transferred Out (4)</td>
<td align="center" valign="top">239 (6.8%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="4">LCGA Class</td>
<td align="left" valign="top">Class 1</td>
<td align="center" valign="top">219 (6.21%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Class 2</td>
<td align="center" valign="top">3,204 (90%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Class 3</td>
<td align="center" valign="top">23 (0.65%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Class 4</td>
<td align="center" valign="top">79 (2.24%)</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="2">ART Status</td>
<td align="left" valign="top">Na&#x00EF;ve</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">2.29</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Experienced</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">1.39</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="4">ART Status by Sex</td>
<td align="left" valign="top">Male, Na&#x00EF;ve</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">3.66</td>
<td align="center" valign="top">0.012</td>
</tr>
<tr>
<td align="left" valign="top">Male, Experienced</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">1.02</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">Female, Na&#x00EF;ve</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">1.19</td>
<td align="center" valign="top">0.6172</td>
</tr>
<tr>
<td align="left" valign="top">Female, Experienced</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">1.71</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="4">Age Group</td>
<td align="left" valign="top">0&#x2013;17&#x202F;years</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">3.45</td>
<td align="center" valign="top">0.05</td>
</tr>
<tr>
<td align="left" valign="top">18&#x2013;34&#x202F;years</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">2.00</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">35&#x2013;49&#x202F;years</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">0.68</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
<tr>
<td align="left" valign="top">&#x2265;50&#x202F;years</td>
<td align="center" valign="top">&#x2014;</td>
<td align="center" valign="top">Lowest observed</td>
<td align="center" valign="top">&#x2014;</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Younger patients demonstrated greater weight gain, with those aged 0&#x2013;17&#x202F;years gaining an average of 3.45&#x202F;kg, followed by 18&#x2013;34&#x202F;years (2.00&#x202F;kg), 35&#x2013;49&#x202F;years (0.68&#x202F;kg), and the lowest weight gain observed in the 50&#x202F;+&#x202F;years group. When comparing weight gain between ART-na&#x00EF;ve and ART-experienced patients within these age categories, no significant differences were found, as p-values across all groups ranged from 0.2002 to 0.8094, indicating that treatment experience did not significantly influence weight gain across different age groups.</p>
<p><xref ref-type="table" rid="tab2">Table 2</xref> presents model fit statistics for four latent modeling approaches: Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Latent Growth Curve Modeling (LGCM), and Growth Mixture Modeling (GMM) examining weight gain trajectories among patients on DTG-based ART. Across all approaches, models with more than one class generally improved fit as indicated by lower AIC values. For LPA, the 2-class model demonstrated the best fit (AIC&#x202F;=&#x202F;34,683.88), suggesting two distinct weight gain profiles. In LCGA, the 2-class solution was optimal (AIC&#x202F;=&#x202F;42,422.59), capturing heterogeneity in growth trajectories. LGCM indicated that a 3-class model provided the best balance between fit and complexity (AIC&#x202F;=&#x202F;44,674.91), reflecting variation in continuous weight trajectories over time. For GMM, the 1-class model showed marginally lower AIC (42,886.66), although additional classes captured potential subgroup patterns. Overall, these results indicate that different modeling approaches reveal distinct patterns of weight gain, with the 2-class LPA and LCGA models and 3-class LGCM model providing the most parsimonious representations of heterogeneity in patient body weight responses.</p>
<table-wrap position="float" id="tab2">
<label>Table 2</label>
<caption>
<p>Model fit statistics across LPA, LCGA, LGCM, and GMM for weight gain trajectories.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top">Model type</th>
<th align="left" valign="top">Classes</th>
<th align="center" valign="top">Log-likelihood</th>
<th align="center" valign="top">AIC</th>
<th align="center" valign="top">BIC</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" rowspan="3">LPA</td>
<td align="left" valign="top">1-Class</td>
<td align="char" valign="top" char=".">&#x2212;17,353.79</td>
<td align="char" valign="top" char=".">34,725.58</td>
<td align="char" valign="top" char=".">34,794.74</td>
</tr>
<tr>
<td align="left" valign="top">2-Class</td>
<td align="char" valign="top" char=".">&#x2212;17,322.94</td>
<td align="char" valign="top" char=".">34,683.88</td>
<td align="char" valign="top" char=".">34,829.88</td>
</tr>
<tr>
<td align="left" valign="top">3-Class</td>
<td align="char" valign="top" char=".">&#x2212;17,322.94</td>
<td align="char" valign="top" char=".">34,703.88</td>
<td align="char" valign="top" char=".">34,926.72</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="3">LCGA</td>
<td align="left" valign="top">1-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,445.32</td>
<td align="char" valign="top" char=".">42,898.63</td>
<td align="char" valign="top" char=".">42,923.30</td>
</tr>
<tr>
<td align="left" valign="top">2-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,204.30</td>
<td align="char" valign="top" char=".">42,422.59</td>
<td align="char" valign="top" char=".">42,465.77</td>
</tr>
<tr>
<td align="left" valign="top">3-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,271.31</td>
<td align="char" valign="top" char=".">42,562.61</td>
<td align="char" valign="top" char=".">42,624.29</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="3">LGCM</td>
<td align="left" valign="top">1-Class</td>
<td align="char" valign="top" char=".">&#x2212;23,767.65</td>
<td align="char" valign="top" char=".">47,543.30</td>
<td align="char" valign="top" char=".">47,567.97</td>
</tr>
<tr>
<td align="left" valign="top">2-Class</td>
<td align="char" valign="top" char=".">&#x2212;22,855.86</td>
<td align="char" valign="top" char=".">45,725.72</td>
<td align="char" valign="top" char=".">45,768.89</td>
</tr>
<tr>
<td align="left" valign="top">3-Class</td>
<td align="char" valign="top" char=".">&#x2212;22,327.45</td>
<td align="char" valign="top" char=".">44,674.91</td>
<td align="char" valign="top" char=".">44,736.59</td>
</tr>
<tr>
<td align="left" valign="top" rowspan="3">GMM</td>
<td align="left" valign="top">1-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,437.33</td>
<td align="char" valign="top" char=".">42,886.66</td>
<td align="char" valign="top" char=".">42,923.66</td>
</tr>
<tr>
<td align="left" valign="top">2-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,437.33</td>
<td align="char" valign="top" char=".">42,892.66</td>
<td align="char" valign="top" char=".">42,948.16</td>
</tr>
<tr>
<td align="left" valign="top">3-Class</td>
<td align="char" valign="top" char=".">&#x2212;21,437.32</td>
<td align="char" valign="top" char=".">42,898.65</td>
<td align="char" valign="top" char=".">42,972.66</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="sec18">
<label>3.2</label>
<title>Identifying latent subgroups based on body weight gain patterns through latent profile analysis (LPA)</title>
<sec id="sec19">
<label>3.2.1</label>
<title>Best LPA model selection</title>
<p>Based on the AIC and BIC values, the class 2 model provides the best balance between model fit and complexity. The BIC is lowest for the class 1 model, but the AIC is smallest for the class 2 model.</p>
<p>The deviance statistics are almost identical for all models with 2, 3, and 4 classes, indicating that increasing the number of classes did not improve model fit substantially.</p>
</sec>
<sec id="sec20">
<label>3.2.2</label>
<title>Overfitting concern</title>
<p>The 3-class and 4-class models show higher AIC and BIC values, suggesting they might overfit the data without providing much additional explanatory power over the 2-class model. The 2-class model is the most efficient and appropriate model within the LPA for DTG data, offering a good fit without the complexity of more classes.</p>
<p>To explore patterns of patients&#x2019; body weight gain, the probabilities of belonging to different classes by their body weight gain characteristics, across three distinct latent classes were identified in the analysis. <xref ref-type="table" rid="tab3">Table 3</xref> illustrates the probably of each patient belonging to each of the three classes by their weight gain characteristics.</p>
<table-wrap position="float" id="tab3">
<label>Table 3</label>
<caption>
<p>Response probabilities for weight gain categories by latent class.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="2">Class probabilities</th>
<th align="center" valign="top" colspan="3">Weight gain characteristics (categories)</th>
</tr>
<tr>
<th align="center" valign="top">Gain &#x003E;0 &#x0026;&#x202F;&#x003C;&#x202F;5 kgs (Moderate weight gain)</th>
<th align="center" valign="top">Gain &#x2265; 5 kgs body weight (Significant weight gain)</th>
<th align="center" valign="top">No weight gain (0kgs)</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">Class 1</td>
<td align="char" valign="top" char=".">0.1913</td>
<td align="char" valign="top" char=".">0.6379</td>
<td align="char" valign="top" char=".">0.1708</td>
</tr>
<tr>
<td align="left" valign="top">Class 2</td>
<td align="char" valign="top" char=".">0.3198</td>
<td align="char" valign="top" char=".">0.4306</td>
<td align="char" valign="top" char=".">0.2496</td>
</tr>
<tr>
<td align="left" valign="top">Class 3</td>
<td align="char" valign="top" char=".">0.4960</td>
<td align="char" valign="top" char=".">0.0000</td>
<td align="char" valign="top" char=".">0.5040</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Each of the classes, as presented in <xref ref-type="table" rid="tab4">Table 4</xref>, reflects unique subgroups within the patients characterized by different probabilities of experiencing weight gain in three categories: no body weight gain (0 kgs), body weight gain &#x003E;0 and &#x003C;5 kgs, and weight gain &#x2265;5 kgs. Class 1 is associated with a high likelihood of significant body weight gain (&#x2265;5 kgs), with a smaller probability for no weight gain or moderate weight gain (&#x003E;0 and &#x003C;5 kgs). Class 2 shows more evenly distributed probabilities, with a notable likelihood of moderate weight gain, followed by significant weight gain and no weight gain. Class 3 is predominantly split into two, no weight gain and moderate weight gain. These item-response probabilities offer a deeper understanding of the distinct weight gain trajectories within the patient population. They also assist in identifying potential factors that may contribute to different weight gain patterns across the latent classes, further guiding clinical decision-making and personalized treatment strategies.</p>
<table-wrap position="float" id="tab4">
<label>Table 4</label>
<caption>
<p>Proportions of individuals across LCGA weight gain trajectories.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top">Class (weight gain)</th>
<th align="center" valign="top">Proportion (%)</th>
<th align="center" valign="top">Number of individuals</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">Class 1 (moderate body weight gain)</td>
<td align="char" valign="top" char=".">97.62</td>
<td align="center" valign="top">3,441</td>
</tr>
<tr>
<td align="left" valign="top">Class 2 (rapid weight gain)</td>
<td align="char" valign="top" char=".">0.54</td>
<td align="center" valign="top">19</td>
</tr>
<tr>
<td align="left" valign="top">Class 3 (minimal/no weight gain)</td>
<td align="char" valign="top" char=".">1.84</td>
<td align="center" valign="top">65</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>The fixed and random effect estimates derived from the Latent Class Growth Analysis (LCGA) model are summarized in <xref ref-type="table" rid="tab6">Table 6</xref>. These estimates capture growth trajectories across three distinct weight gain patterns: moderate, rapid, and minimal/no weight gain.</p>
</table-wrap-foot>
</table-wrap>
<p><xref ref-type="table" rid="tab5">Table 5</xref> presents the latent class profiles for body weight gain associated with dolutegravir (DTG) based on two key factors: the proportion of individuals on antiretroviral therapy (ART) for &#x2265; 1&#x202F;year and the proportion with obesity. Class 1illustrates the highest rates, with 35.75% on ART for &#x2265; 1&#x202F;year and 24.09% with obesity. Class 2 shows the lowest rates, with 16.45% on ART for &#x2265; 1&#x202F;year and 1.19% with obesity. Class 3 is intermediate, with 27.80% on ART for &#x2265; 1&#x202F;year and 5.54% with obesity. The findings highlight differences in periods on DTG based regimen and obesity prevalence among the patients in the three classes.</p>
<table-wrap position="float" id="tab5">
<label>Table 5</label>
<caption>
<p>Latent class profiles for DTG weight gain.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top">Class</th>
<th align="center" valign="top">Proportion on ART &#x2265; 1&#x202F;year (%)</th>
<th align="center" valign="top">Proportion with obesity (%)</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">Class 1</td>
<td align="char" valign="top" char=".">0.3575</td>
<td align="char" valign="top" char=".">0.2409</td>
</tr>
<tr>
<td align="left" valign="top">Class 2</td>
<td align="char" valign="top" char=".">0.1645</td>
<td align="char" valign="top" char=".">0.0119</td>
</tr>
<tr>
<td align="left" valign="top">Class 3</td>
<td align="char" valign="top" char=".">0.2780</td>
<td align="char" valign="top" char=".">0.0554</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="sec21">
<label>3.3</label>
<title>Identification of weight gain trajectory subgroups over time in patients on DTG-based ART regimens</title>
<p><xref ref-type="table" rid="tab4">Table 4</xref> summarizes class proportions and corresponding sample sizes for the Latent Class Growth Analysis (LCGA) model. Class 1 (Moderate Growth) represents the largest group, comprising 97.62% of the sample (n&#x202F;=&#x202F;3,441). Class 2 (Rapid Growth) accounts for 0.54% (n&#x202F;=&#x202F;19), while Class 3 (Minimal/No Growth) includes 1.84% of the sample (n&#x202F;=&#x202F;65). These results indicate that the majority of individuals experienced moderate gain, with smaller proportions showing rapid or minimal/no growth. The majority of individuals fall into Class 1, indicating moderate body weight gain is the most common trend. Class 2 (Rapid body weight gain) and Class 3 (Minimal/No gain) are much smaller groups, but their needs may differ and require targeted interventions. Understanding the characteristics of these smaller groups could help improve personalized care strategies.</p>
<p><xref ref-type="table" rid="tab6">Table 6</xref> shows that the LCGA fixed effects differed across the three body weight gain classes. In Class 1 (Moderate Gain), linear and quadratic intercepts were nearly identical (53.05 vs. 53.04), indicating that the quadratic term adds little to model fit. In Class 2 (Rapid Gain), the linear intercept (89.37) slightly exceeded the quadratic (89.12), both significant (<italic>p</italic>&#x202F;&#x003C;&#x202F;0.001). In Class 3 (Minimal/No Gain), the quadratic intercept (13.32) slightly exceeded the linear (12.72), showing small differences. These results highlight the varying contributions of linear and quadratic terms across classes.</p>
<table-wrap position="float" id="tab6">
<label>Table 6</label>
<caption>
<p>Fixed and random effects estimates for LCGA across weight gain trajectories.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="2">Model component</th>
<th align="center" valign="top" colspan="2">Class 1 (moderate weight gain)</th>
<th align="center" valign="top" colspan="2">Class 2 (rapid weight gain)</th>
<th align="center" valign="top" colspan="2">Class 3 (minimal/no weight gain)</th>
</tr>
<tr>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" colspan="7">Fixed effects intercept</td>
</tr>
<tr>
<td align="left" valign="top">
<inline-formula>
<mml:math id="M25">
<mml:mi>&#x03B2;</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi mathvariant="italic">Se</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula>
</td>
<td align="center" valign="top">53.05 (0.20)</td>
<td align="center" valign="top">53.04 (0.20)</td>
<td align="center" valign="top">89.37 (2.92)</td>
<td align="center" valign="top">89.12 (2.90)</td>
<td align="center" valign="top">12.72 (1.55)</td>
<td align="center" valign="top">13.32 (1.51)</td>
</tr>
<tr>
<td align="left" valign="top">Wald &#x03C7;<sup>2</sup></td>
<td align="center" valign="top">270.51</td>
<td align="center" valign="top">272.07</td>
<td align="center" valign="top">30.64</td>
<td align="center" valign="top">30.68</td>
<td align="center" valign="top">8.21</td>
<td align="center" valign="top">8.80</td>
</tr>
<tr>
<td align="left" valign="top"><italic>p</italic>-value</td>
<td align="center" valign="top">&#x003C;0.001</td>
<td align="center" valign="top">&#x003C;0.001</td>
<td align="center" valign="top">&#x003C;0.001</td>
<td align="center" valign="top">&#x003C;0.001</td>
<td align="center" valign="top">&#x003C;0.001</td>
<td align="center" valign="top">&#x003C;0.001</td>
</tr>
<tr>
<td align="left" valign="top" colspan="7">Random effects</td>
</tr>
<tr>
<td align="left" valign="top">Variance (Intercept)</td>
<td align="center" valign="top">110.51</td>
<td align="center" valign="top">110.57</td>
<td align="center" valign="top">110.51</td>
<td align="center" valign="top">110.57</td>
<td align="center" valign="top">110.51</td>
<td align="center" valign="top">110.57</td>
</tr>
<tr>
<td align="left" valign="top">Residual standard error</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
<td align="center" valign="top">3.68&#x202F;&#x00B1;&#x202F;0.05</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Random-effects analysis showed similar variability in intercepts (linear 110.51 vs. quadratic 110.57) and identical residual standard errors (3.68&#x202F;&#x00B1;&#x202F;0.05), indicating that differences stem mainly from fixed effects. The largest fixed-effects differences occurred in Classes 2 and 3. Including covariates reduced the variance of the linear intercept (57.23), suggesting substantial influence on linear growth, while the quadratic intercept variance remained stable (110.58), indicating limited impact on non-linear patterns.</p>
<p><xref ref-type="table" rid="tab7">Table 7</xref> presents the distribution of participants across weight gain classes and the corresponding posterior classification probabilities. The table shows that most individuals (93.22%) belong to Class 1, representing &#x201C;Moderate Weight Gain.&#x201D; Class 2 (5.59%) reflects &#x201C;Rapid Weight Gain,&#x201D; a smaller but clinically relevant subgroup requiring closer monitoring. Class 3 (1.13%) includes those with &#x201C;Minimal or No Weight Gain,&#x201D; highlighting the need for targeted interventions, while Class 4 (0.06%) represents rare outliers, possibly exceptional responses, or data anomalies. These classifications provide insights into weight gain patterns and can guide personalized care and interventions for different subgroups.</p>
<table-wrap position="float" id="tab7">
<label>Table 7</label>
<caption>
<p>Posterior classification probabilities and class membership distribution.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top">Category</th>
<th align="center" valign="top">Prob of class 1</th>
<th align="center" valign="top">Prob of class 2</th>
<th align="center" valign="top">Prob of class 3</th>
<th align="center" valign="top">Prob of class 4</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top"><italic>N</italic></td>
<td align="char" valign="top" char=".">3286.00</td>
<td align="char" valign="top" char=".">197.00</td>
<td align="char" valign="top" char=".">40.00</td>
<td align="char" valign="top" char=".">2.00</td>
</tr>
<tr>
<td align="left" valign="top">%</td>
<td align="char" valign="top" char=".">93.22</td>
<td align="char" valign="top" char=".">5.59</td>
<td align="char" valign="top" char=".">1.13</td>
<td align="char" valign="top" char=".">0.06</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="sec22">
<label>3.4</label>
<title>LCGA class separation</title>
<p>The latent class growth analysis models showed increasing classification precision with more classes. The 1-class model had an entropy of 0.00, indicating no meaningful separation, while the 2-class model improved slightly to 0.03. The 3-class model achieved substantially better classification with an entropy of 0.63, suggesting moderate certainty in assigning individuals to distinct trajectories. Overall, the results indicate that moving from one to three classes provides clearer differentiation of growth patterns in the data. Refer to <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p>
<fig position="float" id="fig2">
<label>Figure 2</label>
<caption>
<p>LCGA 3 class entropy values.</p>
</caption>
<graphic xlink:href="fams-11-1664415-g002.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Line graph displaying entropy across three Latent Class Growth Analysis models (LCGA). The x-axis represents LCGA models with labels one-class, two-class, and three-class, while the y-axis shows entropy values from zero to one. The graph indicates a dramatic increase in entropy, starting near zero for one-class and two-class models, rising sharply to just under one for the three-class model.</alt-text>
</graphic>
</fig>
<p>The mean posterior probabilities indicate how confidently individuals are assigned to each latent class, with higher values reflecting clearer separation between classes. In our 3-class LCGA model, Class 1, Class 2, and Class 3 show mean posterior probabilities of 0.91, 0.97, and 0.90, respectively, suggesting good classification quality. These patterns are illustrated in <xref ref-type="fig" rid="fig3">Figure 3</xref>, which visualizes the distribution of posterior probabilities across the latent classes.</p>
<fig position="float" id="fig3">
<label>Figure 3</label>
<caption>
<p>Posterior probability patterns across 3 Class LCGA model.</p>
</caption>
<graphic xlink:href="fams-11-1664415-g003.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Line graph showing mean posterior probabilities across three latent classes for a three-class LCGA model. Class 1 decreases from one to zero, Class 2 increases from zero to one and then decreases, and Class 3 increases linearly from zero to one. Each class is represented by a different color: red for Class 1, green for Class 2, and blue for Class 3.</alt-text>
</graphic>
</fig>
</sec>
<sec id="sec23">
<label>3.5</label>
<title>Identification of average (single) growth trajectories of patients&#x2019; weight gain over time</title>
<p>Latent Growth Curve Model (LGCM) was used to model individual body weight gain patterns over time by estimating both the initial status and the rate of growth of a given variable, Unlike Latent Class Growth Analysis (LCGA), which categorizes individuals into latent classes based on their growth trajectories, LGCM focuses on estimating continuous trajectories of growth for each participant.</p>
<p><xref ref-type="table" rid="tab8">Table 8</xref> presents LGCM parameter estimates, highlighting distinct weight gain trajectories across the three classes. For fixed effects, Class 1 (Moderate Body Weight Gain) shows no significant linear effect (<italic>p</italic>&#x202F;=&#x202F;0.859) but a significant quadratic effect (<italic>p</italic>&#x202F;&#x003C;&#x202F;0.001), indicating a curved trajectory over the 12&#x202F;months on DTG-based regimens. Class 2 (Rapid Gain) has a significant negative linear intercept (p&#x202F;&#x003C;&#x202F;0.001) but a non-significant quadratic effect, reflecting a consistent trajectory from a lower starting point. Class 3 (Minimal/No Gain) shows no significant linear or quadratic effects, indicating a relatively flat trajectory.</p>
<table-wrap position="float" id="tab8">
<label>Table 8</label>
<caption>
<p>Fixed and random effects estimates for LGCM across weight gain trajectories.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="2">Model component</th>
<th align="center" valign="top" colspan="2">Class 1 (moderate weight gain)</th>
<th align="center" valign="top" colspan="2">Class 2 (rapid weight gain)</th>
<th align="center" valign="top" colspan="2">Class 3 (minimal/no weight gain)</th>
</tr>
<tr>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" colspan="7">Fixed effects intercept</td>
</tr>
<tr>
<td align="left" valign="top">
<inline-formula>
<mml:math id="M26">
<mml:mi>&#x03B2;</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi mathvariant="italic">Se</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula>
</td>
<td align="center" valign="top">52.3 (0.17)</td>
<td align="center" valign="top">52.19 (0.18)</td>
<td align="center" valign="top">54.8 (0.15)</td>
<td align="center" valign="top">54.82 (0.15)</td>
<td align="center" valign="top">69.28 (0.76)</td>
<td align="center" valign="top">69.37 (0.747)</td>
</tr>
<tr>
<td align="left" valign="top">Wald &#x03C7;<sup>2</sup></td>
<td align="center" valign="top">293.946</td>
<td align="center" valign="top">296.360</td>
<td align="center" valign="top">354.390</td>
<td align="center" valign="top">355.191</td>
<td align="center" valign="top">91.651</td>
<td align="center" valign="top">92.870</td>
</tr>
<tr>
<td align="left" valign="top"><italic>p</italic>-value</td>
<td align="center" valign="top">0.000</td>
<td align="center" valign="top">0.00000</td>
<td align="center" valign="top">0.00000</td>
<td align="center" valign="top">0.00000</td>
<td align="center" valign="top">0.00000</td>
<td align="center" valign="top">0.00000</td>
</tr>
<tr>
<td align="left" valign="top" colspan="7">Random effects</td>
</tr>
<tr>
<td align="left" valign="top">Variance (Intercept)</td>
<td align="center" valign="top">0.00931</td>
<td align="center" valign="top">0</td>
<td align="center" valign="top">0.00271</td>
<td align="center" valign="top">0</td>
<td align="center" valign="top">0.0016</td>
<td align="center" valign="top">0</td>
</tr>
<tr>
<td align="left" valign="top">Residual standard error</td>
<td align="center" valign="top">12.29&#x202F;&#x00B1;&#x202F;0.24</td>
<td align="center" valign="top">12.51&#x202F;&#x00B1;&#x202F;0.24</td>
<td align="center" valign="top">9.32&#x202F;&#x00B1;&#x202F;0.19</td>
<td align="center" valign="top">9.45&#x202F;&#x00B1;&#x202F;0.19</td>
<td align="center" valign="top">7.46&#x202F;&#x00B1;&#x202F;0.18</td>
<td align="center" valign="top">7.58&#x202F;&#x00B1;&#x202F;0.18</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>MoE computation&#x202F;=&#x202F;standard error Se&#x002A;1.96.</p>
</table-wrap-foot>
</table-wrap>
<p>Random-effects analysis reveals substantial variability in baseline weight, with intercept variances highest in Class 1 (0.00931) and lower in Classes 2 (0.00271). Residual standard errors are consistent between linear and quadratic models, highest in Class 1 (12.29&#x202F;&#x00B1;&#x202F;0.24 linear; 12.51&#x202F;&#x00B1;&#x202F;0.24 quadratic), moderate in Class 2 (9.32&#x202F;&#x00B1;&#x202F;0.19; 9.45&#x202F;&#x00B1;&#x202F;0.19), and lowest in Class 3 (7.46&#x202F;&#x00B1;&#x202F;0.18; 7.58&#x202F;&#x00B1;&#x202F;0.18), indicating that weight gain is least predictable in Class 1 and most predictable in Class 3. The slight increase in residual error with the quadratic model suggests minimal improvement in prediction. Overall, Class 1 exhibits curved growth and high individual variability, Class 2 shows moderate predictability with a consistent trajectory, and Class 3 remains stable and well-explained.</p>
</sec>
<sec id="sec24">
<label>3.6</label>
<title>Identification of multiple subgroups with distinct weight gain trajectories over time</title>
<p>To identify multiple subgroups of weight gain trajectories while considering individual variabilities within those groups, we fitted unconditional Growth Mixture Model (GMM), combining the aspects of growth curve and mixture modeling to account for individual differences in patterns of change. This allowed for the analysis of heterogeneous developmental patterns, model complex, and non-linear changes across the 12&#x202F;months. We compared its performance with LGCM in determining heterogeneous developmental patterns of body weight gain amongst patients placed on DGT. <xref ref-type="table" rid="tab9">Table 9</xref> presents the GMM fit statistics for three class model.</p>
<table-wrap position="float" id="tab9">
<label>Table 9</label>
<caption>
<p>Fixed and random effects estimates for latent class growth analysis (GMM) across weight gain trajectories.</p>
</caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th align="left" valign="top" rowspan="2">Model component</th>
<th align="center" valign="top" colspan="2">Class 2 (rapid weight gain)</th>
<th align="center" valign="top" colspan="2">Class 3 (minimal/no weight gain)</th>
</tr>
<tr>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
<th align="center" valign="top">Linear</th>
<th align="center" valign="top">Quadratic</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top" colspan="5">Fixed effects intercept</td>
</tr>
<tr>
<td align="left" valign="top">
<inline-formula>
<mml:math id="M27">
<mml:mi>&#x03B2;</mml:mi>
<mml:mo stretchy="true">(</mml:mo>
<mml:mi mathvariant="italic">Se</mml:mi>
<mml:mo stretchy="true">)</mml:mo>
</mml:math>
</inline-formula>
</td>
<td align="center" valign="top">52.65 (16.94)</td>
<td align="center" valign="top">52.65 (15.77)</td>
<td align="center" valign="top">53.84 (0.18)</td>
<td align="center" valign="top">53.84 (0.18)</td>
</tr>
<tr>
<td align="left" valign="top">Wald &#x03C7;<sup>2</sup></td>
<td align="center" valign="top">3.11</td>
<td align="center" valign="top">3.34</td>
<td align="center" valign="top">301.04</td>
<td align="center" valign="top">301.073</td>
</tr>
<tr>
<td align="left" valign="top"><italic>p</italic>-value</td>
<td align="center" valign="top">0.00188</td>
<td align="center" valign="top">0.00084</td>
<td align="center" valign="top">0.00000</td>
<td align="center" valign="top">0.00000</td>
</tr>
<tr>
<td align="left" valign="top" colspan="5">Random effects</td>
</tr>
<tr>
<td align="left" valign="top">Variance (Intercept)</td>
<td align="center" valign="top">143.77832</td>
<td align="center" valign="top">144.45021</td>
<td align="center" valign="top">59.93662</td>
<td/>
</tr>
<tr>
<td align="left" valign="top">Residual standard error</td>
<td align="center" valign="top">3.86&#x202F;&#x00B1;&#x202F;0.12</td>
<td align="center" valign="top">3.80&#x202F;&#x00B1;&#x202F;0.13</td>
<td align="center" valign="top">3.61&#x202F;&#x00B1;&#x202F;0.11</td>
<td align="center" valign="top">3.59&#x202F;&#x00B1;&#x202F;0.11</td>
</tr>
</tbody>
</table>
</table-wrap>
<p><xref ref-type="table" rid="tab9">Table 9</xref> presents the parameter estimates for both the 2-class and 3-class GMM models. Each model includes fixed effects (intercepts and slopes) that describe the average weight gain trajectory within each class, as well as random effects to account for individual-level variability.</p>
<p>The results indicate significant weight gain trajectories for both Class 2 and Class 3. For Class 2 (Rapid Weight Gain), the linear intercept coefficient is 52.65 (<italic>p</italic>&#x202F;=&#x202F;0.00188), and the quadratic coefficient is 52.65 (<italic>p</italic>&#x202F;=&#x202F;0.00084), suggesting both a significant baseline weight and a non-linear growth pattern over time. Similarly, Class 3 (Minimal/No Weight Gain) shows a significant linear intercept of 53.84 (<italic>p</italic>&#x202F;&#x003C;&#x202F;0.0001) and an identical quadratic coefficient, indicating a stable weight pattern with no substantial increase. These results suggest that individuals in Class 2 experience notable weight gain, whereas those in Class 3 exhibit minimal or no weight gain over time. The random effects demonstrate considerable variability in baseline weight across trajectories in comparison to classes1 and 2. The variance in intercepts is 143.78 for the linear model and 144.45 for the quadratic model in Class 2, suggesting substantial individual differences in initial weight. In contrast, Class 3 exhibits a lower variance in intercept (59.94), reflecting less variation in baseline weight. The residual standard errors are 3.86&#x202F;&#x00B1;&#x202F;0.12 and 3.80&#x202F;&#x00B1;&#x202F;0.13 for Class 2, and 3.61&#x202F;&#x00B1;&#x202F;0.11 and 3.59&#x202F;&#x00B1;&#x202F;0.11 for Class 3, indicating unexplained variability in weight gain patterns for the two models. These findings emphasize the importance of considering both linear and quadratic components when modeling weight trajectories, particularly in individuals on dolutegravir (DTG). The presence of significant variation in weight gain patterns highlights the need for individualized treatment strategies that account for different weight gain trajectories.</p>
</sec>
<sec id="sec25">
<label>3.7</label>
<title>Comparative evaluation of latent variable models for longitudinal data analysis</title>
<p><xref ref-type="fig" rid="fig4">Figure 4</xref> illustrates class-specific model performance for LCGA, LGCM, and GMM using Log-Likelihood, AIC, and BIC, presented on a dual y-axis to retain the metrics in their original scales. Log-Likelihood is shown with solid lines, while AIC (dashed) and BIC (dot-dash) are plotted on the primary axis.</p>
<p>LCGA demonstrated the best overall fit, with progressively improved performance across classes and achieving the lowest AIC (42,562.61), lowest BIC (42,624.29), and highest Log-Likelihood (&#x2212;21,271.31) at Class 3. In contrast, LGCM consistently underperformed, displaying higher AIC (44,674.91), higher BIC (44,736.59), and lower Log-Likelihood (&#x2212;22,327.45) across all class structures. GMM showed competitive but relatively stable performance, with minimal variation in AIC (42,898.65), BIC (42,972.66), and Log-Likelihood (&#x2212;21,437.32) across classes.</p>
<p>Overall, LCGA offered the most optimal balance between model fit and interpretability, followed by GMM, while LGCM was the least optimal. The dual-axis plot enables clear visualization of these trends, facilitating comparison across Log-Likelihood, AIC, and BIC. These results underscore LCGA&#x2014;and to a lesser extent GMM as the preferred approaches for capturing heterogeneity in longitudinal weight-gain trajectories while minimizing the risk of overfitting (<xref ref-type="fig" rid="fig5">Figure 5</xref>).</p>
<fig position="float" id="fig5">
<label>Figure 5</label>
<caption>
<p>Model performance comparison by class specific AIC values.</p>
</caption>
<graphic xlink:href="fams-11-1664415-g005.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Line graph titled "AIC Trajectories Across Classes" with three models: GMM (red), LCGA (green), and LGCM (blue). AIC values decrease across classes for LGCM, while GMM and LCGA remain relatively stable.</alt-text>
</graphic>
</fig>
<fig position="float" id="fig4">
<label>Figure 4</label>
<caption>
<p>Comparative evaluation of latent variable models.</p>
</caption>
<graphic xlink:href="fams-11-1664415-g004.tif" mimetype="image" mime-subtype="tiff">
<alt-text content-type="machine-generated">Line graph titled "AIC Trajectories Across Classes" with three models: GMM (red), LCGA (green), and LGCM (blue). AIC values decrease across classes for LGCM, while GMM and LCGA remain relatively stable.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec sec-type="discussion" id="sec26">
<label>4</label>
<title>Discussion</title>
<p>The key finding of this study is that LCGA provided the best statistical fit for identifying weight gain trajectories among PLHIV on DTG-based ART, suggesting that patients&#x2019; weight changes clustered into relatively homogeneous subgroups with distinct patterns. This has important clinical implications: DTG-related weight gain does not appear to follow a single continuous distribution but instead reflects sharply divergent courses, with some patients gaining minimally and others experiencing substantial increases. Identifying these classes early may enable more targeted interventions, such as nutritional counselling or closer metabolic monitoring for high-risk groups.</p>
<p>The performance of LCGA highlights the value of modeling distinct subgroups when clinical outcomes are heterogeneous. While LGCM allowed for individual variability, it assumed a single overarching trend, which obscured important subgroup differences. LPA was limited by its inability to incorporate longitudinal dynamics. Although GMM offers the theoretical advantage of capturing both between- and within-class variability, it did not outperform LCGA in this study and required substantially more complex estimation. This suggests that for ART-related weight trajectories, parsimony may be preferable, especially when the goal is to identify clinically interpretable patterns rather than maximize statistical flexibility. The high variances but nearly identical intercepts observed in the GMM are likely indicative of class overlap, which may result in over-extraction of latent classes.</p>
<p>Nevertheless, GMM remains valuable when within-class heterogeneity is of substantive interest, for example in metabolic or cardiovascular outcomes where differences among patients following a &#x201C;high-gain&#x201D; trajectory could alter intervention strategies (<xref ref-type="bibr" rid="ref14">14</xref>, <xref ref-type="bibr" rid="ref28">28</xref>). The choice between LCGA and GMM should therefore be guided by both theoretical expectations and the practical need for interpretability. In line with Nagin (<xref ref-type="bibr" rid="ref7">7</xref>) and Masyn (<xref ref-type="bibr" rid="ref15">15</xref>), these results underscore the importance of balancing model fit, complexity, and generalizability, while avoiding overfitting.</p>
<p>In practical terms, our findings suggest that LCGA offers a robust and interpretable tool for monitoring weight gain in HIV programs, allowing providers to flag patients who may be at risk of excessive weight gain while avoiding unnecessary complexity. GMM can serve as a complementary approach when researchers seek to understand variability within classes or when interventions must be tailored to subgroups with overlapping but distinct risk profiles. Together, these methods provide a methodological toolkit for refining HIV program monitoring and improving patient outcomes in the DTG era.</p>
<sec id="sec27">
<label>4.1</label>
<title>Balancing model fit and interpretability</title>
<p>These results underscore the need to balance model fit and interpretability. LPA may be sufficient for broad classification, but LCGA and GMM provide richer insights for more complex, time-dependent data. As Nagin (<xref ref-type="bibr" rid="ref7">7</xref>) noted, model selection should consider both statistical adequacy and theoretical clarity. Masyn (<xref ref-type="bibr" rid="ref15">15</xref>) warned of the potential for overfitting in highly flexible models like GMM, while Muth&#x00E9;n (<xref ref-type="bibr" rid="ref16">16</xref>) suggested validating latent classes using external samples to enhance generalizability. In conclusion, GMM emerged as the most informative model for capturing diverse body weight gain patterns among DTG-treated patients, followed by LCGA. However, researchers must carefully weigh the trade-offs between parsimony and explanatory depth when choosing an appropriate model for longitudinal analysis.</p>
</sec>
<sec id="sec28">
<label>4.2</label>
<title>Clinical implications and future directions</title>
<p>Our analyses identified distinct body weight gain trajectories among patients on DTG-based regimens, revealing clinically relevant subgroups. The majority of patients fell into the moderate weight gain trajectory (Class 1, ~93%), exhibiting predictable and steady body weight changes. In contrast, smaller subgroups demonstrated rapid body weight gain (Class 2, ~5&#x2013;6%) or minimal/no body weight gain (Class 3, ~1%), highlighting heterogeneity in DTG treatment response. Rapid gainers were more likely to be younger and ART-na&#x00EF;ve, suggesting a heightened metabolic response to DTG initiation, while minimal gainers were older or ART-experienced, possibly reflecting metabolic resistance or prior treatment effects. These patterns were consistent across multiple modeling approaches (LPA, LCGA, LGCM, GMM), emphasizing the robustness of the findings. Clinicians can use these insights to stratify patients by risk of atypical weight changes and tailor monitoring protocols accordingly, particularly during the first 6&#x2013;12&#x202F;months of therapy when deviations from expected trajectories are most pronounced.</p>
<p>From a management perspective, patients identified in the rapid gain trajectory may benefit from proactive interventions such as dietary counselling, physical activity guidance, or early pharmacologic strategies (e.g., metformin in high-risk cases) to mitigate cardiometabolic complications. Conversely, patients in the minimal/no gain group may require assessment for underlying nutritional or metabolic concerns, with consideration of therapy adjustments if clinically warranted. Incorporating routine weight monitoring, stratified by baseline characteristics such as age, sex, and prior ART experience, can facilitate early identification of patients at risk of atypical weight trajectories. Future research should explore the mechanistic drivers of these differential responses and evaluate targeted intervention strategies to optimize outcomes, supporting a more personalized approach to DTG-based treatment.</p>
</sec>
<sec id="sec29">
<label>4.3</label>
<title>Limitations and future research</title>
<p>This study has several limitations. First, it was based on a single cohort using routine program data, which may limit generalizability and introduces potential measurement error, particularly in weight assessments. Second, the analysis relied on secondary data, restricting control over variable availability and measurement precision, and the models did not account for time-varying covariates such as dietary changes, comorbidities, or treatment adherence, which may influence weight gain trajectories. Third, although model fit indices guided the selection of latent classes, some subjective judgment was required in determining the optimal number and interpretation of classes, introducing potential model selection bias. Quadratic random intercepts were not supported by our data, as the estimated variance converged to zero, indicating that individual differences in quadratic growth were negligible in this sample. Finally, while distinct weight gain patterns were identified, biological, genetic, or behavioural predictors that could explain subgroup membership were not integrated. Future research should validate these trajectory classes in independent cohorts, incorporate metabolic and genetic biomarkers, and explore behavioural and contextual factors influencing weight outcomes. Such work would enhance external validity and support more precise targeting of interventions in HIV care.</p>
</sec>
</sec>
<sec sec-type="conclusions" id="sec30">
<label>5</label>
<title>Conclusion</title>
<p>This study underscores the differential performance of Latent Profile Analysis (LPA), Latent Class Growth Analysis (LCGA), Latent Growth Curve Modeling (LGCM), and Growth Mixture Modeling (GMM) in analysing longitudinal data. Among these models, LCGA and GMM exhibited the most robust performance in capturing complex body weight gain trajectories, with LCGA performing slightly better in terms of model fit. The ability of LCGA and GMM to model both individual growth trajectories and latent subgroups within the population allows for a more nuanced understanding of weight gain patterns, which is particularly valuable in clinical settings where patient&#x2019;s heterogeneity is a key concern. LPA, while useful for simpler applications, may not be as effective in capturing the complex dynamics of weight gain over time, as it does not account for changes within individuals across the study period. LGCM also showed limitations due to its assumption of a single trajectory for all participants, which may not reflect the variability seen in heterogeneous populations.</p>
<p>Future research should further explore the application of LCGA and GMM in clinical contexts, especially with larger and more diverse populations, to confirm their robustness and generalizability. Comparative studies with other advanced modeling techniques, such as multilevel growth models or machine learning approaches, would also be beneficial to refine our understanding of how to best model complex longitudinal data in healthcare research. Ultimately, this study emphasizes the importance of selecting the right modeling approach based on the complexity of the data, balancing model fit with interpretability, to support evidence-based clinical decision-making.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="sec31">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec sec-type="ethics-statement" id="sec32">
<title>Ethics statement</title>
<p>The studies involving humans were approved by Ethical approval for the study was obtained from the National Health Sciences Research Committee (NHSRC) of Malawi&#x2019;s Ministry of Health, (protocol V2.09 # 18/09/2139), and registered with USA&#x2019;s Office of the Human Research Protections (OHRP) IRB # IRB00003509, FWA 99999576. Ethical review authorities in 40 of the participating health facilities independently reviewed and approved the data collection protocols from their facilities. No Individual written consent was required because this was a retrospective data collection process where there was no direct contact with patients. No identifiers (ART numbers, names, home addresses, or phone numbers) were extracted from any of the data sources used. Data was collected anonymously and solely from hospital records. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation in this study was provided by the participants&#x2019; legal guardians/next of kin.</p>
</sec>
<sec sec-type="author-contributions" id="sec33">
<title>Author contributions</title>
<p>HN: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Writing &#x2013; original draft, Writing &#x2013; review &#x0026; editing. AM: Supervision, Validation, Writing &#x2013; review &#x0026; editing. SK: Supervision, Writing &#x2013; review &#x0026; editing. MK: Supervision, Writing &#x2013; review &#x0026; editing.</p>
</sec>
<ack>
<title>Acknowledgments</title>
<p>The authors acknowledge the support of EGPAF for  the data collection from health facilities.</p>
</ack>
<sec sec-type="COI-statement" id="sec34">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="ai-statement" id="sec35">
<title>Generative AI statement</title>
<p>The author(s) declare that Gen AI was used in the creation of this manuscript. AI was used for Language editing and grammar polishing.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="sec36">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="ref1"><label>1.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Sereika</surname><given-names>SM</given-names></name> <name><surname>Zheng</surname><given-names>Y</given-names></name> <name><surname>Hu</surname><given-names>L</given-names></name> <name><surname>Burke</surname><given-names>LE</given-names></name></person-group>. <article-title>Modern methods for modeling change in obesity research in nursing</article-title>. <source>West J Nurs Res</source>. (<year>2017</year>) <volume>39</volume>:<fpage>1028</fpage>&#x2013;<lpage>44</lpage>. doi: <pub-id pub-id-type="doi">10.1177/0193945917697221</pub-id>, PMID: <pub-id pub-id-type="pmid">28436263</pub-id></mixed-citation></ref>
<ref id="ref2"><label>2.</label><mixed-citation publication-type="other"><person-group person-group-type="author"><name><surname>Collins</surname><given-names>LM</given-names></name> <name><surname>Lanza</surname><given-names>ST</given-names></name></person-group>. <article-title>Latent class and latent transition analysis: With applications in the social, behavioral, and health sciences</article-title>. <publisher-loc>Hoboken, NJ</publisher-loc>: <publisher-name>John Wiley &#x0026; Sons</publisher-name> (<year>2010</year>). doi: <pub-id pub-id-type="doi">10.1002/9780470567333</pub-id></mixed-citation></ref>
<ref id="ref3"><label>3.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Jung</surname><given-names>T</given-names></name> <name><surname>Wickrama</surname><given-names>KAS</given-names></name></person-group>. <article-title>An introduction to latent class growth analysis and growth mixture modeling</article-title>. <source>Soc Personal Psychol Compass</source>. (<year>2008</year>) <volume>2</volume>:<fpage>302</fpage>&#x2013;<lpage>17</lpage>. doi: <pub-id pub-id-type="doi">10.1111/j.1751-9004.2007.00054.x</pub-id></mixed-citation></ref>
<ref id="ref4"><label>4.</label><mixed-citation publication-type="other"><person-group person-group-type="author"><name><surname>Bollen</surname><given-names>KA</given-names></name> <name><surname>Curran</surname><given-names>PJ</given-names></name></person-group>. <article-title>Latent curve models: a structural equation perspective</article-title> In: <source>Latent curve models: A structural equation perspective</source>. <publisher-loc>Hoboken, NJ</publisher-loc>: <publisher-name>John Wiley &#x0026; Sons</publisher-name> (<year>2006</year>). doi: <pub-id pub-id-type="doi">10.1002/0471746096</pub-id></mixed-citation></ref>
<ref id="ref5"><label>5.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ram</surname><given-names>N</given-names></name> <name><surname>Grimm</surname><given-names>KJ</given-names></name></person-group>. <article-title>Growth mixture modeling: a method for identifying differences in longitudinal change among unobserved groups</article-title>. <source>Int J Behav Dev</source>. (<year>2009</year>) <volume>33</volume>:<fpage>565</fpage>&#x2013;<lpage>76</lpage>. doi: <pub-id pub-id-type="doi">10.1177/0165025409343765</pub-id>, PMID: <pub-id pub-id-type="pmid">23885133</pub-id></mixed-citation></ref>
<ref id="ref6"><label>6.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Muth&#x00E9;n</surname><given-names>B</given-names></name> <name><surname>Shedden</surname><given-names>K</given-names></name></person-group>. <article-title>Finite mixture modeling with mixture outcomes using the EM algorithm</article-title>. <source>Biometrics</source>. (<year>1999</year>) <volume>55</volume>:<fpage>463</fpage>&#x2013;<lpage>9</lpage>. doi: <pub-id pub-id-type="doi">10.1111/j.0006-341X.1999.00463.x</pub-id>, PMID: <pub-id pub-id-type="pmid">11318201</pub-id></mixed-citation></ref>
<ref id="ref7"><label>7.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Nagin</surname><given-names>D</given-names></name></person-group>. <article-title>Group-based modeling of development</article-title>. <source>Choice Rev Online</source>. (<year>2005</year>) <volume>43</volume>:<fpage>1258</fpage>. doi: <pub-id pub-id-type="doi">10.5860/choice.43-1258</pub-id></mixed-citation></ref>
<ref id="ref8"><label>8.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kwon</surname><given-names>JY</given-names></name> <name><surname>Sawatzky</surname><given-names>R</given-names></name> <name><surname>Baumbusch</surname><given-names>J</given-names></name> <name><surname>Lauck</surname><given-names>S</given-names></name> <name><surname>Ratner</surname><given-names>PA</given-names></name></person-group>. <article-title>Growth mixture models: a case example of the longitudinal analysis of patient-reported outcomes data captured by a clinical registry</article-title>. <source>BMC Med Res Methodol</source>. (<year>2021</year>) <volume>21</volume>:<fpage>79</fpage>. doi: <pub-id pub-id-type="doi">10.1186/s12874-021-01276-z</pub-id>, PMID: <pub-id pub-id-type="pmid">33882863</pub-id></mixed-citation></ref>
<ref id="ref9"><label>9.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Nylund</surname><given-names>KL</given-names></name> <name><surname>Asparouhov</surname><given-names>T</given-names></name> <name><surname>Muth&#x00E9;n</surname><given-names>BO</given-names></name></person-group>. <article-title>Erratum: deciding on the number of classes in latent class analysis and growth mixture modeling: a Monte Carlo simulation study (structural equation modeling (2007) 14: 4 (535))</article-title>. <source>Struct Equ Model</source>. (<year>2008</year>) <volume>15</volume>:<fpage>3320</fpage>. doi: <pub-id pub-id-type="doi">10.1080/10705510701793320</pub-id></mixed-citation></ref>
<ref id="ref10"><label>10.</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab id="coll1">R Core Team</collab></person-group>. (<year>2019</year>). R: A language and environment for statistical computing. In R foundation for statistical computing.</mixed-citation></ref>
<ref id="ref11"><label>11.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rosenberg</surname><given-names>J</given-names></name> <name><surname>Beymer</surname><given-names>P</given-names></name> <name><surname>Anderson</surname><given-names>D</given-names></name> <name><surname>van Lissa</surname><given-names>C j</given-names></name> <name><surname>Schmidt</surname><given-names>J</given-names></name></person-group>. <article-title>TidyLPA: an R package to easily carry out latent profile analysis (LPA) using open-source or commercial software</article-title>. <source>J Open Source Softw</source>. (<year>2018</year>) <volume>3</volume>:<fpage>978</fpage>. doi: <pub-id pub-id-type="doi">10.21105/joss.00978</pub-id></mixed-citation></ref>
<ref id="ref12"><label>12.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Proust-Lima</surname><given-names>C</given-names></name> <name><surname>Philipps</surname><given-names>V</given-names></name> <name><surname>Liquet</surname><given-names>B</given-names></name></person-group>. <article-title>Estimation of extended mixed models using latent classes and latent processes: the R package lcmm</article-title>. <source>J Stat Softw</source>. (<year>2017</year>) <volume>78</volume>:<fpage>i02</fpage>. doi: <pub-id pub-id-type="doi">10.18637/jss.v078.i02</pub-id></mixed-citation></ref>
<ref id="ref13"><label>13.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rosseel</surname><given-names>Y</given-names></name></person-group>. <article-title>Lavaan: an R package for structural equation modeling</article-title>. <source>J Stat Softw</source>. (<year>2012</year>) <volume>48</volume>:<fpage>i02</fpage>. doi: <pub-id pub-id-type="doi">10.18637/jss.v048.i02</pub-id></mixed-citation></ref>
<ref id="ref14"><label>14.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Koethe</surname><given-names>JR</given-names></name> <name><surname>Lagathu</surname><given-names>C</given-names></name> <name><surname>Lake</surname><given-names>JE</given-names></name> <name><surname>Domingo</surname><given-names>P</given-names></name> <name><surname>Calmy</surname><given-names>A</given-names></name> <name><surname>Falutz</surname><given-names>J</given-names></name> <etal/></person-group>. <article-title>HIV and antiretroviral therapy-related fat alterations</article-title>. <source>Nat Rev Dis Primers</source>. (<year>2020</year>) <volume>6</volume>:<fpage>48</fpage>. doi: <pub-id pub-id-type="doi">10.1038/s41572-020-0181-1</pub-id></mixed-citation></ref>
<ref id="ref15"><label>15.</label><mixed-citation publication-type="other"><person-group person-group-type="author"><name><surname>Masyn</surname><given-names>KE</given-names></name></person-group>. <article-title>Latent class analysis and finite mixture modeling</article-title> In: <source>TD Little, editor. The Oxford Handbook of Quantitative Methods in Psychology: Statistical Analysis</source>, <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Oxford University Press</publisher-name>. vol. <volume>2</volume> (<year>2013</year>) <fpage>551</fpage>&#x2013;<lpage>611</lpage>. doi: <pub-id pub-id-type="doi">10.1093/oxfordhb/9780199934898.013.0025</pub-id></mixed-citation></ref>
<ref id="ref16"><label>16.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Muth&#x00E9;n</surname><given-names>B</given-names></name></person-group>. <article-title>Statistical and substantive checking in growth mixture modeling: comment on Bauer and Curran (2003)</article-title>. <source>Psychol Methods</source>. (<year>2003</year>) <volume>8</volume>:<fpage>369</fpage>&#x2013;<lpage>77</lpage>. doi: <pub-id pub-id-type="doi">10.1037/1082-989X.8.3.369</pub-id>, PMID: <pub-id pub-id-type="pmid">14596497</pub-id></mixed-citation></ref>
<ref id="ref17"><label>17.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bauer</surname><given-names>DJ</given-names></name> <name><surname>Curran</surname><given-names>PJ</given-names></name></person-group>. <article-title>The integration of continuous and discrete latent variable models: potential problems and promising opportunities</article-title>. <source>Psychol Methods</source>. (<year>2004</year>) <volume>9</volume>:<fpage>3</fpage>&#x2013;<lpage>29</lpage>. doi: <pub-id pub-id-type="doi">10.1037/1082-989X.9.1.3</pub-id>, PMID: <pub-id pub-id-type="pmid">15053717</pub-id></mixed-citation></ref>
<ref id="ref18"><label>18.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Berlin</surname><given-names>KS</given-names></name> <name><surname>Parra</surname><given-names>GR</given-names></name> <name><surname>Williams</surname><given-names>NA</given-names></name></person-group>. <article-title>An introduction to latent variable mixture modeling (part 2): longitudinal latent class growth analysis and growth mixture models</article-title>. <source>J Pediatr Psychol</source>. (<year>2014</year>) <volume>39</volume>:<fpage>188</fpage>&#x2013;<lpage>203</lpage>. doi: <pub-id pub-id-type="doi">10.1093/jpepsy/jst085</pub-id>, PMID: <pub-id pub-id-type="pmid">24277770</pub-id></mixed-citation></ref>
<ref id="ref19"><label>19.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Connell</surname><given-names>AM</given-names></name> <name><surname>Frye</surname><given-names>AA</given-names></name></person-group>. <article-title>Growth mixture modelling in developmental psychology: overview and demonstration of heterogeneity in developmental trajectories of adolescent antisocial behaviour</article-title>. <source>Infant Child Dev</source>. (<year>2006</year>) <volume>15</volume>:<fpage>609</fpage>&#x2013;<lpage>21</lpage>. doi: <pub-id pub-id-type="doi">10.1002/icd.481</pub-id></mixed-citation></ref>
<ref id="ref20"><label>20.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Marcoulides</surname><given-names>KM</given-names></name> <name><surname>Trichera</surname><given-names>L</given-names></name></person-group>. <article-title>Detecting unobserved heterogeneity in latent growth curve models</article-title>. <source>Struct Equ Model</source>. (<year>2019</year>) <volume>26</volume>:<fpage>4591</fpage>. doi: <pub-id pub-id-type="doi">10.1080/10705511.2018.1534591</pub-id></mixed-citation></ref>
<ref id="ref21"><label>21.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Mathur</surname><given-names>S</given-names></name> <name><surname>Pilgrim</surname><given-names>N</given-names></name> <name><surname>Patel</surname><given-names>SK</given-names></name> <name><surname>Okal</surname><given-names>J</given-names></name> <name><surname>Mwapasa</surname><given-names>V</given-names></name> <name><surname>Chipeta</surname><given-names>E</given-names></name> <etal/></person-group>. <article-title>HIV vulnerability among adolescent girls and young women: a multi-country latent class analysis approach</article-title>. <source>Int J Public Health</source>. (<year>2020</year>) <volume>65</volume>:<fpage>399</fpage>&#x2013;<lpage>411</lpage>. doi: <pub-id pub-id-type="doi">10.1007/s00038-020-01350-1</pub-id>, PMID: <pub-id pub-id-type="pmid">32270233</pub-id></mixed-citation></ref>
<ref id="ref22"><label>22.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Millstein</surname><given-names>RA</given-names></name> <name><surname>Golden</surname><given-names>J</given-names></name> <name><surname>Healy</surname><given-names>BC</given-names></name> <name><surname>Amonoo</surname><given-names>HL</given-names></name> <name><surname>Harnedy</surname><given-names>LE</given-names></name> <name><surname>Carrillo</surname><given-names>A</given-names></name> <etal/></person-group>. <article-title>Latent growth curve modeling of physical activity trajectories in a positive-psychology and motivational interviewing intervention for people with type 2 diabetes</article-title>. <source>Health Psychol Behav Med</source>. (<year>2022</year>) <volume>10</volume>:<fpage>713</fpage>&#x2013;<lpage>30</lpage>. doi: <pub-id pub-id-type="doi">10.1080/21642850.2022.2104724</pub-id>, PMID: <pub-id pub-id-type="pmid">35957957</pub-id></mixed-citation></ref>
<ref id="ref23"><label>23.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Muth&#x00E9;n</surname><given-names>BO</given-names></name> <name><surname>Muth&#x00E9;n</surname><given-names>LK</given-names></name></person-group>. <article-title>Integrating person-centered and variable-centered analyses: growth mixture modeling with latent trajectory classes</article-title>. <source>Alcohol Clin Exp Res</source>. (<year>2000</year>) <volume>24</volume>:<fpage>882</fpage>&#x2013;<lpage>91</lpage>. doi: <pub-id pub-id-type="doi">10.1111/j.1530-0277.2000.tb02070.x</pub-id>, PMID: <pub-id pub-id-type="pmid">10888079</pub-id></mixed-citation></ref>
<ref id="ref24"><label>24.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Nieh</surname><given-names>HP</given-names></name> <name><surname>Chang</surname><given-names>CJ</given-names></name> <name><surname>Chou</surname><given-names>LT</given-names></name></person-group>. <article-title>Differential trajectories of fathers&#x2019; postpartum depressed mood: a latent class growth analysis approach</article-title>. <source>Int J Environ Res Public Health</source>. (<year>2022</year>) <volume>19</volume>:<fpage>1891</fpage>. doi: <pub-id pub-id-type="doi">10.3390/ijerph19031891</pub-id>, PMID: <pub-id pub-id-type="pmid">35162913</pub-id></mixed-citation></ref>
<ref id="ref25"><label>25.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Vasilenko</surname><given-names>SA</given-names></name> <name><surname>Kugler</surname><given-names>KC</given-names></name> <name><surname>Lanza</surname><given-names>ST</given-names></name></person-group>. <article-title>Latent classes of adolescent sexual and romantic relationship experiences: implications for adult sexual health and relationship outcomes</article-title>. <source>J Sex Res</source>. (<year>2015</year>) <volume>53</volume>:<fpage>742</fpage>&#x2013;<lpage>53</lpage>. doi: <pub-id pub-id-type="doi">10.1080/00224499.2015.1065952</pub-id>, PMID: <pub-id pub-id-type="pmid">26445133</pub-id></mixed-citation></ref>
<ref id="ref26"><label>26.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Carrig</surname><given-names>MM</given-names></name> <name><surname>Bauer</surname><given-names>DJ</given-names></name></person-group> <year>(n.d.).</year> <source>A Comparison of Cluster Analysis and Growth Mixture Modeling in the Recovery of Developmental Trajectory Classes</source>. <publisher-loc>Chapel Hil</publisher-loc>: <publisher-name>University of North Carolina</publisher-name></mixed-citation></ref>
<ref id="ref27"><label>27.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Enders</surname><given-names>CK</given-names></name> <name><surname>Tofighi</surname><given-names>D</given-names></name></person-group>. <article-title>The impact of misspecifying class-specific residual variances in growth mixture models</article-title>. <source>Struct Equ Modeling.</source> (<year>2008</year>). <fpage>15</fpage>. doi: <pub-id pub-id-type="doi">10.1080/10705510701758281</pub-id></mixed-citation></ref>
<ref id="ref28"><label>28.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rosenberg</surname><given-names>J</given-names></name> <name><surname>Beymer</surname><given-names>P</given-names></name> <name><surname>Anderson</surname><given-names>D</given-names></name> <name><surname>van Lissa</surname><given-names>C j</given-names></name> <name><surname>Schmidt</surname><given-names>J</given-names></name></person-group>. <article-title>TidyLPA: an R package to easily carry out latent profile analysis (LPA) using open-source or commercial software</article-title>. <source>J Open Source Softw</source>. (<year>2018</year>) <volume>3</volume>:<fpage>978</fpage>. doi: <pub-id pub-id-type="doi">10.21105/joss.00978</pub-id></mixed-citation></ref>
</ref-list>
<fn-group>
<fn fn-type="custom" custom-type="edited-by" id="fn0001">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/993671/overview">Mohammad G. M. Khan</ext-link>, University of the South Pacific, Fiji</p>
</fn>
<fn fn-type="custom" custom-type="reviewed-by" id="fn0002">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1835540/overview">Youssri Hassan Youssri</ext-link>, Egypt Uinversity of Informatics, Egypt</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3172020/overview">Muhammad Zohaib</ext-link>, Federal Directorate of Education Islamabad, Pakistan</p>
</fn>
</fn-group>
</back>
</article>