Skip to content

Menu

WorksMathematics

Population-average trajectories and slopes in smooth random changepoint mixed models

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_g39wghkg. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

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 log⁡10\log_{10} scale. Measurements reported as below the lower limit of quantification (LLOQ) are treated as left-censored at 100 copies/mL, that is, at log⁡10(100)\log_{10}(100); 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 log⁡10\log_{10} 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 log⁡10\log_{10} viral load trajectories for 46 ACTG 315 participants. The censoring limit is 100 copies/mL (log⁡10=2\log_{10} = 2). 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-tt 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 j=1,…,Jj = 1,\ldots,J index treatment groups, and let i=1,…,Nji = 1,\ldots,N_j index subjects assigned to treatment jj. For each subject, let k=1,…,nijk = 1,\ldots,n_{ij} index repeated measurements at times tijkt_{ijk}. Time is measured from baseline, so t=0t = 0 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 ii in arm jj, we let

dμij(t)dt=β1ij+β2ijΦ(κij(t−τij)),(1)\frac{\mathrm{d}\mu_{ij}(t)}{\mathrm{d}t} = \beta_{1ij} + \beta_{2ij}\Phi\left(\kappa_{ij}(t-\tau_{ij})\right), \tag*{(1)}

where Φ(⋅)\Phi(\cdot) denotes the standard normal cumulative distribution function (CDF), β1ij\beta_{1ij} is the early limiting slope, β1ij+β2ij\beta_{1ij}+\beta_{2ij} is the late limiting slope, τij\tau_{ij} is the center of the transition, and κij>0\kappa_{ij}>0 controls how quickly the transition occurs. The probit term Φ(κij(t−τij))\Phi\left(\kappa_{ij}(t-\tau_{ij})\right) acts as a smooth transition gate. When tt is well before τij\tau_{ij}, this gate is close to 0, and the instantaneous slope is close to β1ij\beta_{1ij}. When tt is well after τij\tau_{ij}, the gate is close to 1, and the instantaneous slope is close to β1ij+β2ij\beta_{1ij}+\beta_{2ij}. The probit gate therefore gives a subject-specific transition that is continuous on the slope scale, rather than a hard change in slope at τij\tau_{ij}. At t=τijt=\tau_{ij}, the gate equals 1/21/2, so

dμij(t)dt∣t=τij=β1ij+12β2ij.\left.\frac{\mathrm{d}\mu_{ij}(t)}{\mathrm{d}t}\right|_{t=\tau_{ij}} = \beta_{1ij}+\frac{1}{2}\beta_{2ij}.

Thus, τij\tau_{ij} is the time at which the subject has moved halfway, on the slope scale, from the early slope to the late slope.

The parameter κij\kappa_{ij} has an inverse-width interpretation. If tpt_p denotes the time at which the transition gate equals pp, then

tp=τij+Φ−1(p)κij.t_p = \tau_{ij}+\frac{\Phi^{-1}(p)}{\kappa_{ij}}.

Therefore, the time required for the slope gate to move from 10% to 90% of its transition is

w10,90,ij=t0.90−t0.10=Φ−1(0.90)−Φ−1(0.10)κij≈2.56κij.w_{10,90,ij}=t_{0.90}-t_{0.10} =\frac{\Phi^{-1}(0.90)-\Phi^{-1}(0.10)}{\kappa_{ij}} \approx\frac{2.56}{\kappa_{ij}}.

Thus, larger values of κij\kappa_{ij} produce sharper transitions, whereas smaller values spread the transition over a longer interval. Allowing κij\kappa_{ij} 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

hκ(x)=xΦ(κx)+ϕ(κx)κ,κ>0,h_{\kappa}(x) = x\Phi(\kappa x) + \frac{\phi(\kappa x)}{\kappa}, \qquad\kappa> 0,

so that

ddxhκ(x)=Φ(κx).\frac{\mathrm{d}}{\mathrm{d}x}h_{\kappa}(x) = \Phi(\kappa x).

Equivalently, hκ(x)h_{\kappa}(x) can be written as E[(x+Z/κ)+]\mathrm{E}\left[(x+Z/\kappa)^{+}\right] with Z∼N(0,1)Z\sim\mathcal{N}(0,1). This representation gives a normal-convolution smoothing of the hard hinge x+=max⁡(x,0)x^{+}=\max(x,0), related to the normal positive-part expectation in the Bachelier formulation [1]; see also Cramér (1946) for standard normal integral identities. As κ→∞\kappa\to\infty, this representation approaches the abrupt hard hinge.

Setting μij(0)=α0ij\mu_{ij}(0)=\alpha_{0ij} and integrating from 00 to tt gives

μij(t)=α0ij+∫0t[β1ij+β2ijΦ(κij(u−τij))]du=α0ij+β1ijt+β2ij{hκij(t−τij)−hκij(−τij)}.(2)\begin{aligned} \mu_{ij}(t) &= \alpha_{0ij}+\int_{0}^{t}\left[\beta_{1ij}+\beta_{2ij}\Phi\left(\kappa_{ij}(u-\tau_{ij})\right)\right]\mathrm{d}u\\ &= \alpha_{0ij}+\beta_{1ij}t+\beta_{2ij}\left\{h_{\kappa_{ij}}(t-\tau_{ij})-h_{\kappa_{ij}}(-\tau_{ij})\right\}. \tag*{(2)} \end{aligned}

The subtraction of hκij(−τij)h_{\kappa_{ij}}(-\tau_{ij}) anchors the trajectory at baseline, so that μij(0)=α0ij\mu_{ij}(0)=\alpha_{0ij}. The mean trajectory at the observed measurement times is then

μijk=μij(tijk),\mu_{ijk}=\mu_{ij}(t_{ijk}),

for k=1,…,nijk=1,\ldots,n_{ij}.

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 β1ij\beta_{1ij} to the late limiting value β1ij+β2ij\beta_{1ij} + \beta_{2ij}, with τij\tau_{ij} 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 τij\tau_{ij} while holding κij\kappa_{ij} fixed. Panel (d) illustrates heterogeneity in transition width by varying κij\kappa_{ij} while holding τij\tau_{ij} 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 hκij(t−τij)−hκij(−τij)h_{\kappa_{ij}}(t-\tau_{ij})-h_{\kappa_{ij}}(-\tau_{ij}).

The abrupt two-slope model is recovered in the limit as κij→∞\kappa_{ij}\to\infty, which replaces the smooth hinge by the hard hinge. A model with common transition sharpness is obtained by setting κij=κj\kappa_{ij}=\kappa_j for all subjects in arm jj.

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,

\begin{bmatrix} \alpha_{0ij} \\ \beta_{1ij} \\ \beta_{2ij} \end{bmatrix} \sim\mathcal{N}_3\left(\begin{bmatrix} \alpha_{0j} \\ \beta_{1j} \\ \beta_{2j} \end{bmatrix}, \boldsymbol{\Sigma}_{v,j}\right), \tag*{(3)}\end{bmatrix}

where α0j\alpha_{0j}, β1j\beta_{1j}, and β2j\beta_{2j} are the arm-level means of the corresponding subject-specific parameters, and Σv,j\boldsymbol{\Sigma}_{v,j} is an unstructured 3×33 \times3 covariance matrix for treatment arm jj. We also assume

τij∼TN⁡(μτ,j,στ,j2;0,τmax⁡),κij∼TN⁡(μκ,j,σκ,j2;0,∞),\tau_{ij} \sim\operatorname{TN}\left(\mu_{\tau,j}, \sigma_{\tau,j}^{2}; 0, \tau_{\max}\right), \qquad\kappa_{ij} \sim\operatorname{TN}\left(\mu_{\kappa,j}, \sigma_{\kappa,j}^{2}; 0, \infty\right),

where TN⁡(μ,σ2;a,b)\operatorname{TN}\left(\mu, \sigma^{2}; a, b\right) denotes a normal distribution with pre-truncation location μ\mu and variance σ2\sigma^{2}, truncated to [a,b][a,b], and τmax⁡\tau_{\max} is a prespecified upper bound for changepoint timing on the analysis time scale. The distribution of τij\tau_{ij} describes variation in transition timing, while the distribution of κij\kappa_{ij} 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 (α0ij,β1ij,β2ij)(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}) is independent of (τij,κij)(\tau_{ij}, \kappa_{ij}) and τij\tau_{ij} is independent of κij\kappa_{ij}, conditionally on the corresponding arm-level parameters. Correlation among (α0ij,β1ij,β2ij)(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}) is still captured through Σv,j\boldsymbol{\Sigma}_{v,j}. 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 (α0ij,β1ij,β2ij,τij,κij)(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}, \tau_{ij}, \kappa_{ij}).

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:

Yijk=μijk+εijk,εijk∼fε(⋅;θj),E⁡(εijk)=0.(4)Y_{ijk} = \mu_{ijk} + \varepsilon_{ijk}, \qquad\varepsilon_{ijk} \sim f_{\varepsilon}\left(\cdot; \boldsymbol{\theta}_{j}\right), \qquad\operatorname{E}\left(\varepsilon_{ijk}\right) = 0. \tag*{(4)}

where θj\boldsymbol{\theta}_{j} collects dispersion, skewness, and tail thickness parameters for treatment arm jj. Examples include Gaussian, Student-tt, and skew-tt residual families, parameterized so that E⁡(εijk)=0\operatorname{E}\left(\varepsilon_{ijk}\right) = 0. 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 fεf_{\varepsilon} to be the Hansen skew-tt density [16].

We assume that, conditional on the subject-specific parameters (α0ij,β1ij,β2ij,τij,κij)(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}, \tau_{ij}, \kappa_{ij}) and the arm-level residual parameters θj\boldsymbol{\theta}_{j}, the repeated measurements YijkY_{ijk} for k=1,…,nijk = 1,\ldots,n_{ij} are independent.

Under the uncensored formulation, the subject-level likelihood is

Lij=∏k=1nijfε(Yijk−μij(tijk);θj),\mathcal{L}_{ij} = \prod_{k=1}^{n_{ij}} f_{\varepsilon}\left(Y_{ijk} - \mu_{ij}\left(t_{ijk}\right); \boldsymbol{\theta}_{j}\right),

where fεf_{\varepsilon} is the density of the residual error in (4). Accordingly, the conditional data likelihood factors over subjects and treatment arms:

L=∏j=1J∏i=1NjLij.(5)\mathcal{L} = \prod_{j=1}^{J} \prod_{i=1}^{N_j} \mathcal{L}_{ij}. \tag*{(5)}

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 jj, 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, jj indexes the treatment arm and ii denotes a generic subject drawn from that arm. Let

ψij=(α0ij,β1ij,β2ij,τij,κij)T\boldsymbol{\psi}_{ij} = \left(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}, \tau_{ij}, \kappa_{ij}\right)^{\mathsf{T}}

collect the subject-level parameters that determine the underlying trajectory for a randomly selected subject from arm jj. Let Ωj\boldsymbol{\Omega}_j collect the corresponding arm-level parameters that define the distribution of ψij\boldsymbol{\psi}_{ij}. We write

Ej[⋅]=E[⋅∣Ωj]\mathrm{E}_j[\cdot] = \mathrm{E}[\cdot\mid\boldsymbol{\Omega}_j]

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 Ωj\boldsymbol{\Omega}_j, and posterior uncertainty is then summarized across draws.

The population-average mean trajectory is

μmarg,j(t)=Ej[μij(t)].(6)\mu_{\mathrm{marg},j}(t) = \mathrm{E}_j\left[\mu_{ij}(t)\right]. \tag*{(6)}

The corresponding population-average instantaneous slope is obtained by averaging the subject-specific instantaneous slopes:

smarg,j(t)=Ej[ddtμij(t)]=Ej[β1ij+β2ijΦ(κij(t−τij))].(7)s_{\mathrm{marg},j}(t) = \mathrm{E}_j\left[\frac{\mathrm{d}}{\mathrm{d}t}\mu_{ij}(t)\right] = \mathrm{E}_j\left[\beta_{1ij} + \beta_{2ij}\Phi\left(\kappa_{ij}(t-\tau_{ij})\right)\right]. \tag*{(7)}

Because the smooth transition gate lies between 0 and 1, the subject-specific slope is bounded in magnitude by ∣β1ij∣+∣β2ij∣\lvert\beta_{1ij}\rvert+\lvert\beta_{2ij}\rvert. Under the finite first-moment assumptions of the mixed model, the dominated convergence theorem justifies interchanging differentiation and expectation ([4, 14]), so smarg,j(t)s_{\mathrm{marg},j}(t) is also the derivative of μmarg,j(t)\mu_{\mathrm{marg},j}(t) with respect to tt. In the censored ACTG application, μmarg,j(t)\mu_{\mathrm{marg},j}(t) 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

μmarg,j(t)=Ej(α0ij)+Ej(β1ij)t+Ej[β2ij{hκij(t−τij)−hκij(−τij)}].(8)\mu_{\mathrm{marg},j}(t)=\mathop{\mathrm{E}}\nolimits_j(\alpha_{0ij})+\mathop{\mathrm{E}}\nolimits_j(\beta_{1ij})t+\mathop{\mathrm{E}}\nolimits_j\left[\beta_{2ij}\left\{h_{\kappa_{ij}}(t-\tau_{ij})-h_{\kappa_{ij}}(-\tau_{ij})\right\}\right]. \tag*{(8)}

and

smarg,j(t)=Ej(β1ij)+Ej[β2ijΦ(κij(t−τij))].(9)s_{\mathrm{marg},j}(t)=\mathop{\mathrm{E}}\nolimits_j(\beta_{1ij})+\mathop{\mathrm{E}}\nolimits_j\left[\beta_{2ij}\Phi\left(\kappa_{ij}(t-\tau_{ij})\right)\right]. \tag*{(9)}

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: (α0ij,β1ij,β2ij)(\alpha_{0ij},\beta_{1ij},\beta_{2ij}) is independent of (τij,κij)(\tau_{ij},\kappa_{ij}), and τij\tau_{ij} is independent of κij\kappa_{ij}.

For the kernel calculations, let τ~j\tilde{\tau}_j and κ~j\tilde{\kappa}_j denote generic random variables with the same fitted distributions as τij\tau_{ij} and κij\kappa_{ij}, respectively, for a randomly selected subject in arm jj. Thus, τ~j=dτij\tilde{\tau}_j \mathrel{\mathop{=}\limits^{d}} \tau_{ij} and κ~j=dκij\tilde{\kappa}_j \mathrel{\mathop{=}\limits^{d}} \kappa_{ij}.

Equation (3) gives Ej(α0ij)=α0j\mathop{\mathrm{E}}\nolimits_j(\alpha_{0ij})=\alpha_{0j}, Ej(β1ij)=β1j\mathop{\mathrm{E}}\nolimits_j(\beta_{1ij})=\beta_{1j}, and Ej(β2ij)=β2j\mathop{\mathrm{E}}\nolimits_j(\beta_{2ij})=\beta_{2j}. 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 κ>0\kappa>0, define the baseline-centered changepoint-marginalized hinge kernel

Hj(t∣κ)=Eτ~j[hκ(t−τ~j)−hκ(−τ~j)].(10)H_j(t\mid\kappa)=\mathop{\mathrm{E}}\nolimits_{\tilde{\tau}_j}\left[h_\kappa(t-\tilde{\tau}_j)-h_\kappa(-\tilde{\tau}_j)\right]. \tag*{(10)}

and the corresponding changepoint-marginalized slope kernel

Gj(t∣κ)=Eτ~j[Φ(κ(t−τ~j))].G_j(t\mid\kappa)=\mathop{\mathrm{E}}\nolimits_{\tilde{\tau}_j}\left[\Phi\left(\kappa(t-\tilde{\tau}_j)\right)\right].

Averaging these kernels over the arm-specific distribution of κ~j\tilde{\kappa}_j gives the corresponding fully marginalized kernels

Hˉj(t)=Eκ~j[Hj(t∣κ~j)]=Eκ~j[Eτ~j[hκ~j(t−τ~j)−hκ~j(−τ~j)]].\bar{H}_j(t)=\mathop{\mathrm{E}}\nolimits_{\tilde{\kappa}_j}\left[H_j(t\mid\tilde{\kappa}_j)\right] =\mathop{\mathrm{E}}\nolimits_{\tilde{\kappa}_j}\left[\mathop{\mathrm{E}}\nolimits_{\tilde{\tau}_j}\left[h_{\tilde{\kappa}_j}(t-\tilde{\tau}_j)-h_{\tilde{\kappa}_j}(-\tilde{\tau}_j)\right]\right].

and

Gˉj(t)=Eκ~j[Gj(t∣κ~j)]=Eκ~j[Eτ~j[Φ(κ~j(t−τ~j))]].\bar{G}_j(t)=\mathop{\mathrm{E}}\nolimits_{\tilde{\kappa}_j}\left[G_j(t\mid\tilde{\kappa}_j)\right] =\mathop{\mathrm{E}}\nolimits_{\tilde{\kappa}_j}\left[\mathop{\mathrm{E}}\nolimits_{\tilde{\tau}_j}\left[\Phi\left(\tilde{\kappa}_j(t-\tilde{\tau}_j)\right)\right]\right].

Under these assumptions, the population-average trajectory and slope reduce to

μmarg,j(t)=α0j+β1jt+β2jHˉj(t),(11)\mu_{\mathrm{marg},j}(t) = \alpha_{0j} + \beta_{1j}t + \beta_{2j}\bar{H}_j(t), \tag*{(11)}

and

smarg,j(t)=β1j+β2jGˉj(t).(12)s_{\mathrm{marg},j}(t) = \beta_{1j} + \beta_{2j}\bar{G}_j(t). \tag*{(12)}

Because Hj(0∣κ)=0H_j(0 \mid\kappa) = 0 by construction, Hˉj(0)=0\bar{H}_j(0) = 0 and hence μmarg,j(0)=α0j\mu_{\mathrm{marg},j}(0) = \alpha_{0j}. Also, since Gj(t∣κ)G_j(t \mid\kappa) is the derivative of Hj(t∣κ)H_j(t \mid\kappa) with respect to tt,

ddtHˉj(t)=Gˉj(t),\frac{\mathrm{d}}{\mathrm{d}t}\bar{H}_j(t) = \bar{G}_j(t),

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

μmarg,j(t)=α0j+β1jt+β2j∫0tGˉj(u) du.(13)\mu_{\mathrm{marg},j}(t) = \alpha_{0j} + \beta_{1j}t + \beta_{2j}\int_0^t \bar{G}_j(u)\,\mathrm{d}u. \tag*{(13)}

For comparison, the plug-in trajectory fixes the changepoint and transition sharpness at the means of their fitted arm-level truncated-normal distributions. Let

τˉj=Eτ~j(τ~j),κˉj=Eκ~j(κ~j),\bar{\tau}_j = \mathbb{E}_{\tilde{\tau}_j}(\tilde{\tau}_j), \qquad\bar{\kappa}_j = \mathbb{E}_{\tilde{\kappa}_j}(\tilde{\kappa}_j),

where these expectations are taken under the corresponding truncated normal distributions, not under the untruncated normal laws. The plug-in trajectory is

μcond,j(t)=α0j+β1jt+β2j{hκˉj(t−τˉj)−hκˉj(−τˉj)},(14)\mu_{\mathrm{cond},j}(t) = \alpha_{0j} + \beta_{1j}t + \beta_{2j}\left\{h_{\bar{\kappa}_j}(t-\bar{\tau}_j) - h_{\bar{\kappa}_j}(-\bar{\tau}_j)\right\}, \tag*{(14)}

with plug-in slope

scond,j(t)=β1j+β2jΦ(κˉj(t−τˉj)).(15)s_{\mathrm{cond},j}(t) = \beta_{1j} + \beta_{2j}\Phi\left(\bar{\kappa}_j(t-\bar{\tau}_j)\right). \tag*{(15)}

These plug-in summaries describe a hypothetical representative subject. They generally differ from (11) and (12) because evaluating the nonlinear transition function at τˉj\bar{\tau}_j and κˉj\bar{\kappa}_j is not equivalent to averaging it over the distributions of τ~j\tilde{\tau}_j and κ~j\tilde{\kappa}_j.

Evaluation of the changepoint-marginalized kernels

We first evaluate the inner expectation over the changepoint distribution while treating κ\kappa as fixed. Suppose

τ~j∼TN⁡(μτ,j,στ,j2;Lτ,j,Rτ,j).(16)\tilde{\tau}_j \sim\operatorname{TN}\left(\mu_{\tau,j}, \sigma_{\tau,j}^{2}; L_{\tau,j}, R_{\tau,j}\right). \tag*{(16)}

In the ACTG application, we set Lτ,j=0L_{\tau,j} = 0 and Rτ,j=τmax⁡R_{\tau,j} = \tau_{\max}, so changepoints are constrained to lie within the prespecified interval for changepoint timing.

Define

zL,j=Lτ,j−μτ,jστ,j,zU,j=Rτ,j−μτ,jστ,j,Zτ,j=Φ(zU,j)−Φ(zL,j).z_{L,j} = \frac{L_{\tau,j}-\mu_{\tau,j}}{\sigma_{\tau,j}}, \qquad z_{U,j} = \frac{R_{\tau,j}-\mu_{\tau,j}}{\sigma_{\tau,j}}, \qquad Z_{\tau,j} = \Phi(z_{U,j})-\Phi(z_{L,j}).

For compactness, also define

mj(t)=t−μτ,j,aj(κ)=κστ,j,bj(t,κ)=κmj(t),dj(κ)=1+aj(κ)2.(17)m_j(t) = t-\mu_{\tau,j}, \qquad a_j(\kappa) = \kappa\sigma_{\tau,j}, \qquad b_j(t,\kappa) = \kappa m_j(t), \qquad d_j(\kappa) = \sqrt{1+a_j(\kappa)^2}. \tag*{(17)}

Then the changepoint-marginalized slope kernel has the closed form

Gj(t∣κ)=Φ2(zU,j,bj(t,κ)dj(κ);aj(κ)dj(κ))−Φ2(zL,j,bj(t,κ)dj(κ);aj(κ)dj(κ))Zτ,j,(18)G_j(t\mid\kappa) = \frac{\Phi_2\left(z_{U,j},\frac{b_j(t,\kappa)}{d_j(\kappa)};\frac{a_j(\kappa)}{d_j(\kappa)}\right)-\Phi_2\left(z_{L,j},\frac{b_j(t,\kappa)}{d_j(\kappa)};\frac{a_j(\kappa)}{d_j(\kappa)}\right)}{Z_{\tau,j}}, \tag*{(18)}

where Φ2(x,y;ρ)\Phi_2(x,y;\rho) denotes the bivariate standard normal CDF with correlation ρ\rho. The corresponding closed-form calculation for the baseline-centered mean kernel Hj(t∣κ)H_j(t\mid\kappa) is given in Appendix § 14.

The untruncated normal case gives the clearest interpretation. If (Lτ,j,Rτ,j)=(−∞,∞)(L_{\tau,j},R_{\tau,j})=(-\infty,\infty), define the effective transition width

wj(κ)=στ,j2+1κ2.w_j(\kappa) = \sqrt{\sigma_{\tau,j}^2+\frac{1}{\kappa^2}}.

Then the baseline-centered mean kernel is

Hj(t∣κ)=mj(t)Φ(mj(t)wj(κ))+wj(κ)ϕ(mj(t)wj(κ))−mj(0)Φ(mj(0)wj(κ))−wj(κ)ϕ(mj(0)wj(κ)).(19)H_j(t\mid\kappa) = m_j(t)\Phi\left(\frac{m_j(t)}{w_j(\kappa)}\right)+w_j(\kappa)\phi\left(\frac{m_j(t)}{w_j(\kappa)}\right)-m_j(0)\Phi\left(\frac{m_j(0)}{w_j(\kappa)}\right)-w_j(\kappa)\phi\left(\frac{m_j(0)}{w_j(\kappa)}\right). \tag*{(19)}

and the slope kernel is

Gj(t∣κ)=Φ(mj(t)wj(κ)).(20)G_j(t\mid\kappa) = \Phi\left(\frac{m_j(t)}{w_j(\kappa)}\right). \tag*{(20)}

Thus, in the untruncated case, variation in changepoint timing and subject-level smoothness combine through wj(κ)w_j(\kappa). The term στ,j\sigma_{\tau,j} broadens the population transition because subjects bend at different times, while 1/κ1/\kappa broadens it because each individual bend is gradual.

Averaging over transition sharpness

The remaining step is to average over

κ~j∼TN⁡(μκ,j,σκ,j2;0,∞).(21)\widetilde{\kappa}_j \sim\operatorname{TN}\left(\mu_{\kappa,j},\sigma_{\kappa,j}^2;0,\infty\right). \tag*{(21)}

This leaves a one-dimensional numerical integration because the inner expectation over τ~j\widetilde{\tau}_j has already been evaluated analytically. Let Fκ,jF_{\kappa,j} denote the CDF of the distribution of κ~j\widetilde{\kappa}_j in (21). The baseline-centered definition of Hj(t∣κ)H_j(t\mid\kappa) is important for this step. As κ↓0\kappa\downarrow0,

hκ(x)=ϕ(0)κ+x2+O(κ).h_\kappa(x) = \frac{\phi(0)}{\kappa} + \frac{x}{2} + O(\kappa).

The common divergent 1/κ1/\kappa term is removed by the baseline-centering subtraction in (10). Thus, Hˉj(t)\bar{H}_j(t) can be evaluated by averaging Hj(t∣κ)H_j(t\mid\kappa) over the fitted distribution of κ~j\tilde{\kappa}_j. Equivalently, it can be obtained by integrating the bounded function Gˉj(t)\bar{G}_j(t) from baseline, as in (13).

For a deterministic midpoint quadrature with KK equal-probability points, set

qr=r−12K,κ(r)j=Fκ,j−1(qr),r=1,…,K.q_r = \frac{r-\frac{1}{2}}{K}, \qquad\kappa_{(r)j} = F_{\kappa,j}^{-1}(q_r), \qquad r=1,\ldots,K.

Then

Hˉj(t)≈1K∑r=1KHj(t∣κ(r)j).(22)\bar{H}_j(t) \approx\frac{1}{K}\sum_{r=1}^{K} H_j(t\mid\kappa_{(r)j}). \tag*{(22)}

and

Gˉj(t)≈1K∑r=1KGj(t∣κ(r)j).\bar{G}_j(t) \approx\frac{1}{K}\sum_{r=1}^{K} G_j(t\mid\kappa_{(r)j}).

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 α0j=5\alpha_{0j}=5, β1j=−2.45\beta_{1j}=-2.45, β2j=2.10\beta_{2j}=2.10, μτ,j=1\mu_{\tau,j}=1, μκ,j=2\mu_{\kappa,j}=2, and truncate the changepoint distribution to [0,6][0,6]. 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 τij\tau_{ij} and κij\kappa_{ij} can materially alter the population-average transition relative to a plug-in curve; because κij\kappa_{ij} is an inverse-width parameter, the right-hand panels should be interpreted in terms of sharpness rather than transition width.

(a) (a) Varying στ\sigma_{\tau}. Top: mean trajectory. Bottom: instantaneous slope. Fixed κij∼TN⁡(2,202;0,∞)\kappa_{ij} \sim\operatorname{TN}\left(2,20^{2};0,\infty\right) with στ,j∈{0.03,0.70,0.90}\sigma_{\tau,j} \in\{0.03,0.70,0.90\}.

(b) (b) Varying σκ\sigma_{\kappa}. Top: mean trajectory. Bottom: instantaneous slope. Fixed τij∼TN⁡(1,0.012;0,6)\tau_{ij} \sim\operatorname{TN}\left(1,0.01^{2};0,6\right) with σκ,j∈{0.1,10,20}\sigma_{\kappa,j} \in\{0.1,10,20\}.

Figure 3. Figure 3: Illustrative marginal mean trajectories and instantaneous slopes under the smooth changepoint model. In both grouped panels, α0j=5\alpha_{0j}=5, β1j=−2.45\beta_{1j}=-2.45, β2j=2.10\beta_{2j}=2.10, μτ,j=1\mu_{\tau,j}=1, and μκ,j=2\mu_{\kappa,j}=2. The upper plot in each grouped panel shows μmarg,j(t)\mu_{\mathrm{marg},j}(t), and the lower plot shows smarg,j(t)s_{\mathrm{marg},j}(t).

Abrupt changepoint model as a limiting case

The abrupt two-slope model is obtained by taking κ→∞\kappa\to\infty, so that hκ(x)h_\kappa(x) converges to the hard hinge x+x^{+}. The corresponding baseline-centered hard-hinge kernel is

Hj∗(t)=Eτ~j[(t−τ~j)+−(−τ~j)+].H_j^{*}(t)=\mathbb{E}_{\tilde{\tau}_j}\left[(t-\tilde{\tau}_j)^{+}-(-\tilde{\tau}_j)^{+}\right].

In the nonnegative changepoint setting used in the ACTG analysis, (−τ~j)+=0(-\tilde{\tau}_j)^+ = 0, and this reduces to Eτ~j[(t−τ~j)+]E_{\tilde{\tau}_j}\left[(t-\tilde{\tau}_j)^+\right]. With

zt,j=t−μτ,jστ,j,z_{t,j} = \frac{t-\mu_{\tau,j}}{\sigma_{\tau,j}},

the baseline-centered hard-hinge kernel under the truncated normal law in (16), with Lτ,j≥0L_{\tau,j} \ge0, is

Hj∗(t)={0,t≤Lτ,j,(t−μτ,j){Φ(zt,j)−Φ(zL,j)}+στ,j{ϕ(zt,j)−ϕ(zL,j)}Zτ,j,Lτ,j<t<Rτ,j,t−μτ,j+στ,jϕ(zU,j)−ϕ(zL,j)Zτ,j,t≥Rτ,j.H_j^*(t) = \begin{cases} 0, & t \le L_{\tau,j},\\ \frac{(t-\mu_{\tau,j})\left\{\Phi(z_{t,j})-\Phi(z_{L,j})\right\}+\sigma_{\tau,j}\left\{\phi(z_{t,j})-\phi(z_{L,j})\right\}}{Z_{\tau,j}}, & L_{\tau,j}<t<R_{\tau,j},\\ t-\mu_{\tau,j}+\sigma_{\tau,j}\frac{\phi(z_{U,j})-\phi(z_{L,j})}{Z_{\tau,j}}, & t \ge R_{\tau,j}. \end{cases}

Its derivative is the abrupt marginal slope gate

Gj∗(t)=ddtHj∗(t)={0,t≤Lτ,j,Φ(zt,j)−Φ(zL,j)Zτ,j,Lτ,j<t<Rτ,j,1,t≥Rτ,j.G_j^*(t)=\frac{\mathrm{d}}{\mathrm{d}t}H_j^*(t)= \begin{cases} 0, & t \le L_{\tau,j},\\ \frac{\Phi(z_{t,j})-\Phi(z_{L,j})}{Z_{\tau,j}}, & L_{\tau,j}<t<R_{\tau,j},\\ 1, & t \ge R_{\tau,j}. \end{cases}

The abrupt marginal mean and slope are therefore

μmarg,j∗(t)=α0j+β1jt+β2jHj∗(t),(23)\mu_{\mathrm{marg},j}^*(t)=\alpha_{0j}+\beta_{1j}t+\beta_{2j}H_j^*(t), \tag*{(23)}

and

smarg,j∗(t)=β1j+β2jGj∗(t).(24)s_{\mathrm{marg},j}^*(t)=\beta_{1j}+\beta_{2j}G_j^*(t). \tag*{(24)}

If the changepoint distribution is untruncated normal, the corresponding baseline-centered hard-hinge kernel is

Hj∗(t)=(t−μτ,j)Φ(zt,j)+στ,jϕ(zt,j)−(−μτ,j)Φ(−μτ,jστ,j)−στ,jϕ(−μτ,jστ,j).H_j^*(t)=(t-\mu_{\tau,j})\Phi(z_{t,j})+\sigma_{\tau,j}\phi(z_{t,j}) -(-\mu_{\tau,j})\Phi\left(\frac{-\mu_{\tau,j}}{\sigma_{\tau,j}}\right)-\sigma_{\tau,j}\phi\left(\frac{-\mu_{\tau,j}}{\sigma_{\tau,j}}\right).

The corresponding slope gate is

Gj∗(t)=Φ(zt,j).G_j^*(t)=\Phi(z_{t,j}).

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: α0j=5.099\alpha_{0j} = 5.099, β1j=−4.697\beta_{1j} = -4.697, and β2j=4.563\beta_{2j} = 4.563. We also fix the pre-truncation locations of the changepoint and transition sharpness distributions to their posterior medians, μτ,j=0.436\mu_{\tau,j} = 0.436 and μκ,j=3.608\mu_{\kappa,j} = 3.608, respectively. These posterior summaries are reported in Supplementary Table 1. The pre-truncation locations are not generally equal to the corresponding truncated-normal means τˉj\bar{\tau}_j and κˉj\bar{\kappa}_j.

We then vary only the pre-truncation scale parameters, taking

στ,j∈{0.03,0.06,0.093,0.12,0.18,0.25},σκ,j∈{0.5,1.5,3.377,5}.\sigma_{\tau,j} \in\{0.03, 0.06, 0.093, 0.12, 0.18, 0.25\}, \qquad\sigma_{\kappa,j} \in\{0.5, 1.5, 3.377, 5\}.

The pair στ,j=0.093\sigma_{\tau,j} = 0.093 and σκ,j=3.377\sigma_{\kappa,j} = 3.377 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,

τ~j∼TN⁡(μτ,j,στ,j2;0,6),κ~j∼TN⁡(μκ,j,σκ,j2;0,∞).\tilde{\tau}_j \sim\operatorname{TN}\left(\mu_{\tau,j}, \sigma_{\tau,j}^{2}; 0, 6\right), \qquad\tilde{\kappa}_j \sim\operatorname{TN}\left(\mu_{\kappa,j}, \sigma_{\kappa,j}^{2}; 0, \infty\right).

For each (στ,j,σκ,j)(\sigma_{\tau,j}, \sigma_{\kappa,j}) combination, we evaluate the marginal mean trajectory from (11) on a dense grid t1,…,tMt_1, \ldots, t_M over [0,6][0, 6]. The inner expectation over τ~j\tilde{\tau}_j is computed using the closed-form truncated-normal mean kernel, and the remaining expectation over κ~j\tilde{\kappa}_j is computed using the deterministic midpoint quadrature in (22) with K=128K = 128 equal-probability points. We compare this marginal mean to the plug-in mean in (14), with τˉj\bar{\tau}_j and κˉj\bar{\kappa}_j recomputed as the corresponding truncated-normal means for each scenario.

We summarize the discrepancy on the log⁡10\log_{10} viral load scale using

RMS⁡μ=1M∑m=1M{μmarg,j(tm)−μcond,j(tm)}2,\operatorname{RMS}_{\mu} = \sqrt{\frac{1}{M}\sum_{m=1}^{M}\left\{\mu_{\mathrm{marg},j}(t_m)-\mu_{\mathrm{cond},j}(t_m)\right\}^{2}},

and

Max⁡μ=max⁡m∈{1,…,M}∣μmarg,j(tm)−μcond,j(tm)∣.\operatorname{Max}_{\mu} = \max_{m\in\{1,\ldots,M\}}\left|\mu_{\mathrm{marg},j}(t_m)-\mu_{\mathrm{cond},j}(t_m)\right|.

These are discrete L2L^{2}- and L∞L^{\infty}-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, (στ,j=0.093,σκ,j=3.377)(\sigma_{\tau,j} = 0.093, \sigma_{\kappa,j} = 3.377), the observed discrepancies are RMSμ≈0.287\mathrm{RMS}_{\mu} \approx0.287 and Maxμ≈0.412\mathrm{Max}_{\mu} \approx0.412 on the log⁡10\log_{10} 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 στ,j\sigma_{\tau,j}. The left panel shows RMSμ\mathrm{RMS}_{\mu} and the right panel shows Maxμ\mathrm{Max}_{\mu}, computed over a dense grid of times t∈[0,6]t \in[0, 6]. Curves correspond to different values of the pre-truncation transition sharpness scale parameter σκ,j\sigma_{\kappa,j}.

ACTG 315 model-based analysis

We now return to the ACTG 315 viral load data described in § 2. The outcome is log⁡10\log_{10} HIV-1 RNA (copies/mL), time is measured in months from baseline, and observations below 100 copies/mL are treated as left-censored at log⁡10(100)=2\log_{10}(100) = 2. Because ACTG 315 used a single multidrug antiretroviral regimen, it had a single treatment arm. We retain the arm index jj 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-tt 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 μmarg,j(t)\mu_{\mathrm{marg},j}(t) and smarg,j(t)s_{\mathrm{marg},j}(t) using (11) and (12). These quantities average over the fitted distributions of both τij\tau_{ij} and κij\kappa_{ij} 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 τij\tau_{ij} at its fitted truncated-normal mean, τˉj\bar{\tau}_j. 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 log⁡10\log_{10} 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 κij\kappa_{ij}. 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 log⁡10\log_{10} HIV-1 RNA (copies/mL) over time; panel (b) shows the instantaneous rate of change in log⁡10\log_{10} 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 log⁡10\log_{10} HIV-1 RNA process over time; panel (b) shows the instantaneous rate of change in log⁡10\log_{10} 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, LOOIC=−2elpdloo\mathrm{LOOIC} = -2\mathrm{elpd}_{\mathrm{loo}}. 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 elpdloo=−213.1\mathrm{elpd}_{\mathrm{loo}} = -213.1 compared with −234.2-234.2. This corresponds to a lower LOOIC for the smooth model, 426.1426.1 compared with 468.4468.4. The estimated difference in expected log predictive density (smooth minus abrupt) was 21.121.1 with a standard error of 7.07.0, indicating better observation-level predictive performance for the smooth changepoint model.

Changepoint Modelelpd⁡^loo\widehat{\operatorname{elpd}}_{\mathrm{loo}} Estimateelpd⁡^loo\widehat{\operatorname{elpd}}_{\mathrm{loo}} SELOOIC EstimateLOOIC SE
Abrupt-234.222.8468.445.5
Smooth-213.121.7426.143.3

Table 1. LOO cross-validation comparison of observation-level predictive fit. Columns report the approximate expected log predictive density elpd⁡^loo\widehat{\operatorname{elpd}}_{\mathrm{loo}} and the corresponding information criterion LOOIC =−2elpd⁡^loo= -2\widehat{\operatorname{elpd}}_{\mathrm{loo}}, each with its standard error. The estimated difference Δelpd⁡^loo\Delta\widehat{\operatorname{elpd}}_{\mathrm{loo}} (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 Zn=Φ−1(Un)Z_n = \Phi^{-1}(U_n). 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 τij\tau_{ij} or κij\kappa_{ij}. In the ACTG-like setting, the maximum difference between the marginal and plug-in mean trajectories is about 0.412 on the log⁡10\log_{10} 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 (α0ij,β1ij,β2ij)(\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}) and (τij,κij)(\tau_{ij}, \kappa_{ij}), as well as independence between τij\tau_{ij} and κij\kappa_{ij}. 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-tt 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 Hj(t∣κ)H_j(t \mid\kappa) in (10). The derivation is written for a fixed treatment arm jj and a fixed transition sharpness value κ>0\kappa> 0. Let τ~j\tilde{\tau}_j denote a generic changepoint from the arm-specific subject-level distribution. For compactness, define the auxiliary raw expectation

Rj(t∣κ)=Eτ~j[hκ(t−τ~j)].\mathcal{R}_j(t \mid\kappa) = \mathbb{E}_{\tilde{\tau}_j}\left[h_{\kappa}\left(t-\tilde{\tau}_j\right)\right].

The baseline-centered kernel used in the main text is then

Hj(t∣κ)=Rj(t∣κ)−Rj(0∣κ).(25)H_j(t\mid\kappa)=R_j(t\mid\kappa)-R_j(0\mid\kappa). \tag*{(25)}

Let

τ~j∼TN⁡(μτ,j,στ,j2;Lτ,j,Rτ,j),\widetilde{\tau}_j \sim\operatorname{TN}\left(\mu_{\tau,j},\sigma_{\tau,j}^{2};L_{\tau,j},R_{\tau,j}\right),

and write sj=στ,js_j=\sigma_{\tau,j}. For a given value of tt and fixed κ\kappa, define

mj=t−μτ,j,aj=κsj,bj=κmj,dj=1+aj2.m_j=t-\mu_{\tau,j},\qquad a_j=\kappa s_j,\qquad b_j=\kappa m_j,\qquad d_j=\sqrt{1+a_j^2}.

This is the same notation as in (17), with tt and κ\kappa fixed and the arguments suppressed. When the baseline value Rj(0∣κ)R_j(0\mid\kappa) is evaluated, the same definitions are used with t=0t=0. With

zL,j=Lτ,j−μτ,jsj,zU,j=Rτ,j−μτ,jsj,Zτ,j=Φ(zU,j)−Φ(zL,j),z_{L,j}=\frac{L_{\tau,j}-\mu_{\tau,j}}{s_j},\qquad z_{U,j}=\frac{R_{\tau,j}-\mu_{\tau,j}}{s_j},\qquad Z_{\tau,j}=\Phi(z_{U,j})-\Phi(z_{L,j}),

standardizing x=(τ~j−μτ,j)/sjx=(\widetilde{\tau}_j-\mu_{\tau,j})/s_j gives t−τ~j=mj−sjxt-\widetilde{\tau}_j=m_j-s_jx. Therefore,

Rj(t∣κ)=1Zτ,j∫zL,jzU,j{(mj−sjx)Φ(bj−ajx)+1κϕ(bj−ajx)}ϕ(x) dx.(26)R_j(t\mid\kappa)=\frac{1}{Z_{\tau,j}}\int_{z_{L,j}}^{z_{U,j}}\left\{(m_j-s_jx)\Phi(b_j-a_jx)+\frac{1}{\kappa}\phi(b_j-a_jx)\right\}\phi(x)\,\mathrm{d}x. \tag*{(26)}

Define the three integrals

I1,j=∫zL,jzU,jϕ(x)Φ(bj−ajx) dx,I_{1,j}=\int_{z_{L,j}}^{z_{U,j}}\phi(x)\Phi(b_j-a_jx)\,\mathrm{d}x,
I2,j=∫zL,jzU,jxϕ(x)Φ(bj−ajx) dx,I_{2,j}=\int_{z_{L,j}}^{z_{U,j}}x\phi(x)\Phi(b_j-a_jx)\,\mathrm{d}x,

and

I3,j=∫zL,jzU,jϕ(x)ϕ(bj−ajx) dx.I_{3,j}=\int_{z_{L,j}}^{z_{U,j}}\phi(x)\phi(b_j-a_jx)\,\mathrm{d}x.

The first integral is obtained from the bivariate normal identity

∫−∞zϕ(x)Φ(bj−ajx) dx=Φ2(z,bjdj;ajdj),\int_{-\infty}^{z}\phi(x)\Phi(b_j-a_jx)\,\mathrm{d}x=\Phi_2\left(z,\frac{b_j}{d_j};\frac{a_j}{d_j}\right),

so that

I1,j=Φ2(zU,j,bjdj;ajdj)−Φ2(zL,j,bjdj;ajdj).(27)I_{1,j}=\Phi_2\left(z_{U,j},\frac{b_j}{d_j};\frac{a_j}{d_j}\right)-\Phi_2\left(z_{L,j},\frac{b_j}{d_j};\frac{a_j}{d_j}\right). \tag*{(27)}

This immediately gives the slope kernel

Gj(t∣κ)=Eτ~j[Φ(κ(t−τ~j))]=I1,jZτ,j,G_j(t\mid\kappa)=\mathbb{E}_{\widetilde{\tau}_j}\left[\Phi\left(\kappa\left(t-\widetilde{\tau}_j\right)\right)\right]=\frac{I_{1,j}}{Z_{\tau,j}},

which is the expression reported in (18).

Integration by parts gives

I2,j=[−ϕ(z)Φ(bj−ajz)]z=zL,jzU,j−ajI3,j.(28)I_{2,j}=\left[-\phi(z)\Phi\left(b_j-a_jz\right)\right]_{z=z_{L,j}}^{z_{U,j}}-a_jI_{3,j}. \tag*{(28)}

Completing the square in the product of the two normal densities gives

I3,j=1djϕ(bjdj){Φ[(zU,j−ajbj1+aj2)dj]−Φ[(zL,j−ajbj1+aj2)dj]}.(29)I_{3,j}=\frac{1}{d_j}\phi\left(\frac{b_j}{d_j}\right)\left\{\Phi\left[\left(z_{U,j}-\frac{a_jb_j}{1+a_j^2}\right)d_j\right]-\Phi\left[\left(z_{L,j}-\frac{a_jb_j}{1+a_j^2}\right)d_j\right]\right\}. \tag*{(29)}

Substituting (27), (28), and (29) into (26) yields

Rj(t∣κ)=1Zτ,j{mjI1,j+sj[ϕ(zU,j)Φ(bj−ajzU,j)−ϕ(zL,j)Φ(bj−ajzL,j)]+(1κ+κsj2)I3,j}.(30)R_j(t\mid\kappa)=\frac{1}{Z_{\tau,j}}\left\{m_jI_{1,j}+s_j\left[\phi(z_{U,j})\Phi(b_j-a_jz_{U,j})-\phi(z_{L,j})\Phi(b_j-a_jz_{L,j})\right]+\left(\frac{1}{\kappa}+\kappa s_j^2\right)I_{3,j}\right\}. \tag*{(30)}

Combining (30) with (25) gives the closed-form baseline-centered kernel Hj(t∣κ)H_j(t\mid\kappa) used in the main text.

In the untruncated case, zL,j=−∞z_{L,j}=-\infty, zU,j=∞z_{U,j}=\infty, and Zτ,j=1Z_{\tau,j}=1. The boundary term in (30) vanishes, I1,j=Φ(bj/dj)I_{1,j}=\Phi(b_j/d_j), and I3,j=dj−1ϕ(bj/dj)I_{3,j}=d_j^{-1}\phi(b_j/d_j). Hence

Rj(t∣κ)=mjΦ(bjdj)+(1κ+κsj2)1djϕ(bjdj),(31)R_j(t\mid\kappa)=m_j\Phi\left(\frac{b_j}{d_j}\right)+\left(\frac{1}{\kappa}+\kappa s_j^2\right)\frac{1}{d_j}\phi\left(\frac{b_j}{d_j}\right), \tag*{(31)}

where

bjdj=mjsj2+κ−2,(1κ+κsj2)1dj=sj2+κ−2.\frac{b_j}{d_j}=\frac{m_j}{\sqrt{s_j^2+\kappa^{-2}}},\qquad\left(\frac{1}{\kappa}+\kappa s_j^2\right)\frac{1}{d_j}=\sqrt{s_j^2+\kappa^{-2}}.

Centering (31) at t=0t=0 gives (19). Differentiating gives

Gj(t∣κ)=Φ(mjsj2+κ−2),G_j(t\mid\kappa)=\Phi\left(\frac{m_j}{\sqrt{s_j^2+\kappa^{-2}}}\right),

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 jj for consistency with § 3 and § 4). The subject-level mean structure, the smooth hinge function hκ(⋅)h_\kappa(\cdot), the interpretation of (α0ij,β1ij,β2ij)(\alpha_{0ij},\beta_{1ij},\beta_{2ij}), and the distributions for τij\tau_{ij} and κij\kappa_{ij} 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 (t−τij)+(t-\tau_{ij})^+ because $\tau_{ij}\geq 0, and the transition sharpness parameter κij\kappa_{ij} is omitted.

Skew-tt residual distribution

We instantiate the generic residual model in (4) for the ACTG 315 analysis by taking fεf_{\varepsilon} to be the skew-tt density proposed by Hansen [16], with arm-specific residual parameters θj=(σj,Λj,νj)\boldsymbol{\theta}_j = (\sigma_j, \Lambda_j, \nu_j).

Let YijkY_{ijk} denote the observed log⁡10\log_{10} viral load for subject ii in arm jj at time tijkt_{ijk} and let Yijk∗Y_{ijk}^{*} denote the latent uncensored value. Conditional on the subject-specific parameters and on the arm-level residual parameters, we model

Yijk∗∣α0ij,β1ij,β2ij,τij,κij,σj,Λj,νj∼Skew⁡-t(μijk,σj,Λj,νj).Y_{ijk}^{*} \mid\alpha_{0ij}, \beta_{1ij}, \beta_{2ij}, \tau_{ij}, \kappa_{ij}, \sigma_j, \Lambda_j, \nu_j \sim\operatorname{Skew}\text{-}t\left(\mu_{ijk}, \sigma_j, \Lambda_j, \nu_j\right).

where μijk=μij(tijk)\mu_{ijk} = \mu_{ij}(t_{ijk}) with μij(t)\mu_{ij}(t) given in (2) for the smooth model and in the corresponding hard-hinge form for the abrupt model, σj>0\sigma_j > 0 is a residual scale parameter for arm jj, Λj∈(−1,1)\Lambda_j \in(-1, 1) controls asymmetry, and νj>2\nu_j > 2 controls tail thickness.

Write the standardized residual

zijk=Yijk∗−μijkσj.z_{ijk} = \frac{Y_{ijk}^{*} - \mu_{ijk}}{\sigma_j}.

Following the piecewise skew-tt parameterization used in the analysis, define

Cc,j=Γ(νj+12)π(νj−2)Γ(νj2),Aj=4ΛjCc,j(νj−2)νj−1,Bj=1+3Λj2−Aj2,C_{c,j} = \frac{\Gamma\left(\frac{\nu_j+1}{2}\right)}{\sqrt{\pi(\nu_j-2)}\Gamma\left(\frac{\nu_j}{2}\right)}, \qquad A_j = \frac{4\Lambda_j C_{c,j}(\nu_j-2)}{\nu_j-1}, \qquad B_j = \sqrt{1+3\Lambda_j^2-A_j^2},

and

Kknot,j=−AjBj,Kfac,j=νjνj−2.K_{\mathrm{knot},j} = -\frac{A_j}{B_j}, \qquad K_{\mathrm{fac},j} = \sqrt{\frac{\nu_j}{\nu_j-2}}.

Let

z~ijk=Bjzijk+Aj.\widetilde{z}_{ijk} = B_j z_{ijk} + A_j.

Define

gL,j(zijk)=1+1νj−2(z~ijk1−Λj)2,gR,j(zijk)=1+1νj−2(z~ijk1+Λj)2.g_{L,j}(z_{ijk}) = 1 + \frac{1}{\nu_j-2}\left(\frac{\widetilde{z}_{ijk}}{1-\Lambda_j}\right)^2, \qquad g_{R,j}(z_{ijk}) = 1 + \frac{1}{\nu_j-2}\left(\frac{\widetilde{z}_{ijk}}{1+\Lambda_j}\right)^2.

The resulting skew-tt probability density function is

fST,j(Yijk∗∣μijk,σj,Λj,νj)=BjCc,jσj{gL,j(zijk)−(νj+1)/2,zijk≤Kknot,j,gR,j(zijk)−(νj+1)/2,zijk>Kknot,j.(32)f_{\mathrm{ST},j}\left(Y_{ijk}^{*} \mid\mu_{ijk}, \sigma_j, \Lambda_j, \nu_j\right) = \frac{B_j C_{c,j}}{\sigma_j} \begin{cases} g_{L,j}(z_{ijk})^{-(\nu_j+1)/2}, & z_{ijk} \le K_{\mathrm{knot},j},\\ g_{R,j}(z_{ijk})^{-(\nu_j+1)/2}, & z_{ijk} > K_{\mathrm{knot},j}. \end{cases} \tag*{(32)}

For any threshold uu, we define

zijk(u)=u−μijkσj,z_{ijk}^{(u)}=\frac{u-\mu_{ijk}}{\sigma_j},

and write Tνj(⋅)T_{\nu_j}(\cdot) for the CDF of a standard Student tt distribution with νj\nu_j degrees of freedom. The skew-tt CDF is

FST,j(u∣μijk,σj,Λj,νj)={(1−Λj)Tνj(Kfac,jBjzijk(u)+Aj1−Λj),zijk(u)≤Kknot,j,1−(1+Λj)Tνj(Kfac,j−(Bjzijk(u)+Aj)1+Λj),zijk(u)>Kknot,j.(33)F_{\mathrm{ST},j}(u\mid\mu_{ijk},\sigma_j,\Lambda_j,\nu_j)= \begin{cases} (1-\Lambda_j)T_{\nu_j}\left(K_{\mathrm{fac},j}\frac{B_jz_{ijk}^{(u)}+A_j}{1-\Lambda_j}\right), & z_{ijk}^{(u)}\le K_{\mathrm{knot},j},\\ 1-(1+\Lambda_j)T_{\nu_j}\left(K_{\mathrm{fac},j}\frac{-(B_jz_{ijk}^{(u)}+A_j)}{1+\Lambda_j}\right), & z_{ijk}^{(u)}>K_{\mathrm{knot},j}. \end{cases} \tag*{(33)}

This residual specification allows arm-specific heavy tails (small νj\nu_j), arm-specific asymmetry (Λj≠0\Lambda_j\ne0), and different residual scales across arms, and reduces to a symmetric standardized Student-tt distribution for Λj=0\Lambda_j=0.

Censoring at the lower limit of quantification

Let uijku_{ijk} denote the LLOQ on the log⁡10\log_{10} scale (for ACTG 315, uijk=2u_{ijk}=2 for all i,j,ki,j,k). We observe

Yijk=max⁡(Yijk∗,uijk),Y_{ijk}=\max\left(Y_{ijk}^{*},u_{ijk}\right),

and define cijk=1c_{ijk}=1 if Yijk∗Y_{ijk}^{*} is observed (uncensored) and cijk=0c_{ijk}=0 if the measurement is reported only as below quantification (left censored at uijku_{ijk}). The likelihood contribution of observation (i,j,k)(i,j,k) is

ℓijk=[fST,j(Yijk∣μijk,σj,Λj,νj)]cijk[FST,j(uijk∣μijk,σj,Λj,νj)]1−cijk.(34)\ell_{ijk}=\left[f_{\mathrm{ST},j}\left(Y_{ijk}\mid\mu_{ijk},\sigma_j,\Lambda_j,\nu_j\right)\right]^{c_{ijk}}\left[F_{\mathrm{ST},j}\left(u_{ijk}\mid\mu_{ijk},\sigma_j,\Lambda_j,\nu_j\right)\right]^{1-c_{ijk}}. \tag*{(34)}

The subject-level likelihood is

Li=∏k=1nijℓijk,\mathcal{L}_i=\prod_{k=1}^{n_{ij}}\ell_{ijk},

and the conditional data likelihood has the same product form as in (5), with the observation-level contribution replaced by the censored skew-tt contribution in (34).

Priors on residual, changepoint, and smoothness terms

Arm-specific residual parameters are given weakly informative priors:

σj∼t3+(0,sσ),Λj∼Uniform⁡(−1,1),νj=2+ξj,ξj∼Gamma⁡(2,ηj),ηj∼Exp⁡(1).(35)\begin{aligned} \sigma_j &\sim t_3^+(0, s_\sigma),\\ \Lambda_j &\sim\operatorname{Uniform}(-1,1),\\ \nu_j &= 2+\xi_j,\\ \xi_j &\sim\operatorname{Gamma}(2,\eta_j),\\ \eta_j &\sim\operatorname{Exp}(1). \tag*{(35)} \end{aligned}

Here, t3+(0,sσ)t_3^+(0,s_\sigma) denotes a Student-tt distribution with 3 degrees of freedom, location 0, and scale sσs_\sigma, truncated to (0,∞)(0,\infty) (a half-t3t_3 prior). In the ACTG 315 implementation, we take sσ=2s_\sigma=\sqrt{2}. The notation Gamma⁡(2,ηj)\operatorname{Gamma}(2,\eta_j) refers to a gamma distribution with shape 2 and rate parameter ηj\eta_j, and Exp⁡(1)\operatorname{Exp}(1) denotes an exponential distribution with rate 1. Integrating out ξj\xi_j and ηj\eta_j yields the implied marginal prior for νj\nu_j, with density

fνj(ν)=2(ν−2)(ν−1)3,ν>2,f_{\nu_j}(\nu)=\frac{2(\nu-2)}{(\nu-1)^3},\qquad\nu>2,

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 jj,

μτ,j∼N(0,1000),στ,j∼t3+(0,sσ),μκ,j∼N(0,1000),σκ,j∼t3+(0,sσ),(36)\mu_{\tau,j}\sim\mathcal{N}(0,1000),\qquad\sigma_{\tau,j}\sim t_3^+(0,s_\sigma),\qquad\mu_{\kappa,j}\sim\mathcal{N}(0,1000),\qquad\sigma_{\kappa,j}\sim t_3^+(0,s_\sigma), \tag*{(36)}

so that the same half-t3t_3 scale prior is reused for the changepoint and smoothness standard deviations. The individual changepoints and transition sharpness parameters satisfy

τij∼TN⁡(μτ,j,στ,j2;0,τmax⁡),κij∼TN⁡(μκ,j,σκ,j2;0,∞),\tau_{ij}\sim\operatorname{TN}\left(\mu_{\tau,j},\sigma_{\tau,j}^2;0,\tau_{\max}\right),\qquad\kappa_{ij}\sim\operatorname{TN}\left(\mu_{\kappa,j},\sigma_{\kappa,j}^2;0,\infty\right),

independently across subjects, and independently of each other within subject, conditionally on μτ,j\mu_{\tau,j}, στ,j2\sigma_{\tau,j}^2, μκ,j\mu_{\kappa,j}, and σκ,j2\sigma_{\kappa,j}^2. In the ACTG 315 analysis, τmax⁡=6\tau_{\max}=6 months. In the abrupt changepoint model, κij\kappa_{ij} and its hyperparameters (μκ,j,σκ,j2)(\mu_{\kappa,j},\sigma_{\kappa,j}^2) are omitted.

For the random effects distribution of (α0ij,β1ij,β2ij)(\alpha_{0ij},\beta_{1ij},\beta_{2ij}) in (3), we place weakly informative priors on the arm-level means and covariance. Specifically,

α0j, β1j, β2j∼N(0,1000)\alpha_{0j},\ \beta_{1j},\ \beta_{2j}\sim\mathcal{N}(0,1000)

independently, and we parameterize the precision matrix Σv,j−1\boldsymbol{\Sigma}_{v,j}^{-1} via its 3×33\times3 lower triangular Cholesky factor LjL_j, so that Σv,j−1=LjLjT\boldsymbol{\Sigma}_{v,j}^{-1}=L_jL_j^{\mathsf{T}} with

Lj=(Lj,1100Lj,21Lj,220Lj,31Lj,32Lj,33).L_j=\begin{pmatrix} L_{j,11} & 0 & 0 \\ L_{j,21} & L_{j,22} & 0 \\ L_{j,31} & L_{j,32} & L_{j,33} \end{pmatrix}.

The diagonal entries Lj,11,Lj,22,Lj,33L_{j,11},L_{j,22},L_{j,33} receive independent t3+(0,sσ)t_3^+ (0,s_{\sigma}) priors and the strict subdiagonal entries Lj,21,Lj,31,Lj,32L_{j,21},L_{j,31},L_{j,32} receive independent N(0,1000)\mathcal{N}(0,1000) priors. Conditional on (α0j,β1j,β2j,Σv,j)(\alpha_{0j},\beta_{1j},\beta_{2j},\boldsymbol{\Sigma}_{v,j}), the random effects (α0ij,β1ij,β2ij)(\alpha_{0ij},\beta_{1ij},\beta_{2ij}) are independent across subjects.

Posterior and computation

Let Θ\boldsymbol{\Theta} collect the fixed effects, random effects, and hyperparameters across all arms and subjects. For each arm jj, this includes the arm-level means for (α0ij,β1ij,β2ij)(\alpha_{0ij},\beta_{1ij},\beta_{2ij}), the lower-triangular Cholesky factor LjL_j of the random effects precision matrix, the parameters of the truncated normal laws for τij\tau_{ij} and (in the smooth model) κij\kappa_{ij}, and the residual parameters σj,Λj,νj\sigma_j,\Lambda_j,\nu_j. Writing

Y={Yijk}i,j,k,c={cijk}i,j,k,t={tijk}i,j,k,u={uijk}i,j,k,Y=\{Y_{ijk}\}_{i,j,k}, \qquad c=\{c_{ijk}\}_{i,j,k}, \qquad t=\{t_{ijk}\}_{i,j,k}, \qquad u=\{u_{ijk}\}_{i,j,k},

and defining

θj=(σj,Λj,νj)T,\boldsymbol{\theta}_j=(\sigma_j,\Lambda_j,\nu_j)^{\mathsf{T}},
νij=(α0ij,β1ij,β2ij)T,νj=(α0j,β1j,β2j)T,\boldsymbol{\nu}_{ij}=(\alpha_{0ij},\beta_{1ij},\beta_{2ij})^{\mathsf{T}}, \qquad\boldsymbol{\nu}_j=(\alpha_{0j},\beta_{1j},\beta_{2j})^{\mathsf{T}},

the joint posterior density for the smooth changepoint model is

\begin{aligned} p(\boldsymbol{\Theta}\mid Y,c,t,u) \propto{}& \prod_{j=1}^{J}\prod_{i=1}^{N_j}\prod_{k=1}^{n_{ij}} \left\{ f_{\mathrm{ST},j}(Y_{ijk}\mid\mu_{ijk},\boldsymbol{\theta}_j)^{c_{ijk}} \\ &\qquad\qquad\times F_{\mathrm{ST},j}(u_{ijk}\mid\mu_{ijk},\boldsymbol{\theta}_j)^{1-c_{ijk}} \right\} \\ &\times\prod_{j=1}^{J} \left[ p(\boldsymbol{\nu}_j)p(L_j)p(\mu_{\tau,j},\sigma_{\tau,j})p(\mu_{\kappa,j},\sigma_{\kappa,j})p(\boldsymbol{\theta}_j) \right. \\ &\qquad\qquad\times\prod_{i=1}^{N_j} p(\boldsymbol{\nu}_{ij}\mid\boldsymbol{\nu}_j,L_j) p(\tau_{ij}\mid\mu_{\tau,j},\sigma_{\tau,j}^{2}) \\ &\qquad\qquad\left. \times p(\kappa_{ij}\mid\mu_{\kappa,j},\sigma_{\kappa,j}^{2}) \right]. \end{aligned}

where μijk=μij(tijk)\mu_{ijk}=\mu_{ij}(t_{ijk}) is given by (2) in the smooth model, and fST,j(⋅∣μijk,θj)f_{\mathrm{ST},j}(\cdot\mid\mu_{ijk},\boldsymbol{\theta}_j) and FST,j(⋅∣μijk,θj)F_{\mathrm{ST},j}(\cdot\mid\mu_{ijk},\boldsymbol{\theta}_j) denote the skew-tt density and CDF defined in (32) and (33). The matrix LjL_j is the lower-triangular Cholesky factor of the random effects precision matrix, so that Σv,j−1=LjLjT\boldsymbol{\Sigma}_{v,j}^{-1}=L_jL_j^{\mathsf{T}}. The conditional density p(νij∣νj,Lj)p(\boldsymbol{\nu}_{ij}\mid\boldsymbol{\nu}_j,L_j) is the multivariate normal random effects density with mean νj\boldsymbol{\nu}_j and covariance matrix Σν,j\mathbf{\Sigma}_{\nu,j} implied by LjL_j. The prior factors follow (35) and (36), together with the random effects specification in (3); the conditional densities for τij\tau_{ij} and κij\kappa_{ij} are the corresponding truncated normal densities. In the abrupt changepoint model, the hard-hinge counterpart of (2) is used and the terms involving κij\kappa_{ij} and (μκ,j,σκ,j2)(\mu_{\kappa,j},\sigma^2_{\kappa,j}) are omitted. For νj\nu_j, this hierarchical construction is equivalent to using the implied marginal prior with density fνj(ν)f_{\nu_j}(\nu) after integrating out the auxiliary rate parameter ηj\eta_j and using ξj=νj−2\xi_j=\nu_j-2.

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 log⁡10\log_{10} 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 α0ij\alpha_{0ij}, the corresponding early slope initializes β1ij\beta_{1ij}, and the difference between the late and early slopes initializes β2ij\beta_{2ij}. We set τij=1\tau_{ij}=1 month for all subjects, initialize κij\kappa_{ij} at moderate positive values in the smooth model, and initialize the arm-level means (α0j,β1j,β2j)(\alpha_{0j},\beta_{1j},\beta_{2j}) 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 K=32K=32 equal-probability quadrature points for each retained posterior draw. From each retained posterior draw of the smooth model, we compute the marginal mean trajectory μmarg,j(t)\mu_{\mathrm{marg},j}(t) and marginal slope smarg,j(t)s_{\mathrm{marg},j}(t) 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 tt in the ACTG 315 study population. We summarize these functions pointwise in tt 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 YijkY_{ijk} denote the kthk^{\mathrm{th}} observed viral load value on the log⁡10\log_{10} scale for subject ii in arm jj, with corresponding quantification limit uijku_{ijk} and censoring indicator cijkc_{ijk}, where cijk=1c_{ijk}=1 for uncensored measurements and cijk=0c_{ijk}=0 for values reported only as below the LLOQ. For a given model and posterior draw s=1,…,Ss=1,\ldots,S, let μijk(s)\mu_{ijk}^{(s)} be the implied mean trajectory at the observation time for YijkY_{ijk}, conditional on the corresponding sampled subject-specific parameters, and let θj(s)\boldsymbol{\theta}_{j}^{(s)} collect the residual parameters (σj,Λj,νj)(\sigma_j,\Lambda_j,\nu_j) for arm jj. Using the skew-tt density fST,jf_{\mathrm{ST},j} and CDF FST,jF_{\mathrm{ST},j} defined in Section B.1, the observation-level log-likelihood contribution is

ℓijk(s)=cijklog⁡[fST,j(Yijk∣μijk(s),θj(s))]+(1−cijk)log⁡[FST,j(uijk∣μijk(s),θj(s))].\ell_{ijk}^{(s)}=c_{ijk}\log\left[f_{\mathrm{ST},j}\left(Y_{ijk}\mid\mu_{ijk}^{(s)},\boldsymbol{\theta}_{j}^{(s)}\right)\right]+(1-c_{ijk})\log\left[F_{\mathrm{ST},j}\left(u_{ijk}\mid\mu_{ijk}^{(s)},\boldsymbol{\theta}_{j}^{(s)}\right)\right].

For each model, we collect these contributions into an S×NobsS\times N_{\mathrm{obs}} matrix

ℓ=(ℓn(s)),s=1,…,S,n=1,…,Nobs,\ell=\left(\ell_{n}^{(s)}\right),\qquad s=1,\ldots,S,\qquad n=1,\ldots,N_{\mathrm{obs}},

where NobsN_{\mathrm{obs}} is the total number of observations across all subjects and arms, and the single index nn enumerates the triples (i,j,k)(i,j,k).

Given ℓ\ell, PSIS-LOO provides an importance-sampling approximation to the LOO expected log predictive density, which we denote by elpd⁡^loo\widehat{\operatorname{elpd}}_{\mathrm{loo}}, and the associated LOO information criterion LOOIC =−2elpd⁡^loo=-2\widehat{\operatorname{elpd}}_{\mathrm{loo}} 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 s=1,…,Ss=1,\ldots,S and each arm jj, we first generated a new set of subject-specific parameters from the random effects and changepoint hierarchies, then simulated replicated latent outcomes Yijk∗,rep(s)Y_{ijk}^{*,\mathrm{rep}(s)} from the skew-tt observation model. The same LLOQ uijku_{ijk} was then applied,

Yijkrep(s)=max⁡{Yijk∗,rep(s),uijk},Y_{ijk}^{\mathrm{rep}(s)}=\max\left\{Y_{ijk}^{*,\mathrm{rep}(s)},u_{ijk}\right\},

so that the replicated data share the same observed-scale censoring mechanism as the original measurements.

The collection of replicated datasets {Yijkrep(s)}\left\{Y_{ijk}^{\mathrm{rep}(s)}\right\} 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 (0,1)(0,1) under correct posterior predictive calibration. We summarize these residuals using QQ plots that compare their empirical quantiles with the Uniform (0,1)(0,1) 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 NobsN_{\mathrm{obs}} observations by a single index nn enumerating (i,j,k)(i,j,k), and write YnY_n for the observed value with replicated values Ynrep(s)Y_n^{\mathrm{rep}(s)}, s=1,…,Ss = 1, \ldots, S. For each nn, we define the empirical lower and upper predictive distribution functions

F^n−(y)=1S∑s=1SI{Ynrep(s)<y},F^n(y)=1S∑s=1SI{Ynrep(s)≤y},\widehat{F}_n^{-}(y) = \frac{1}{S}\sum_{s=1}^{S} \mathbb{I}\left\{Y_n^{\mathrm{rep}(s)} < y\right\}, \qquad\widehat{F}_n(y) = \frac{1}{S}\sum_{s=1}^{S} \mathbb{I}\left\{Y_n^{\mathrm{rep}(s)} \le y\right\},

and construct the randomized PIT value

Un=F^n−(Yn)+Vn{F^n(Yn)−F^n−(Yn)},Vn∼Uniform⁡(0,1),U_n = \widehat{F}_n^{-}(Y_n) + V_n\left\{\widehat{F}_n(Y_n) - \widehat{F}_n^{-}(Y_n)\right\}, \qquad V_n \sim\operatorname{Uniform}(0,1),

independently across nn. Because the censoring rule Yn=max⁡{Yn∗,un}Y_n = \max\{Y_n^*, u_n\} 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 {Un}\{U_n\} is approximately Uniform (0, 1), and the transformed residuals Zn=Φ−1(Un)Z_n = \Phi^{-1}(U_n) 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

ParameterAbruptSmooth
Est.95% BCIEst.95% BCI
α0,1\alpha_{0,1}5.092[4.909; 5.274]5.099[4.921; 5.275]
β1,1\beta_{1,1}−3.750[−4.107; −3.441]−4.697[−5.542; −4.102]
β2,1\beta_{2,1}3.484[3.158; 3.841]4.563[3.928; 5.423]
β1,1+β2,1\beta_{1,1} + \beta_{2,1}−0.267[−0.419; −0.123]−0.137[−0.310; 0.026]
μτ,1\mu_{\tau,1}0.530[0.467; 0.593]0.436[0.341; 0.517]
στ,1\sigma_{\tau,1}0.099[0.033; 0.154]0.093[0.043; 0.147]
τˉ1\bar{\tau}_{1}0.530[0.467; 0.593]0.436[0.342; 0.517]
SD (τ~1\tilde{\tau}_{1})0.099[0.033; 0.154]0.093[0.043; 0.146]
μκ,1\mu_{\kappa,1}3.608[−11.340; 6.909]
σκ,1\sigma_{\kappa,1}3.377[1.263; 13.450]
κˉ1\bar{\kappa}_{1}4.789[2.898; 9.484]
SD (κ~1\tilde{\kappa}_{1})2.775[1.225; 6.880]
σ1\sigma_{1}0.624[0.411; 1.461]0.463[0.331; 1.043]
Λ1\Lambda_{1}0.253[0.003; 0.482]0.209[−0.034; 0.449]
ν1\nu_{1}2.323[2.047; 3.148]2.542[2.077; 3.836]
SD (α0i1\alpha_{0i1})0.544[0.431; 0.700]0.540[0.428; 0.693]
SD (β1i1\beta_{1i1})0.290[0.077; 0.735]0.257[0.074; 0.642]
SD (β2i1\beta_{2i1})0.393[0.083; 0.936]0.384[0.095; 0.887]
ρα0,β1\rho_{\alpha_{0},\beta_{1}}0.101[−0.704; 0.911]−0.299[−0.942; 0.832]
ρα0,β2\rho_{\alpha_{0},\beta_{2}}−0.214[−0.901; 0.532]0.185[−0.697; 0.823]
ρβ1,β2\rho_{\beta_{1},\beta_{2}}−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 μτ,1\mu_{\tau,1} and στ,1\sigma_{\tau,1} are the pre-truncation location and scale parameters for the subject-level changepoint distribution, and μκ,1\mu_{\kappa,1} and σκ,1\sigma_{\kappa,1} are the corresponding pre-truncation location and scale parameters for the subject-level transition sharpness distribution. The quantities τˉ1\bar{\tau}_{1}, κˉ1\bar{\kappa}_{1}, SD (τ~1\tilde{\tau}_{1}), and SD (κ~1\tilde{\kappa}_{1}) are the derived means and standard deviations of the fitted truncated normal distributions. The quantities SD (α0i1\alpha_{0i1}), SD (β1i1\beta_{1i1}), and SD (β2i1\beta_{2i1}) are the derived standard deviations of the random effects from Σv,1\boldsymbol{\Sigma}_{v,1}, and ρα0,β1\rho_{\alpha_{0},\beta_{1}}, ρα0,β2\rho_{\alpha_{0},\beta_{2}}, and ρβ1,β2\rho_{\beta_{1},\beta_{2}} 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 log⁡10\log_{10} HIV-1 RNA values, and open triangles show measurements censored at the LLOQ, plotted at log⁡10(100)=2\log_{10}(100) = 2. 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. xx-axis: Months since baseline. yy-axis: log⁡10\log_{10} 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. [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. [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. [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. [4]Billingsley, P.: Probability and Measure, 3rd edn. John Wiley & Sons, New York (1995)
  5. [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. [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
  7. [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
  8. [9]Capuano, A.W., Wilson, R.S., Leur­gans, 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
  9. [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
  10. [11]Davidian, M., Giltinan, D.M.: Nonlinear Models for Repeated Measurement Data. Chapman & Hall/CRC, Boca Raton, London, New York, Washington, D.C. (1995)
  11. [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
  12. [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
  13. [14]Folland, G.B.: Real Analysis: Modern Techniques and Their Applications, 2nd edn. John Wiley & Sons, New York (1999)
  14. [16]Hansen, B.E.: Autoregressive conditional density estimation. International Economic Review 35(3), 705–730 (1994) https://doi.org/10.2307/2527081
  15. [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
  16. [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
  17. [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
  18. [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
  19. [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
  20. [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
  21. [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
  22. [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
  23. [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
  24. [28]Plummer, M.: JAGS Version 4.3.0 User Manual. (2017). http://mcmc-jags.sourceforge.net/
  25. [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
  26. [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
  27. [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
  28. [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
  29. [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
  30. [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
  31. [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.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type