WorksMathematics
Population-average trajectories and slopes in smooth random changepoint mixed models
Abstract
Two-slope mixed-effects models with subject-specific changepoints are widely used to describe biphasic longitudinal trajectories. Treatment-arm summaries are often reported using a single "typical subject" curve obtained by plugging mean parameter values into the subject-specific model. This can be misleading when changepoint timing varies across individuals, because averaging subject-specific curves is not the same as evaluating one curve at average parameter values. A related issue is that individual trajectories may bend gradually rather than change slope through a literal kink, with transition sharpness varying between subjects. We propose population-average estimands for two-slope mixed models with random changepoints and smooth subject-level transitions. These estimands target the treatment-arm mean trajectory and instantaneous slope by averaging over fitted heterogeneity in changepoint timing and transition sharpness. We use a baseline-anchored normal-convolution soft hinge, which preserves the broken stick interpretation, includes the abrupt changepoint model as a limiting case, and allows analytic evaluation of the changepoint-marginalized kernels under a truncated normal changepoint distribution for fixed transition sharpness. Averaging over the fitted transition sharpness distribution is then performed by deterministic one-dimensional quadrature. In an application to HIV-1 RNA data from ACTG Protocol 315, with censoring and heavy-tailed residuals, the marginal summaries reveal a more gradual population-level transition than conventional plug-in summaries. The marginal slope remains more negative for longer, and the marginal mean continues to decline after the plug-in curve has begun to flatten. These results illustrate the main reporting implication: in random changepoint models, representative subject curves should not be treated as population-average trajectories or slopes.
Introduction
Two-slope mixed-effects models are commonly used for longitudinal biomarkers that show an early phase followed by a later phase with a different rate of change. Such biphasic patterns arise in settings including HIV-1 RNA under antiretroviral therapy [29], eGFR under SGLT2 inhibition [35], tuberculosis bacterial burden [10, 5], and prostate-specific antigen after radiotherapy for localized prostate cancer [2]. In these models, each subject is typically described by an early slope, a later slope, and a changepoint around which the trajectory moves from one phase to the other [24, 11, 12]. In biopharmaceutical studies, such two-phase longitudinal patterns often arise when early treatment response and later stabilization or decay are both of scientific interest, and treatment-arm summaries are commonly used to communicate biomarker trajectories over finite follow-up.
When the changepoint is fixed in advance, or estimated as a common changepoint for all subjects, and the transition shape is fixed, summarizing the treatment-arm trajectory is relatively straightforward. In that setting, averaging over zero-mean subject-specific intercepts and slopes gives the same mean trajectory obtained by setting those random effects to zero and using the corresponding population-level intercept and slopes. The difficulty arises when the transition itself varies between subjects. In a random changepoint model, subjects may move from the early phase to the late phase at different times, so a representative subject curve that fixes the changepoint at a typical value is not generally equal to the average of the subject-specific curves. The same issue arises for instantaneous slope summaries: even if each subject changes slope abruptly, variation in changepoint timing can produce a smooth population-average slope. That population-level smoothness is different from subject-level smoothness, where an individual trajectory may itself bend gradually rather than change slope through a literal kink. The width of that subject-level bend may also differ between subjects. Thus, transition timing and transition shape are two sources of heterogeneity that can affect how treatment-arm trajectories and slopes should be summarized.
In this paper, we define population-average summaries for two-slope mixed models with random changepoints and smooth subject-level transitions. The focus is not only on fitting subject-specific smooth transitions, but on deriving treatment-arm mean and slope summaries after averaging over heterogeneity in both changepoint timing and transition sharpness. The summaries of interest are the marginal mean trajectory and the marginal instantaneous slope, which describe the expected underlying trajectory and expected instantaneous rate of change for a randomly selected subject from the treatment arm, rather than the trajectory of a single representative subject. The subject-level transition is modeled using a baseline-anchored normal-convolution soft hinge, which preserves the broken stick interpretation, allows subject-specific transition sharpness, and recovers the abrupt changepoint model as a limiting case. A useful feature of this parameterization is that, conditional on the transition sharpness parameter, the changepoint-marginalized kernels can be evaluated analytically using normal and bivariate normal distribution functions. Thus, when transition sharpness is also random, evaluation of the marginal summaries reduces to a one-dimensional numerical average over transition sharpness rather than a two-dimensional numerical integration over both transition timing and transition sharpness. To the best of our knowledge, this baseline-anchored normal-convolution random changepoint formulation, together with the associated population-average mean and slope summaries, has not previously been developed for models with both random changepoint timing and random transition sharpness. The formulation is chosen specifically to preserve the broken stick interpretation while making the required marginalization tractable.
This work is related to several strands of the literature on changepoint modeling. The Bacon-Watts formulation provides an early smooth transition between two linear phases [6]. Smooth random changepoint models have also been proposed for longitudinal trajectories [34], while sigmoidal mixed models provide another flexible way to describe gradual transitions over time [9, 8]. Random changepoint mixed models have been developed for abrupt segmented trajectories, including both maximum likelihood and Bayesian formulations [25, 3]. More recently, segmented regression with smooth transition has been considered in a random changepoint framework [31]. These contributions mainly address how changepoints and smooth transitions can be represented and estimated at the subject level. Our focus is different: we define treatment-arm marginal mean and slope summaries for a model with both random changepoint timing and random transition sharpness, and use the normal-convolution parameterization to make the required averaging tractable, leaving only a one-dimensional numerical average over transition sharpness.
We use longitudinal HIV-1 RNA data from ACTG 315 as an illustrative clinical-trial biomarker application with left censoring, heavy-tailed residual variation, and clear two-phase longitudinal behavior. The application illustrates that the proposed summaries can reveal a more gradual population-level transition than conventional plug-in curves, while the smooth changepoint formulation improves observation-level predictive performance relative to the abrupt changepoint model.
The remainder of the paper is structured as follows. § 2 describes the motivating longitudinal HIV-1 RNA data. § 3 introduces the smooth random changepoint model. § 4 defines the marginal estimands and derives tractable evaluation formulas. Section 5 presents a numerical experiment comparing plug-in and marginal summaries using values calibrated to the motivating application. § 6 applies the method to the motivating antiretroviral therapy trial data. § 7 concludes with interpretation and extensions.
Illustrative application: HIV-1 RNA
We use longitudinal HIV-1 RNA measurements from AIDS Clinical Trials Group (ACTG) Protocol 315 as an illustrative application [22, 26]. ACTG 315 was an early combination antiretroviral therapy study with a single multidrug regimen. The dataset comprises 46 participants and 361 plasma HIV-1 RNA measurements (copies/mL). Participants contributed a median of 8 measurements each, including baseline (range: 4 to 10), over a maximum follow-up of approximately 6.5 months. Viral load is analyzed on the scale. Measurements reported as below the lower limit of quantification (LLOQ) are treated as left-censored at 100 copies/mL, that is, at ; overall, 11.1% of observations are censored.
The profiles in Figure 1 show the familiar biphasic pattern of a rapid early decline after treatment initiation, followed by a much slower long-term phase. They also visually suggest between-subject heterogeneity in transition timing and possibly in the apparent width of the transition. To summarize timing heterogeneity descriptively, we fitted simple broken stick regressions separately for each participant over a grid of candidate changepoints and retained the value that minimized the residual sum of squares. For these broken stick fits, uncensored observations were used when at least 5 were available for a participant; otherwise, all available measurements were used, with values below the LLOQ set to the quantification limit. This yielded usable descriptive fits for 45 participants. The resulting changepoint estimates had a median of 0.60 months, an interquartile range (IQR) of 0.40 to 0.65 months, and a range of 0.25 to 2.45 months. The corresponding median early slope was −3.99 HIV-1 RNA (copies/mL) per month (IQR −4.72 to −3.10), whereas the median late slope was −0.01 (IQR −0.39 to 0.21).
Figure 1. Longitudinal viral load trajectories for 46 ACTG 315 participants. The censoring limit is 100 copies/mL (). Month 0 corresponds to the baseline measurement.
Several late follow-up measurements deviate noticeably from the dominant trajectory, motivating a heavy-tailed residual specification. We therefore combine the smooth two-slope mean structure with a skew- residual density, consistent with previous work on heterogeneous and censored HIV viral load data, for example, Lachos et al. (2011). The residual model provides a robust likelihood for estimating the mean and heterogeneity parameters; the marginal quantities of interest are determined by the subject-specific mean structure and the fitted distributions of changepoints and transition sharpness.
Earlier analyses of ACTG 315 include biphasic nonlinear mixed-effects models with exponential decay components (Wu, 2002; Lachos et al., 2011), as well as piecewise-linear mixed-effects models with one or more hard changepoints [23, 19]. Thus, ACTG 315 provides a familiar setting in which a two-phase structure is plausible, and the difference between plug-in and marginal summaries can be examined transparently.
Smooth random changepoint model
Mean structure and smooth transition
We model subject-specific trajectories, allowing treatment-arm-specific parameters, as curves whose instantaneous slope moves from an early limiting value to a later limiting value. Let index treatment groups, and let index subjects assigned to treatment . For each subject, let index repeated measurements at times . Time is measured from baseline, so denotes the baseline visit, and the changepoint times are measured on the same time scale relative to baseline.
To connect the early and late phases, we specify a smooth transition on the slope scale. For subject in arm , we let
where denotes the standard normal cumulative distribution function (CDF), is the early limiting slope, is the late limiting slope, is the center of the transition, and controls how quickly the transition occurs. The probit term acts as a smooth transition gate. When is well before , this gate is close to 0, and the instantaneous slope is close to . When is well after , the gate is close to 1, and the instantaneous slope is close to . The probit gate therefore gives a subject-specific transition that is continuous on the slope scale, rather than a hard change in slope at . At , the gate equals , so
Thus, is the time at which the subject has moved halfway, on the slope scale, from the early slope to the late slope.
The parameter has an inverse-width interpretation. If denotes the time at which the transition gate equals , then
Therefore, the time required for the slope gate to move from 10% to 90% of its transition is
Thus, larger values of produce sharper transitions, whereas smaller values spread the transition over a longer interval. Allowing to vary permits the duration of the subject-level bend to differ between individuals.
The corresponding mean trajectory is obtained by integrating (1) from baseline. For compactness, define
so that
Equivalently, can be written as with . This representation gives a normal-convolution smoothing of the hard hinge , related to the normal positive-part expectation in the Bachelier formulation [1]; see also Cramér (1946) for standard normal integral identities. As , this representation approaches the abrupt hard hinge.
Setting and integrating from to gives
The subtraction of anchors the trajectory at baseline, so that . The mean trajectory at the observed measurement times is then
for .
The subject-level interpretation of the slope, baseline-anchored mean trajectory, changepoint timing, and transition width is summarized in Figure 2.
Figure 2. Subject-level interpretation of the smooth changepoint model. Panel (a) shows the instantaneous slope for one subject. The probit gate moves the slope from the early limiting value to the late limiting value , with marking the midpoint of the transition and the indicated interval marking the approximate 10% to 90% transition width. Panel (b) shows the corresponding subject-specific mean trajectory obtained by integrating the slope from baseline, with the same transition interval shown for reference. Panel (c) illustrates heterogeneity in changepoint timing by varying while holding fixed. Panel (d) illustrates heterogeneity in transition width by varying while holding fixed. The population-average summaries are obtained by averaging over these subject-level components.
This baseline-anchored form is the convention used throughout the marginal summaries below: mean kernels are defined for the centered contribution .
The abrupt two-slope model is recovered in the limit as , which replaces the smooth hinge by the hard hinge. A model with common transition sharpness is obtained by setting for all subjects in arm .
Between-subject heterogeneity
Between-subject heterogeneity is modeled through random effects on the baseline intercept and the two slope parameters, together with arm-specific distributions for changepoint timing and transition
sharpness. Specifically,
where , , and are the arm-level means of the corresponding subject-specific parameters, and is an unstructured covariance matrix for treatment arm . We also assume
where denotes a normal distribution with pre-truncation location and variance , truncated to , and is a prespecified upper bound for changepoint timing on the analysis time scale. The distribution of describes variation in transition timing, while the distribution of describes variation in subject-level transition sharpness.
The estimands below do not require independence, but the deterministic formulas and the ACTG implementation use a working independence structure in which is independent of and is independent of , conditionally on the corresponding arm-level parameters. Correlation among is still captured through . This independence structure simplifies the closed-form evaluation of the marginal mean and slope, but it is not part of the definition of the population-average estimands. If dependence is expected, for example if subjects with steeper early declines tend to bend earlier or more sharply, the same estimands can be evaluated by Monte Carlo averaging under the fitted joint distribution of .
Residual model and likelihood
For notational simplicity, we first describe the uncensored formulation. Conditional on the subject-specific mean trajectory, the outcome follows an additive error model:
where collects dispersion, skewness, and tail thickness parameters for treatment arm . Examples include Gaussian, Student-, and skew- residual families, parameterized so that . Heavy-tailed residual specifications are a natural extension of nonlinear mixed-effects models with non-Gaussian residual variation; see, for example, the general discussion in [11, 12]. The residual model affects inference for the mean structure and heterogeneity parameters but does not change the definitions of the arm-level marginal mean and slope, which are determined by the subject-specific mean trajectory and the assumed hierarchical model for its subject-level parameters. In the Bayesian implementation for ACTG 315, we take to be the Hansen skew- density [16].
We assume that, conditional on the subject-specific parameters and the arm-level residual parameters , the repeated measurements for are independent.
Under the uncensored formulation, the subject-level likelihood is
where is the density of the residual error in (4). Accordingly, the conditional data likelihood factors over subjects and treatment arms:
Population-average mean trajectory and slope
This section defines the treatment-arm summaries used in the rest of the paper. The target is the model-implied population-average trajectory for a randomly selected subject from treatment arm , together with the corresponding population-average instantaneous slope. These quantities are not empirical averages of the fitted curves for the observed participants, nor are they the curve for a hypothetical subject with all subject-specific parameters fixed at typical values.
Here and below, indexes the treatment arm and denotes a generic subject drawn from that arm. Let
collect the subject-level parameters that determine the underlying trajectory for a randomly selected subject from arm . Let collect the corresponding arm-level parameters that define the distribution of . We write
for expectation over the arm-specific distribution of the subject-level parameters. This expectation is over between-subject heterogeneity in baseline level, slopes, changepoint timing, and transition sharpness, not over residual error. In the Bayesian implementation, this conditional expectation is evaluated for each retained posterior draw of , and posterior uncertainty is then summarized across draws.
The population-average mean trajectory is
The corresponding population-average instantaneous slope is obtained by averaging the subject-specific instantaneous slopes:
Because the smooth transition gate lies between 0 and 1, the subject-specific slope is bounded in magnitude by . Under the finite first-moment assumptions of the mixed model, the dominated convergence theorem justifies interchanging differentiation and expectation ([4, 14]), so is also the derivative of with respect to . In the censored ACTG application, is the marginal mean of the underlying latent viral load process, not the mean of the recorded values after applying the LLOQ. The residual distribution affects parameter estimation, but because it is centered at zero, it does not alter the definitions in (6) and (7).
Substituting the subject-specific trajectory from (2) gives the fully marginal form
and
Equations (8) and (9) are the estimands. They remain valid if the level, slope, changepoint, and transition sharpness parameters are dependent. In that more general case, the expectations can be evaluated directly by Monte Carlo averaging under the fitted joint distribution. The deterministic simplifications below use the independence structure specified in § 3: is independent of , and is independent of .
For the kernel calculations, let and denote generic random variables with the same fitted distributions as and , respectively, for a randomly selected subject in arm . Thus, and .
Equation (3) gives , , and . Together with the independence assumptions above, this permits the remaining expectation to be evaluated by first averaging over changepoint timing and then averaging over transition sharpness. For a fixed value , define the baseline-centered changepoint-marginalized hinge kernel
and the corresponding changepoint-marginalized slope kernel
Averaging these kernels over the arm-specific distribution of gives the corresponding fully marginalized kernels
and
Under these assumptions, the population-average trajectory and slope reduce to
and
Because by construction, and hence . Also, since is the derivative of with respect to ,
and, since the transition gate is bounded, Fubini’s theorem permits the expectation and the baseline-to-time integral to be interchanged ([14]). The marginal mean can therefore equivalently be written as
For comparison, the plug-in trajectory fixes the changepoint and transition sharpness at the means of their fitted arm-level truncated-normal distributions. Let
where these expectations are taken under the corresponding truncated normal distributions, not under the untruncated normal laws. The plug-in trajectory is
with plug-in slope
These plug-in summaries describe a hypothetical representative subject. They generally differ from (11) and (12) because evaluating the nonlinear transition function at and is not equivalent to averaging it over the distributions of and .
Evaluation of the changepoint-marginalized kernels
We first evaluate the inner expectation over the changepoint distribution while treating as fixed. Suppose
In the ACTG application, we set and , so changepoints are constrained to lie within the prespecified interval for changepoint timing.
Define
For compactness, also define
Then the changepoint-marginalized slope kernel has the closed form
where denotes the bivariate standard normal CDF with correlation . The corresponding closed-form calculation for the baseline-centered mean kernel is given in Appendix § 14.
The untruncated normal case gives the clearest interpretation. If , define the effective transition width
Then the baseline-centered mean kernel is
and the slope kernel is
Thus, in the untruncated case, variation in changepoint timing and subject-level smoothness combine through . The term broadens the population transition because subjects bend at different times, while broadens it because each individual bend is gradual.
Averaging over transition sharpness
The remaining step is to average over
This leaves a one-dimensional numerical integration because the inner expectation over has already been evaluated analytically. Let denote the CDF of the distribution of in (21). The baseline-centered definition of is important for this step. As ,
The common divergent term is removed by the baseline-centering subtraction in (10). Thus, can be evaluated by averaging over the fitted distribution of . Equivalently, it can be obtained by integrating the bounded function from baseline, as in (13).
For a deterministic midpoint quadrature with equal-probability points, set
Then
and
In the analyses below, we use this deterministic quadrature for every posterior draw. It avoids Monte Carlo noise in the reported marginal trajectories and slopes, while still averaging over the fitted transition sharpness distribution.
Figure 3 illustrates how transition timing and transition sharpness enter the marginal summaries. In all panels, we fix , , , , , and truncate the changepoint distribution to . The upper plot in each grouped panel is the marginal mean trajectory, and the lower plot is the marginal instantaneous slope. In Figure 3a, the transition sharpness distribution is held fixed while the changepoint dispersion varies. In Figure 3b, the changepoint distribution is tightly concentrated while the transition sharpness distribution varies. The figure shows that the fitted distributions of and can materially alter the population-average transition relative to a plug-in curve; because is an inverse-width parameter, the right-hand panels should be interpreted in terms of sharpness rather than transition width.
(a) (a) Varying . Top: mean trajectory. Bottom: instantaneous slope. Fixed with .
(b) (b) Varying . Top: mean trajectory. Bottom: instantaneous slope. Fixed with .
Figure 3. Figure 3: Illustrative marginal mean trajectories and instantaneous slopes under the smooth changepoint model. In both grouped panels, , , , , and . The upper plot in each grouped panel shows , and the lower plot shows .
Abrupt changepoint model as a limiting case
The abrupt two-slope model is obtained by taking , so that converges to the hard hinge . The corresponding baseline-centered hard-hinge kernel is
In the nonnegative changepoint setting used in the ACTG analysis, , and this reduces to . With
the baseline-centered hard-hinge kernel under the truncated normal law in (16), with , is
Its derivative is the abrupt marginal slope gate
The abrupt marginal mean and slope are therefore
and
If the changepoint distribution is untruncated normal, the corresponding baseline-centered hard-hinge kernel is
The corresponding slope gate is
Thus, even when every subject has a hard changepoint, random changepoint timing can produce a smooth population-average slope.
Numerical experiment: plug-in vs marginal summaries
We also quantify how much a plug-in representative subject summary can differ from the treatment-arm marginal summary. The purpose is to isolate the effect of heterogeneity in changepoint timing and transition sharpness after the arm-level mean parameters have been fixed.
We consider a single treatment arm and set the arm-level intercept and slope parameters to the posterior medians from the ACTG 315 smooth changepoint analysis described in § 6: , , and . We also fix the pre-truncation locations of the changepoint and transition sharpness distributions to their posterior medians, and , respectively. These posterior summaries are reported in Supplementary Table 1. The pre-truncation locations are not generally equal to the corresponding truncated-normal means and .
We then vary only the pre-truncation scale parameters, taking
The pair and corresponds to the posterior medians of the pre-truncation scale parameters from the ACTG 315 smooth model. Thus, the experiment varies the dispersion of the fitted truncated-normal laws while holding their pre-truncation locations fixed; the implied truncated-normal means may change across scenarios. Throughout the experiment,
For each combination, we evaluate the marginal mean trajectory from (11) on a dense grid over . The inner expectation over is computed using the closed-form truncated-normal mean kernel, and the remaining expectation over is computed using the deterministic midpoint quadrature in (22) with equal-probability points. We compare this marginal mean to the plug-in mean in (14), with and recomputed as the corresponding truncated-normal means for each scenario.
We summarize the discrepancy on the viral load scale using
and
These are discrete - and -type summaries of the difference between the two trajectories on the evaluation grid, similar to error criteria used by Ji and Müller (2017) for trajectory recovery and by Tan et al. [32] for time-varying effect estimation.
Figure 4 shows that the discrepancy is negligible when both pre-truncation scale parameters are small, but increases as the changepoint scale parameter increases. The discrepancy also increases substantially as the transition sharpness scale parameter is increased from small values to the ACTG-like value, although it is slightly smaller for the largest value considered. For the ACTG-like setting based on the posterior median pre-truncation scale parameters, , the observed discrepancies are and on the scale. A maximum difference of 0.412 on this scale corresponds to roughly a 2.6-fold difference in viral load. Thus, the distinction between plug-in and marginal summaries is not just notational: when bend timing and transition sharpness vary across subjects, the plug-in trajectory can materially distort the apparent timing and pace of the population transition.
Figure 4. Discrepancy between marginal and plug-in mean trajectories under the smooth changepoint model, as a function of the pre-truncation changepoint scale parameter . The left panel shows and the right panel shows , computed over a dense grid of times . Curves correspond to different values of the pre-truncation transition sharpness scale parameter .
ACTG 315 model-based analysis
We now return to the ACTG 315 viral load data described in § 2. The outcome is HIV-1 RNA (copies/mL), time is measured in months from baseline, and observations below 100 copies/mL are treated as left-censored at . Because ACTG 315 used a single multidrug antiretroviral regimen, it had a single treatment arm. We retain the arm index only to keep the notation aligned with the preceding sections.
Model fitting and posterior summaries
The primary analysis fits the baseline-anchored smooth random changepoint model in (2), using the same parameter interpretation as in § 3. For comparison, we also fit an abrupt two-slope model in which the centered soft hinge is replaced by the corresponding centered hard hinge and the transition sharpness parameter is omitted.
Posterior inference for both models is obtained using MCMC in JAGS [27, 28]. The implementation details are collected in Appendix § 15: the skew- residual distribution is specified in Section B.1, the censoring contribution is given in Section B.2, prior distributions are given in Section B.3, and posterior computation is described in Section B.4. Model comparison by Pareto-smoothed importance sampling leave-one-out (PSIS-LOO) is described in Section B.5, and posterior predictive residual checks are described in Section B.6.
For each retained posterior draw of the smooth model, we compute and using (11) and (12). These quantities average over the fitted distributions of both and and therefore summarize the population-average viral load trajectory and the population-average instantaneous rate of change. We also compute the plug-in trajectory and slope from (14) and (15). For the abrupt model, we compute the marginal summaries using (23) and (24), and the corresponding plug-in summaries by fixing at its fitted truncated-normal mean, . All curves are summarized pointwise in time using posterior means and pointwise 95% credible bands.
From a reporting perspective, the marginal summaries answer the population question: what is the average underlying viral load trajectory, and how does its instantaneous rate of change evolve over time? The plug-in summaries answer a different conditional question: what trajectory would be obtained for a hypothetical subject whose transition timing and transition sharpness are fixed at typical values?
Marginal and plug-in trajectories
Supplementary Table 1 reports posterior summaries for the abrupt and smooth changepoint models. Under the smooth model, the posterior median early slope is steeply negative, while the estimated slope change is positive, giving a derived late limiting slope close to zero.
Figure 5 displays posterior mean subject-level instantaneous slope curves under the smooth changepoint model. Most participants show a rapid early decline followed by a substantially flatter long-term phase, but the fitted subject-level transitions differ in timing and apparent sharpness. This subject-level heterogeneity is precisely the feature that the marginal summaries integrate over. As a visual check of the fitted subject-level mean structure, Supplementary Figure 1 shows pointwise posterior median fitted latent trajectories under the abrupt and smooth models overlaid on the observed and censored measurements.
Figure 5. Pointwise posterior mean subject-level instantaneous slopes under the smooth changepoint model. Each curve shows the posterior mean rate of change in HIV-1 RNA (copies/mL per month) over time for one participant.
Supplementary Figure S2 shows the abrupt changepoint summaries, and Figure 6 shows the corresponding smooth changepoint summaries. The abrupt model already has a smooth marginal slope because changepoint times vary across subjects; therefore, population-level smoothness does not, by itself, imply that individual subjects have smooth transitions. The smooth model adds a subject-level transition sharpness component through . In the ACTG 315 analysis, this produces a more gradual population-average transition than the plug-in smooth curve. The plug-in slope moves rapidly from the early steep decline toward the late-phase slope, whereas the marginal slope remains more negative for longer. Consequently, the marginal mean trajectory continues to decline after the plug-in trajectory has already begun to flatten. This is the practical consequence of averaging over subjects whose fitted transitions differ in timing and apparent sharpness.
Figure 6. Smooth changepoint model. Panel (a) shows mean HIV-1 RNA (copies/mL) over time; panel (b) shows the instantaneous rate of change in HIV-1 RNA (copies/mL per month). In each panel, the dashed curve and band are the marginal summaries, and the solid curve and band are the corresponding conditional plug-in summaries.
Figure S2. Abrupt changepoint model. Panel (a) shows the fitted mean trajectory for the underlying HIV-1 RNA process over time; panel (b) shows the instantaneous rate of change in HIV-1 RNA (copies/mL per month). In each panel, the dashed curve and band are the marginal summaries, and the solid curve and band are the corresponding conditional (plug-in) summaries.
Predictive model comparison
We compared the smooth and abrupt changepoint models using PSIS-LOO cross-validation, summarized by the expected log predictive density and the corresponding leave-one-out (LOO) information criterion, . Because the log-likelihood contributions are evaluated conditional on subject-specific random effects, this observation-level comparison targets the prediction of a held-out measurement conditional on the remaining data from the same subject. It should not be interpreted as a leave-one-subject-out prediction.
As shown in Table 1, the smooth model had a higher estimated expected log predictive density than the abrupt model, with compared with . This corresponds to a lower LOOIC for the smooth model, compared with . The estimated difference in expected log predictive density (smooth minus abrupt) was with a standard error of , indicating better observation-level predictive performance for the smooth changepoint model.
| Changepoint Model | Estimate | SE | LOOIC Estimate | LOOIC SE |
| Abrupt | -234.2 | 22.8 | 468.4 | 45.5 |
| Smooth | -213.1 | 21.7 | 426.1 | 43.3 |
Table 1. LOO cross-validation comparison of observation-level predictive fit. Columns report the approximate expected log predictive density and the corresponding information criterion LOOIC , each with its standard error. The estimated difference (smooth changepoint minus abrupt changepoint) is 21.1 with standard error 7.0.
Residual checks
Supplementary Figure 3 and Supplementary Figure 4 show posterior predictive residual diagnostics for the abrupt and smooth changepoint models. These residual diagnostics target calibration under the fitted hierarchical data-generating mechanism, with new subject-specific parameters generated from the fitted random effects and changepoint distributions. By contrast, the PSIS-LOO comparison targets observation-level prediction for an already observed participant, conditional on the subject-specific random effects. The two checks are therefore complementary rather than assessments of the same predictive task.
Supplementary Figure 3. DHARMa simulation-based QQ plots for posterior predictive residuals. Expected quantiles correspond to a Uniform (0, 1) distribution, and observed quantiles correspond to the empirical quantiles of the DHARMa scaled residuals.
Supplementary Figure 4. Normal QQ plots of the randomized PIT residuals . Under correct calibration, the points should lie close to the 45-degree reference line.
The DHARMa QQ plots are broadly consistent with a uniform reference distribution, although some curvature is visible, especially in the middle-to-upper quantiles. The PIT-based normal QQ plots similarly follow the reference line over most of the range, with tail departures. These checks do not show a clear residual calibration advantage for either model. Thus, the empirical support for the smooth model comes primarily from its better observation-level predictive performance, while its substantive advantage lies in its ability to represent a gradual subject-level bend while still producing population-average summaries.
Discussion
This paper distinguishes two summaries that are often conflated in random changepoint modeling. A plug-in trajectory describes a hypothetical representative subject with transition timing and transition sharpness fixed at typical values, whereas a population-average trajectory averages subject-specific curves over the fitted distribution of those quantities. When the timing or shape of the transition varies across subjects, these summaries are generally not the same. The distinction matters because random changepoint timing can smooth the treatment-arm trajectory even when every individual trajectory has an abrupt kink, while subject-level smoothness allows individual trajectories themselves to bend gradually.
The proposed baseline-anchored normal-convolution hinge accommodates both random changepoint timing and gradual subject-level transitions, while preserving the broken stick interpretation, recovering the abrupt changepoint model as a limiting case, and keeping the population-average mean anchored at baseline. Under the working independence structure, the population-average trajectory and slope can be evaluated through arm-level kernels, with analytic averaging over changepoint timing and a one-dimensional numerical average over transition sharpness.
The numerical experiment shows that the discrepancy between plug-in and population-average summaries can become substantial when there is heterogeneity in or . In the ACTG-like setting, the maximum difference between the marginal and plug-in mean trajectories is about 0.412 on the scale, corresponding to roughly a 2.6-fold difference in viral load. In the ACTG 315 analysis, the fitted smooth model suggests a population-average slope that remains more negative for longer than the corresponding plug-in slope. These results support reporting population-average summaries when the scientific question concerns the average study population, while reserving plug-in summaries for explicitly conditional representative subject descriptions.
If the scientific target is only the limiting late-phase slope, marginalization over transition timing and transition sharpness is less consequential. The proposed summaries are most relevant when inference concerns the finite-time mean trajectory, the timing and pace of transition, or the instantaneous rate of change during the observed follow-up period.
Several limitations are important. The deterministic formulas use independence between and , as well as independence between and . More general dependence structures could be accommodated by Monte Carlo averaging under the fitted joint distribution, but would require additional modeling assumptions. The fitted hierarchy is restricted to a single dominant transition and uses parametric truncated normal distributions for changepoint timing and transition sharpness. In applications with multiple distinct phases or subgroup-specific transition patterns, richer transition structures may be needed. In sparse longitudinal data, the timing and width of a transition may be difficult to distinguish fully, so the transition sharpness distribution should be interpreted with caution. Simpler alternatives, such as a common-sharpness model or the abrupt changepoint model, remain useful sensitivity checks when information about transition sharpness heterogeneity is limited.
Finally, the proposed summaries remain model-based. In ACTG 315, we used a skew- residual distribution, an explicit likelihood contribution for censoring, and posterior predictive checks. Those checks did not indicate clear systematic residual miscalibration, although some tail departures remained. In other applications, misspecification of the mean structure, random effects distribution, residual family, or censoring mechanism could affect both marginal and plug-in summaries. The main reporting implication is that plug-in curves should be presented as conditional representative subject summaries, not automatically as treatment-arm population summaries.
Acknowledgements
The authors thank Patrick Schloemer and Andreas Kaiser (Bayer AG) for helpful input on earlier versions of this manuscript.
Disclosure statement
No potential conflict of interest was reported by the author(s).
Funding
This work was supported by the National Research Foundation of South Africa (Grant number 132383). Opinions expressed and conclusions arrived at are those of the authors and are not necessarily to be attributed to the National Research Foundation.
Data availability statement
The ACTG 315 data used in this study are publicly available as the actg315raw dataset in the ushr R package and from the ACTG 315 longitudinal viral load and CD4+ T-cell data page maintained by Hulin Wu and colleagues at UTHealth. Code for the application, implementation of the proposed method, and the rendered R implementation guide is available at https://github.com/DABURGER1/Marginal-Average-Two-Slope-Modeling.
Ethical statement
This study is a secondary analysis of publicly available, de-identified data. No new human participants were recruited for this analysis.
Appendix
Changepoint-marginalized expectation
This appendix gives the closed-form calculation used to evaluate the baseline-centered kernel in (10). The derivation is written for a fixed treatment arm and a fixed transition sharpness value . Let denote a generic changepoint from the arm-specific subject-level distribution. For compactness, define the auxiliary raw expectation
The baseline-centered kernel used in the main text is then
Let
and write . For a given value of and fixed , define
This is the same notation as in (17), with and fixed and the arguments suppressed. When the baseline value is evaluated, the same definitions are used with . With
standardizing gives . Therefore,
Define the three integrals
and
The first integral is obtained from the bivariate normal identity
so that
This immediately gives the slope kernel
which is the expression reported in (18).
Integration by parts gives
Completing the square in the product of the two normal densities gives
Substituting (27), (28), and (29) into (26) yields
Combining (30) with (25) gives the closed-form baseline-centered kernel used in the main text.
In the untruncated case, , , and . The boundary term in (30) vanishes, , and . Hence
where
Centering (31) at gives (19). Differentiating gives
which is (20).
Bayesian implementation for ACTG 315
This appendix gives the likelihood, censoring mechanism, residual distribution, priors, and posterior computation used in § 6. For ACTG 315, there is a single treatment arm (we retain the arm index for consistency with § 3 and § 4). The subject-level mean structure, the smooth hinge function , the interpretation of , and the distributions for and are as defined in § 3. In the abrupt model, the centered soft-hinge contribution in (2) is replaced by the corresponding centered hard-hinge contribution, which reduces to because $\tau_{ij}\geq 0, and the transition sharpness parameter is omitted.
Skew- residual distribution
We instantiate the generic residual model in (4) for the ACTG 315 analysis by taking to be the skew- density proposed by Hansen [16], with arm-specific residual parameters .
Let denote the observed viral load for subject in arm at time and let denote the latent uncensored value. Conditional on the subject-specific parameters and on the arm-level residual parameters, we model
where with given in (2) for the smooth model and in the corresponding hard-hinge form for the abrupt model, is a residual scale parameter for arm , controls asymmetry, and controls tail thickness.
Write the standardized residual
Following the piecewise skew- parameterization used in the analysis, define
and
Let
Define
The resulting skew- probability density function is
For any threshold , we define
and write for the CDF of a standard Student distribution with degrees of freedom. The skew- CDF is
This residual specification allows arm-specific heavy tails (small ), arm-specific asymmetry (), and different residual scales across arms, and reduces to a symmetric standardized Student- distribution for .
Censoring at the lower limit of quantification
Let denote the LLOQ on the scale (for ACTG 315, for all ). We observe
and define if is observed (uncensored) and if the measurement is reported only as below quantification (left censored at ). The likelihood contribution of observation is
The subject-level likelihood is
and the conditional data likelihood has the same product form as in (5), with the observation-level contribution replaced by the censored skew- contribution in (34).
Priors on residual, changepoint, and smoothness terms
Arm-specific residual parameters are given weakly informative priors:
Here, denotes a Student- distribution with 3 degrees of freedom, location 0, and scale , truncated to (a half- prior). In the ACTG 315 implementation, we take . The notation refers to a gamma distribution with shape 2 and rate parameter , and denotes an exponential distribution with rate 1. Integrating out and yields the implied marginal prior for , with density
which provides a heavy-tailed prior on the degrees of freedom, in line with the recommendations of Juárez and Steel [21].
For the changepoint and transition sharpness parameters, we use the same truncated normal structure introduced in § 3 and assign weakly informative hyperpriors to the arm-specific location and scale parameters. For each arm ,
so that the same half- scale prior is reused for the changepoint and smoothness standard deviations. The individual changepoints and transition sharpness parameters satisfy
independently across subjects, and independently of each other within subject, conditionally on , , , and . In the ACTG 315 analysis, months. In the abrupt changepoint model, and its hyperparameters are omitted.
For the random effects distribution of in (3), we place weakly informative priors on the arm-level means and covariance. Specifically,
independently, and we parameterize the precision matrix via its lower triangular Cholesky factor , so that with
The diagonal entries receive independent priors and the strict subdiagonal entries receive independent priors. Conditional on , the random effects are independent across subjects.
Posterior and computation
Let collect the fixed effects, random effects, and hyperparameters across all arms and subjects. For each arm , this includes the arm-level means for , the lower-triangular Cholesky factor of the random effects precision matrix, the parameters of the truncated normal laws for and (in the smooth model) , and the residual parameters . Writing
and defining
the joint posterior density for the smooth changepoint model is
where is given by (2) in the smooth model, and and denote the skew- density and CDF defined in (32) and (33). The matrix is the lower-triangular Cholesky factor of the random effects precision matrix, so that . The conditional density is the multivariate normal random effects density with mean and covariance matrix implied by . The prior factors follow (35) and (36), together with the random effects specification in (3); the conditional densities for and are the corresponding truncated normal densities. In the abrupt changepoint model, the hard-hinge counterpart of (2) is used and the terms involving and are omitted. For , this hierarchical construction is equivalent to using the implied marginal prior with density after integrating out the auxiliary rate parameter and using .
Posterior inference is obtained by MCMC in JAGS (Plummer, [27, 28]). For each fitted model, we ran 10 parallel chains with 1000 adaptive iterations and 25000 burn-in iterations per chain. The sampling phase used a thinning interval of 100 and retained 4000 post-burn-in draws per chain, giving 40000 retained posterior draws for each model. Computations were performed on a laptop with a 13th-generation Intel Core i7-1365U processor, 10 physical cores, 12 logical processors, and 32 GB RAM. On this computing environment, the abrupt and smooth changepoint models required approximately 9.1 and 10.1 hours of wall-clock runtime, respectively. Initial values for the subject-specific parameters are obtained from simple subject-level linear fits. For each participant, we fit separate ordinary least squares regressions of censored HIV-1 RNA on time measured in months before and after 1 month, using uncensored observations when available. The intercept from the early-time fit initializes , the corresponding early slope initializes , and the difference between the late and early slopes initializes . We set month for all subjects, initialize at moderate positive values in the smooth model, and initialize the arm-level means at the sample averages of these subject-level estimates.
Convergence and mixing are assessed using standard diagnostics, including trace plots and the potential scale reduction factor of Gelman and Rubin ((1992)), and posterior summaries are based on all retained post-burn-in draws from all chains. For the ACTG 315 application, the deterministic average over transition sharpness used equal-probability quadrature points for each retained posterior draw. From each retained posterior draw of the smooth model, we compute the marginal mean trajectory and marginal slope defined in § 4. These functions average over the fitted distributions of changepoint times and transition sharpness parameters and therefore describe, respectively, the population-average viral load path and the population-average instantaneous rate of change at time in the ACTG 315 study population. We summarize these functions pointwise in using posterior means and 95% credible bands, and we compare them with the conditional plug-in summaries defined in (14) and (15) to clarify the distinction between population-average and representative subject interpretations.
Leave-one-out cross-validation for model comparison
To compare the smooth changepoint model with the abrupt two-slope model, we used PSIS-LOO cross-validation based on the observation-level log-likelihood under each fitted model, implemented via the loo package (Vehtari et al., [33]).
Let denote the observed viral load value on the scale for subject in arm , with corresponding quantification limit and censoring indicator , where for uncensored measurements and for values reported only as below the LLOQ. For a given model and posterior draw , let be the implied mean trajectory at the observation time for , conditional on the corresponding sampled subject-specific parameters, and let collect the residual parameters for arm . Using the skew- density and CDF defined in Section B.1, the observation-level log-likelihood contribution is
For each model, we collect these contributions into an matrix
where is the total number of observations across all subjects and arms, and the single index enumerates the triples .
Given , PSIS-LOO provides an importance-sampling approximation to the LOO expected log predictive density, which we denote by , and the associated LOO information criterion LOOIC for each model.
Posterior predictive residual checks
Model adequacy was assessed using posterior predictive residual diagnostics based on the hierarchical data-generating mechanism implied by the fitted model. For each retained posterior draw and each arm , we first generated a new set of subject-specific parameters from the random effects and changepoint hierarchies, then simulated replicated latent outcomes from the skew- observation model. The same LLOQ was then applied,
so that the replicated data share the same observed-scale censoring mechanism as the original measurements.
The collection of replicated datasets was used to construct simulation-based residuals via the DHARMa package [17 b]. For each model, DHARMa returns scaled residuals that should be approximately Uniform under correct posterior predictive calibration. We summarize these residuals using QQ plots that compare their empirical quantiles with the Uniform reference distribution.
As a complementary check, we constructed randomized probability integral transform (PIT) residuals from the hierarchical posterior predictive distributions on the observed scale, with randomization applied to account for the point mass induced by left censoring [30, 13]. Index the observations by a single index enumerating , and write for the observed value with replicated values , . For each , we define the empirical lower and upper predictive distribution functions
and construct the randomized PIT value
independently across . Because the censoring rule is applied both to the observed data and to the replicated data, this PIT construction targets the posterior predictive distribution of the observed (censored) data. Under correct calibration, the collection is approximately Uniform (0, 1), and the transformed residuals are approximately standard normal.
References
Correspondence: Divan Burger, Cytel Inc., 1050 Winter Street, Waltham, MA 02451, USA. Email: link text
ORCID iDs: Divan A. Burger, 0000-0001-8096-6371; Sean van der Merwe, 0000-0002-8623-8639; Emmanuel Lesaffre, 0000-0002-3747-6905.
Supplementary Material
| Parameter | Abrupt | Smooth | ||
| Est. | 95% BCI | Est. | 95% BCI | |
| 5.092 | [4.909; 5.274] | 5.099 | [4.921; 5.275] | |
| −3.750 | [−4.107; −3.441] | −4.697 | [−5.542; −4.102] | |
| 3.484 | [3.158; 3.841] | 4.563 | [3.928; 5.423] | |
| −0.267 | [−0.419; −0.123] | −0.137 | [−0.310; 0.026] | |
| 0.530 | [0.467; 0.593] | 0.436 | [0.341; 0.517] | |
| 0.099 | [0.033; 0.154] | 0.093 | [0.043; 0.147] | |
| 0.530 | [0.467; 0.593] | 0.436 | [0.342; 0.517] | |
| SD () | 0.099 | [0.033; 0.154] | 0.093 | [0.043; 0.146] |
| 3.608 | [−11.340; 6.909] | |||
| 3.377 | [1.263; 13.450] | |||
| 4.789 | [2.898; 9.484] | |||
| SD () | 2.775 | [1.225; 6.880] | ||
| 0.624 | [0.411; 1.461] | 0.463 | [0.331; 1.043] | |
| 0.253 | [0.003; 0.482] | 0.209 | [−0.034; 0.449] | |
| 2.323 | [2.047; 3.148] | 2.542 | [2.077; 3.836] | |
| SD () | 0.544 | [0.431; 0.700] | 0.540 | [0.428; 0.693] |
| SD () | 0.290 | [0.077; 0.735] | 0.257 | [0.074; 0.642] |
| SD () | 0.393 | [0.083; 0.936] | 0.384 | [0.095; 0.887] |
| 0.101 | [−0.704; 0.911] | −0.299 | [−0.942; 0.832] | |
| −0.214 | [−0.901; 0.532] | 0.185 | [−0.697; 0.823] | |
| −0.528 | [−0.970; 0.909] | −0.129 | [−0.956; 0.949] |
Table 1 (PDF p. 37). Supplementary Table 1: Posterior summaries for model-level parameters and derived summaries under the abrupt and smooth changepoint models. Columns report the posterior median (Est.) and 95% Bayesian credible interval (BCI). The quantities and are the pre-truncation location and scale parameters for the subject-level changepoint distribution, and and are the corresponding pre-truncation location and scale parameters for the subject-level transition sharpness distribution. The quantities , , SD (), and SD () are the derived means and standard deviations of the fitted truncated normal distributions. The quantities SD (), SD (), and SD () are the derived standard deviations of the random effects from , and , , and are the corresponding pairwise random effect correlations.
Figure 1 (PDF p. 38). Supplementary Figure 1: Subject-specific fitted trajectories under the abrupt and smooth changepoint models for the ACTG 315 data. Points show observed HIV-1 RNA values, and open triangles show measurements censored at the LLOQ, plotted at . Lines show pointwise posterior medians of the fitted latent mean trajectories under each model, with panels indexed by participant. Part 1 of 4.
Figure 1. Model — Abrupt (dashed), Smooth (solid blue). Observation: ● Observed, ▷ Censored at LLOQ. -axis: Months since baseline. -axis: RNA copies/mL. Panels 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, and 24. Subject-specific fitted trajectories under the abrupt and smooth changepoint models, continued. Part 2 of 4.
Figure 1 (PDF p. 40). Subject-specific fitted trajectories under the abrupt and smooth changepoint models, continued. Part 3 of 4.
Figure 1 (PDF p. 41). Supplementary Figure 1: Subject-specific fitted trajectories under the abrupt and smooth changepoint models, continued. Part 4 of 4.
References
- [1]Bachelier, L.: Théorie de la spéculation. Annales scientifiques de l’École normale supérieure 17, 21–86 (1900) https://doi.org/10.24033/asens.476
- [2]Bellera, C.A., Hanley, J.A., Joseph, L., Albertsen, P.C.: Hierarchical changepoint models for biochemical markers illustrated by tracking postradiotherapy prostate-specific antigen series in men with prostate cancer. Annals of Epidemiology 18(4), 270–282 (2008) https://doi.org/10.1016/j.annepidem.2007.10.006
- [3]Brilleman, S.L., Howe, L.D., Wolfe, R., Tilling, K.: Bayesian piecewise linear mixed models with a random change point: an application to BMI rebound in childhood. Epidemiology 28(6), 827–833 (2017) https://doi.org/10.1097/EDE.0000000000000723
- [4]Billingsley, P.: Probability and Measure, 3rd edn. John Wiley & Sons, New York (1995)
- [5]Burger, D.A., Schall, R.: A Bayesian nonlinear mixed-effects regression model for the characterization of early bactericidal activity of tuberculosis drugs. Journal of Biopharmaceutical Statistics 25(6), 1247–1271 (2015) https://doi.org/10.1080/10543406.2014.971170
- [6]Bacon, D.W., Watts, D.G.: Estimating the transition between two intersecting straight lines. Biometrika 58(3), 525–534 (1971) https://doi.org/10.1093/biomet/58.3.525
- [8]Capuano, A.W., Wagner, M.: nlive: an R package to facilitate the application of the sigmoidal and random changepoint mixed models. BMC Medical Research Methodology 23(1), 257 (2023) https://doi.org/10.1186/s12874-023-02075-4
- [9]Capuano, A.W., Wilson, R.S., Leurgans, S.E., Dawson, J.D., Bennett, D.A., Hedeker, D.: Sigmoidal mixed models for longitudinal data. Statistical Methods in Medical Research 27(3), 863–875 (2018) https://doi.org/10.1177/0962280216645632
- [10]Donald, P.R., Diacon, A.H.: The early bactericidal activity of anti-tuberculosis drugs: a literature review. Tuberculosis 88(Suppl. 1), 75–83 (2008) https://doi.org/10.1016/S1472-9792(08)70038-6
- [11]Davidian, M., Giltinan, D.M.: Nonlinear Models for Repeated Measurement Data. Chapman & Hall/CRC, Boca Raton, London, New York, Washington, D.C. (1995)
- [12]Davidian, M., Giltinan, D.M.: Nonlinear models for repeated measurement data: an overview and update. Journal of Agricultural, Biological, and Environmental Statistics 8(4), 387–419 (2003) https://doi.org/10.1198/1085711032697
- [13]Dunn, P.K., Smyth, G.K.: Randomized quantile residuals. Journal of Computational and Graphical Statistics 5(3), 236–244 (1996) https://doi.org/10.1080/10618600.1996.10474708
- [14]Folland, G.B.: Real Analysis: Modern Techniques and Their Applications, 2nd edn. John Wiley & Sons, New York (1999)
- [16]Hansen, B.E.: Autoregressive conditional density estimation. International Economic Review 35(3), 705–730 (1994) https://doi.org/10.2307/2527081
- [17]Hartig, F.: DHARMa: Residual Diagnostics for Hierarchical (Multi-Level/Mixed) Regression Models. (2021). https://doi.org/10.32614/CRAN.package.DHARMa . R package version 0.4.4
- [19]Huang, Y.: Segmental modeling of viral load changes for HIV longitudinal data with skewness and detection limits. Statistics in Medicine 32(2), 319–334 (2013) https://doi.org/10.1002/sim.5527
- [21]Juárez, M.A., Steel, M.F.J.: Model-based clustering of non-Gaussian panel data based on skew-t distributions. Journal of Business & Economic Statistics 28(1), 52–66 (2010) https://doi.org/10.1198/jbes.2009.07145
- [22]Lederman, M.M., Connick, E., Landay, A., Kuritzkes, D.R., Spritzler, J., St. Clair, M., Kotzin, B.L., Fox, L., Chiozzi, M.H., Leonard, J.M., Rousseau, F., Wade, M., Roe, J.D., Martinez, A., Kessler, H.: Immunologic responses associated with 12 weeks of combination antiretroviral therapy consisting of zidovudine, lamivudine, and ritonavir: results of AIDS Clinical Trials Group Protocol 315. Journal of Infectious Diseases 178(1), 70–79 (1998) https://doi.org/10.1086/515591
- [23]Liang, H.: Segmental modeling of changing viral load to assess drug resistance in HIV infection. Statistical Methods in Medical Research 16(4), 365–373 (2007) https://doi.org/10.1177/0962280206071850
- [24]Laird, N.M., Ware, J.H.: Random-effects models for longitudinal data. Biometrics 38(4), 963–974 (1982) https://doi.org/10.2307/2529876
- [25]Muggeo, V.M.R., Atkins, D.C., Gallop, R.J., Dimidjian, S.: Segmented mixed models with random changepoints: a maximum likelihood approach with application to treatment for depression study. Statistical Modelling 14(4), 293–313 (2014) https://doi.org/10.1177/1471082X13504721
- [26]Morris, S.E., Dziobek-Garrett, L., Yates, A.: ushr: Understanding Suppression of HIV in R. https://cran.r-project.org/package=ushr. R package version 0.2.3 (2020)DOI
- [27]Plummer, M.: JAGS: A Program for Analysis of Bayesian Graphical Models Using Gibbs Sampling. In: Proceedings of the 3rd International Workshop on Distributed Statistical Computing, pp. 1–10 (2003). Vienna, Austria
- [28]Plummer, M.: JAGS Version 4.3.0 User Manual. (2017). http://mcmc-jags.sourceforge.net/
- [29]Perelson, A.S., Neumann, A.U., Markowitz, M., Leonard, J.M., Ho, D.D.: HIV-1 dynamics in vivo: virion clearance rate, infected cell life-span, and viral generation time. Science 271(5255), 1582–1586 (1996) https://doi.org/10.1126/science.271.5255.1582
- [30]Rosenblatt, M.: Remarks on a multivariate transformation. The Annals of Mathematical Statistics 23(3), 470–472 (1952) https://doi.org/10.1214/aoms/1177729394
- [31]Singer, J.M., Rocha, F.M.M., Pedroso-de-Lima, A.C., Silva, G.L., Coatti, G.C., Zatz, M.: Random changepoint segmented regression with smooth transition. Statistical Methods in Medical Research 30(3), 643–654 (2021) https://doi.org/10.1177/0962280220964953
- [32]Tan, X., Shivko, M.P., Li, R., Li, Y., Dierker, L.: A time-varying effect model for intensive longitudinal data. Psychological Methods 17(1), 61–77 (2012) https://doi.org/10.1037/a0025814
- [33]Vehtari, A., Gabry, J., Magnusson, M., Yao, Y., Bürkner, P.C., Paananen, T., Gelman, A.: loo: Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models. (2024). https://doi.org/10.32614/CRAN.package.loo. R package version 2.8.0
- [34]van den Hout, A., Muniz-Terrera, G., Matthews, F.E.: Smooth random change point models. Statistics in Medicine 30(6), 599–610 (2011) https://doi.org/10.1002/sim.4127
- [35]Wanner, C., Inzucchi, S.E., Lachin, J.M., Fitchett, D., Eynatten, M., Mattheus, M., Johansen, O.E., Woerle, H.J., Broedl, U.C., Zinman, B.: Empagliflozin and progression of kidney disease in type 2 diabetes. New England Journal of Medicine 375(4), 323–334 (2016) https://doi.org/10.1056/NEJMoa1515920
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.













