Analysis of Stepped-Wedge Randomised Cluster Trial using a generalized pairwise comparison approach : a simulation study Publication type: Article Type Journal: Journal Volume: 00 Yohan Bard, Emilie Presles, Marc Buyse, Silvy Laporte, Paul Zufferey, Frederikus A. Klok, Olivier Sanchez, Francis Couturaud, Edouard Ollier, Taylor M, Lauritzen P, Erath C, Mittal R Abstract Stepped-wedge cluster randomised trials (SW-CRTs) increasingly evaluate complex interventions, yet methodological guidance for analysing composite endpoints using generalized pairwise comparisons (GPC) remains limited. This work investigates the performance of several GPC-based estimators in the presence of clustering, temporal trends, and varying correlation structures typical of SW-CRTs. We conducted an extensive simulation study covering a range of intraclass correlations (ICC), cluster autocorrelation coefficients (CAC), time effects, and treatment effect sizes. Eight analytical approaches were compared, including unadjusted estimators, cluster-stratified win odds, mixed-effects models applied to cluster–period win odds, and probabilistic index models (PIMs). Type I error control was strongly compromised for methods ignoring time or clustering, whereas only two approaches consistently maintained nominal error rates: a hierarchical mixed-effects model with sequence- and cluster-level random slopes (b4) and a cluster-restricted PIM (c2). These two methods were further evaluated in terms of statistical power, where c2 generally showed higher efficiency, particularly under strong clustering, low CAC, or the presence of temporal trends, while both converged to similar performance for large treatment effects. Overall, our findings identify b4 and c2 as the most reliable GPC-based strategies for SW-CRT analysis and provide practical guidance for their application, including for ongoing trials such as ETHER. keywords Stepped-wedge cluster randomised trial, Generalized pairwise comparisons, Win odds, Mixed effect models, Probabilistic index models. † † copyright-year: 2023 † † startpage: 1 † † titlemark: Analysis of Stepped-Wedge Randomised Cluster Trial using a generalized pairwise comparison approach : a simulation study † † corresponding: Corresponding author Yohan Bard, † † citation: . † † copyright: , , , and . † † ctitle: On simplifying ‘incremental remap’-based transport schemes. † † cjournal: J Comput Phys. † † cvolume: 2021;00(00):1–18 BARD et al. \presentaddress 28 avenue Pierre Mendès France, 42 270 Saint-Priest-en-Jarez 1 Introduction Generalized Pairwise Comparisons (GPC) is a modern statistical method used to assess the effect of an intervention by considering multiple outcomes simultaneously. This approach addresses the limitations of traditional analyses, such as classical composite endpoints, which assign equal weight to each component event, even when these events differ greatly in clinical importance—for example, fatal versus nonfatal events. As a result, conventional composites may overlook clinically meaningful events that occur less frequently or later than less significant ones [ 1 ] . GPC allows investigators to handle composite endpoints where the components are not clinically equivalent by ranking outcomes according to their clinical importance. Intervention effect can then be quantified by clear summary measures, such as the win ratio , which is becoming increasingly common, especially in cardiovascular trials [ 2 ] . First introduced by Buyse [ 3 ] , the GPC framework works by comparing all possible patient pairs across treatment groups. For each pair, the outcomes are compared to determine whether one patient had a better ( favorable ), worse ( unfavorable ), or similar ( neutral ) result. The method then aggregates these pairwise results to estimate the treatment effect. More recently, the framework has been expanded to several situations, including dose–response analysis [ 4 ] , covariate adjustment using probabilistic index models (PIMs) [ 5 , 6 ] , and variable selection strategies [ 7 ] , illustrating its flexibility. However, so far in clinical research, GPC has mostly been used in individually randomized trials. In some cases, individual randomization is not feasible, especially when there is a risk that the interventions in different arms might influence each other, a phenomenon known as contamination. In such settings, cluster randomization is often preferred for practical, ethical, or logistical reasons. This approach randomizes groups (or “clusters”) of participants rather than individuals and can help avoid contamination, simplify trial organization, and improve participant engagement [ 8 ] . However, applying the win ratio directly in cluster trials presents methodological challenges. Standard formulations of the win ratio assume independent observations, and ignoring the correlation of outcomes within clusters can lead to underestimated variance and overly optimistic confidence intervals, potentially affecting the validity of statistical inference. For instance, Romiti et al. [ 9 ] applied the generalized pairwise comparison framework in a cluster-randomized setting without explicitly adjusting for intracluster correlation. Their work illustrates how current analytical tools are being used in practice and underscores the need for methods specifically designed for clustered data. When interventions are difficult to implement simultaneously across all clusters, the stepped-wedge cluster randomized trial (SW-CRT) offers a practical alternative. In this design, clusters gradually switch from control to intervention over successive periods. This staggered rollout has ethical advantages—all clusters eventually receive the intervention—and facilitates implementation. Variants such as the batched stepped wedge design have also been introduced to accommodate delays in recruitment or intervention roll-out, further increasing the practicality of this design [ 10 ] . However, analyzing data from SW-CRTs poses additional challenges. First, individuals within the same cluster tend to have correlated outcomes, which is commonly quantified through the intra-cluster correlation coefficient (ICC) and reflects shared contextual or organizational factors. Second, because clusters are observed repeatedly over time, correlations may also persist across periods within the same cluster; this temporal persistence of cluster effects can be characterised by a cluster autocorrelation coefficient (CAC). In addition, treatment effects may be confounded by time trends in baseline risk, since clusters initiate the intervention at different times. As a result, statistical models must carefully adjust for both clustering and time to avoid biased estimates [ 11 , 12 ] . Guidelines for the reporting of SW-CRTs have also been published to ensure that the complex features of these designs are clearly described [ 13 ] . Although generalized pairwise comparisons (GPC) are increasingly used in clinical research, their application has so far remained largely confined to individually randomized trials. To date, no methodological work has adapted GPC to explicitly account for clustering or temporal effects in complex randomized designs, such as classical cluster randomized trials or stepped-wedge variants. This paper contributes to addressing this methodological limitation by extending the GPC framework to the stepped-wedge setting, allowing treatment effects to be analysed while properly accounting for both intracluster correlation and secular time trends. 2 Methods 2.1 Stepped-wedge cluster randomised trial design A stepped-wedge cluster randomised trial (SW-CRT) is a design in which clusters cross over from control to intervention at different, pre-specified time periods according to a randomised sequence. The design proceeds in discrete periods, indexed by j=1,\dots,J , during which outcomes are observed. Clusters are indexed by k=1,\dots,K . Within each cluster-period combination (j,k) , the number of observed individuals is denoted by n_{jk} .The general structure of a stepped-wedge design is illustrated in Figure 1 . Figure 1: Example of stepped-wedge trial with 5 sequences (6 periods) Each cluster follows an assigned sequence that determines the period at which it initiates the intervention. By the end of the study, all clusters have received the intervention, ensuring that data are available under both conditions across the trial. The intervention status of a cluster in period j is therefore fully determined by its sequence allocation and the period index. Although the present work focuses on stepped-wedge designs, the notation and methodological developments introduced throughout this section naturally encompass classical cluster randomised trials as a special case. In particular, a parallel-arm cluster trial corresponds to a stepped-wedge design with a single transition period, so that the proposed framework remains applicable beyond the stepped-wedge setting. Two key sources of dependence arise in SW-CRTs. First, outcomes measured within the same cluster tend to be correlated due to shared clinical practices, patient populations, or organisational factors. This intra-cluster dependence is commonly summarised by the intraclass correlation coefficient (ICC), which quantifies the proportion of outcome variability attributable to between-cluster differences. Second, because clusters are observed repeatedly over time, correlations may persist across periods within the same cluster. In stepped-wedge designs, this temporal persistence is often imperfect and is characterised by a cluster autocorrelation coefficient (CAC), which reflects the degree to which cluster-specific effects remain stable across successive periods. In addition to correlation structures, stepped-wedge trials are intrinsically exposed to secular time trends, whereby the baseline risk of the outcome evolves over calendar time independently of the intervention. Since intervention exposure is systematically confounded with time in SW-CRTs, failure to account for such trends can lead to biased estimation of the treatment effect. These features motivate the need for statistical methods that jointly adjust for clustering, temporal correlation, and time trends, which will be addressed in the following sections. 2.2 Generalized pairwise comparison for composite outcomes Generalized pairwise comparisons (GPC) provide a unified framework for evaluating treatment effects based on individual-level outcomes. The approach considers all possible pairs of individuals, one from the treatment group and one from the control group, and determines which individual has the more favorable outcome according to a pre-specified ranking of endpoints. Let Y_{i} denote the outcome for individual i . If a single endpoint is considered, Y_{i} is scalar. In the more general case of multiple outcomes, we define a vector Y_{i}=\big(Y_{i}^{(1)},\ldots,Y_{i}^{(M)}\big), where outcomes are hierarchically ordered according to their clinical relevance: Y_{i}^{(1)} is the most important endpoint, and Y_{i}^{(M)} is the least important, often chosen for its discriminative power. Treatment allocation is described by the indicator X_{ijk} , which equals 1 if individual i in cluster k at period j is exposed to the intervention, and 0 otherwise. For a comparison between two individuals i and i^{\prime} assigned to different treatment groups, we define the comparison score W_{ii^{\prime}} . The index of the first outcome that differs is m^{*}=\min\Big\{m\in\{1,\ldots,M\}:Y_{i}^{(m)}\neq Y_{i^{\prime}}^{(m)}\Big\}. If such an m^{*} exists, then: W_{ii^{\prime}}=\begin{cases}1,&\text{if }Y_{i}^{(m^{*})}\succ Y_{i^{\prime}}^{(m^{*})},\text{(favorable pair)}\\[6.0pt] -1,&\text{if }Y_{i}^{(m^{*})}\prec Y_{i^{\prime}}^{(m^{*})},\text{(unfavorable pair)}\\[6.0pt] 0,&\text{if no such }m^{*}\text{ exists (neutral pair)}.\end{cases} Based on this comparison score, intervention effect can be estimated using different metrics. Let N_{W} and N_{L} denote the total numbers of favorable pairs and unfavorable across all pairwise comparisons between treatment and control individuals. The first metric is the win ratio , defined as \text{WR}=\frac{N_{W}}{N_{L}}. Values greater than 1 indicate that the treatment group achieves more favorable than unfavorable pairs, suggesting a beneficial effect of the intervention. Because neutral pairs may occur frequently, a second metric, the win odds , modifies the win ratio by allocating half a favorable and half a unfavorable pair to each neutral one. Let N_{T} denote the number of neutral pairs. The win odds is de fined as \text{WO}=\frac{N_{W}+0.5\,N_{T}}{N_{L}+0.5\,N_{T}}. Although the treatment effect in the mixed-effects models is expressed on the \log(\text{WO}) scale, this measure admits a simple and intuitive interpretation through its relationship with the net treatment benefit (NTB). The NTB is defined as \text{NTB}=\frac{\text{WO}-1}{\text{WO}+1}, and corresponds to the difference in probabilities (\mathbb{P}_{T}>\mathbb{P}_{C})-(\mathbb{P}_{C}>\mathbb{P}_{T}) , that is, the probability that a randomly selected treated individual has a more favourable outcome than a control individual minus the reverse probability. This quantity lies between -1 and 1 and can be interpreted as an absolute treatment effect on the probability scale. For small to moderate treatment effects, a first-order approximation yields \log(\text{WO})\approx 2\times\text{NTB} , which facilitates interpretation of regression coefficients expressed on the log-win-odds scale. While both measures are consistent with the GPC framework, the win odds is generally preferred in settings with non-negligible numbers of neutral pairs. By incorporating neutral pairs into the calculation, it provides a smoother and more robust estimate of treatment effect, while retaining the same interpretability: values greater than 1 suggest superiority of the treatment group. Moreover, the win odds is linked to more classical intervention effect estimates. For example, in the special case where there is only one outcome, the win odds could be interpreted as an inverse of a hazard ratio [ 14 ] . For these reasons, the win odds will be the main effect measure considered in this paper. 2.3 Covariates adjustment within GPC In stepped-wedge cluster randomized trials, potential confounding may arise from several sources: clustering of outcomes within groups, secular time trends, and cluster- or period-level characteristics. A major motivation for this work is that generalized pairwise comparisons may produce biased estimates of the treatment effect when applied without adjustment on these potential confounding sources. To address these issues, we denote by X the set of covariates to be considered, which may include both individual-level and cluster-level variables. In the GPC framework, covariates may be taken into account by different approaches. 2.3.1 Stratification The simplest adjustment strategy consists in stratifying pairwise comparisons according to a categorical variable S=S(X) . For example, S may represent the cluster or the trial period. Within each stratum s , only comparisons between individuals belonging to that stratum are considered, and a stratum-specific win odds \text{WO}_{s} is estimated. These stratum-specific estimates are then combined into a global measure by weighting their logarithms [ 15 ] [ 16 ] : \log(\text{WO})=\sum_{s}w_{s}\,\log(\text{WO}_{s}), with weights w_{s} satisfying \sum_{s}w_{s}=1 . Different weighting schemes may be used, such as inverse-variance weights or weights proportional to the size of each stratum. This stratified approach parallels classical stratified tests, while preserving the win-based interpretation of the effect measure. 2.3.2 Regression framework with probabilistic index models To adjust GPC analysis on a potential continuous or categorical covariates X , probabilistic index models (PIMs) has been proposed, embedding GPC into a regression framework. The key idea is that the win odds can be expressed as a transformation of the probabilistic index, defined as \mathbb{P}\big(Y\succ Y_{\star}\mid X,X_{\star}\big)=\mathbb{P}\big(Y>Y_{\star}\mid X,X_{\star}\big)+0.5\,\mathbb{P}\big(Y=Y_{\star}\mid X,X_{\star}\big), that is, the probability that a randomly selected individual has a more favorable outcome than another randomly selected individual depending on their respective covariates X and X_{\star} . In PIMs, this probability is linked to covariates through a regression model: g\left(\mathbb{P}\big(Y\succ Y_{\star}\mid X,X_{\star}\big)\right)=Z^{T}\beta, where g(\cdot) is a link function (logit, probit, identity). Vector Z denotes a vector with elements depending on X and X_{\star} like Z=X-X_{\star} for example. The parameter vector \beta contains the regression coefficients describing how each covariate affects the probability of a favorable comparison; in particular, the treatment coefficient corresponds directly to the adjusted log win odds. For the analysis of SW-CRT, this pairwise regression formulation allows direct adjustment for both individual and cluster-level covariates, as well as time effects, while retaining the pairwise comparison principle. Estimation can be performed through standard estimating equations [ 17 ] . The fitted model provides an adjusted estimate of the treatment effect in terms of win odds, together with confidence intervals and p -values. Compared to stratification, this regression approach allow to handle directly continuous and/or multiple covariates. 2.4 Evaluated methods for the analysis of SW-CRT based on GPC In this section, we describe the candidate approaches for analyzing data from stepped-wedge cluster randomized trials (SW-CRTs) using the generalized pairwise comparison (GPC) framework. Each approach provides an estimate of the win odds (WO) while addressing, to varying degrees, the confounding introduced by time dependency and data clustering. 2.4.1 Methods without adjustment for time trends The first class of approaches evaluated deliberately ignores the temporal structure of the stepped-wedge design. The comparison is treated as if the trial were a parallel-group design, with all observations pooled according to treatment status. The first approach, referred to as Method a1: Crude win odds , compares all individuals who received the intervention, regardless of period or cluster, against all individuals who remained under control. All possible treatment–control pairs are generated, and the overall win odds is estimated as \text{WO}=\frac{N_{W}+0.5N_{T}}{N_{L}+0.5N_{T}}, where N_{W} , N_{L} , and N_{T} denote the total numbers of favorable, unfavorable, and neutral pairs, respectively. This approach is simple but ignores both intra-cluster correlation and time dependency effects. A refinement, denoted Method a2: Cluster-stratified win odds , accounts for clustering by computing the win odds within each cluster separately. In each cluster k , individuals under control are compared to those under intervention, producing a cluster-specific win odds \text{WO}_{k} . These estimates are then aggregated across clusters to obtain an overall measure. Aggregation is performed on the log scale to stabilise the variance, with the global estimate given by \log(\text{WO})=\sum_{k=1}^{K}w_{k}\,\log(\text{WO}_{k}), where w_{k} are non-negative weights satisfying \sum_{k=1}^{K}w_{k}=1 . Let m_{k} and n_{k} denote the sample sizes in the control and intervention arm, respectively, for cluster k . The total number of treatment–control pairs that can be formed within this cluster is M_{k}=m_{k}\times n_{k}. A natural choice is to let w_{k} be proportional to M_{k} , i.e. w_{k}=\frac{M_{k}}{\sum_{\ell=1}^{K}M_{\ell}}. Here, M_{k} represents the total number of available treatment–control comparisons in cluster k , independently of whether these pairs later yield favorable, unfavorable, or tied outcomes. This weighting scheme [ 3 ] [ 16 ] ensures that clusters contributing more information have greater influence on the overall estimate, while avoiding instability that may arise if inverse-variance weights are used (since variances can sometimes be zero when all comparisons within a cluster yield the same outcome). Methods (a1) and (a2) are easy to implement and computationally efficient. However, because they do not adjust for time trends, they may be biased in the context of SW-CRTs, where intervention exposure is confounded with calendar time. 2.4.2 Between-period cluster-level analysis To jointly account for clustering and temporal dynamics, a second approach constructs win odds at the level of cluster–period pairs. Specifically, for each cluster k\in\{1,\dots,K\} and for every pair of periods (j_{1},j_{2}) with j_{1}0 ), focusing exclusively on the two methods that provided acceptable control of the type I error: the hierarchical mixed-effects model with sequence- and cluster-level random slopes (b4), and the cluster-restricted probabilistic index model (c2). Power was assessed across increasing values of the treatment effect parameter ( \delta ), and stratified by ICC, CAC, and the secular time trend \beta_{t} . Results for all combinations of these parameters are summarized in Figure 3 . For readability, the figure displays a representative subset of ICC–CAC combinations, while the full set of power plots covering all correlation structures and time-trend scenarios is provided in the Supplementary Material. Figure 3: Statistical power of the two best-performing methods, the hierarchical mixed-effects model with sequence- and cluster-level random slopes (Model b4) and the cluster-restricted probabilistic index model (Model c2), across all non-null treatment effect scenarios ( \delta>0 ) for baseline risk p_{0}=0.1 . For each value of the treatment effect ( \delta ), two bars are shown side-by-side corresponding to the two methods. Panels are stratified by intraclass correlation (ICC), cluster autocorrelation coefficient (CAC), and the secular time trend \beta_{t} . The horizontal dashed lines at 80% and 90% indicate a commonly used power benchmark. Across all scenarios without a secular trend ( \beta_{t}=0 ), c2 consistently achieved higher power than b4 for small to intermediate treatment effects. This advantage became more pronounced as the intraclass correlation (ICC) increased and as the cluster autocorrelation (CAC) decreased, showing that c2 is more robust when within-cluster dependence is strong while period-to-period stability is weak. For large treatment effects ( \delta>1 ), both methods converged to similar power, indicating that differences between b4 and c2 are mainly relevant for intermediate effect sizes where separating treatment effects from cluster-level heterogeneity is most challenging. When a positive time trend was introduced ( \beta_{t}>0 ), the performance gap between the two methods widened further. Temporal trends amplified the relative advantage of c2, which achieved noticeably higher power than b4 across nearly all combinations of ICC and CAC. The same qualitative patterns persisted: the advantage of c2 increased with larger ICC and lower CAC, while both methods again displayed similar performance for large treatment effects. These results highlight that temporal structure tends to reinforce the efficiency gains of c2, especially in correlation settings that are difficult for cluster-level models. Overall, both b4 and c2 demonstrated satisfactory statistical performance, with b4 performing competitively in scenarios with weak clustering and strong period-to-period autocorrelation, and c2 providing consistently higher efficiency in all other situations, particularly when temporal trends and complex correlation structures are present. 3.2 Statistical power of the Ether trial with the candidate methods Across all simulation scenarios, statistical power varied systematically according to the number of criteria included in the composite endpoint, as well as the intra-cluster correlation (ICC), the cluster autocorrelation (CAC), and the temporal trend \beta_{t} . Figure 4 summarizes the rejection rates of the null hypothesis (p ¡ 0.05) for each parameter combination. Figure 4: Statistical power of the different methods used to estimate the win odds across the simulation scenarios. Bars represent the proportion of replications in which the null hypothesis is rejected (p ¡ 0.05). Results are stratified by ICC (rows) and by CAC crossed with the temporal effect \beta_{t} (columns). Pastel colors distinguish the successive outcome sets, while transparency encodes the statistical method: Model c2 and Model b4 . The horizontal red dashed line indicates the 80% power threshold.) A clear monotonic relationship emerged between the richness of the composite endpoint and the resulting power. When only death was used as the endpoint, power remained very low (approximately 5%–15%). Adding VTE increased power substantially (10%–50%). Including bleeding as a third component further strengthened performance, with values ranging from about 25% to 90%. Finally, when all four outcomes were combined (death + VTE + bleeding + PAM), power was consistently above 80% across all scenarios. As expected, the PAM component, being highly discriminative, substantially improved the detectability of treatment effects, confirming the informational gain obtained from richer composite endpoints. When ICC and CAC were held constant, power increased steadily as \beta_{t} moved from negative to positive values. Because a positive \beta_{t} aligns with the direction of the treatment effect in a stepped-wedge design, larger positive trends naturally facilitated detection. On average, power rose from about 30% when \beta_{t}=-0.05 to around 80% when \beta_{t}=0.05 for the 3 endpoints case, illustrating the strong influence of secular trends on treatment-effect estimation. For fixed \beta_{t} and ICC, increasing the CAC resulted in a modest but consistent improvement in power. The gain was generally limited to a few percentage points, but it appeared systematically across endpoint sets and methods, reflecting the benefit of stronger autocorrelation structure within clusters. Regarding method performance, the within-cluster probabilistic index model (c2) generally outperformed the mixed-effects comparison model (b4), but the magnitude of this advantage depended strongly on the richness of the composite endpoint. The difference between the two methods was most noticeable when the composite included two or three components (death + VTE, or death + VTE + bleeding), where c2 achieved clearly higher power. In contrast, when only a single endpoint was used, or when all four outcomes were combined (including PAM), the performance of the two methods was much more similar. Moreover, the advantage of c2 diminished as the temporal trend \beta_{t} became increasingly favorable to the treatment: in these scenarios, both methods benefited from the stronger secular signal, reducing the relative gap between them. Overall, c2 remained slightly but consistently superior, though its comparative benefit was concentrated in intermediate endpoint configurations. Finally, using the operating characteristics obtained from this simulation framework, we assessed the statistical power that would be expected for the ETHER trial under its protocol-defined assumptions. In the ETHER design, the intraclass correlation was anticipated to lie between 0 and 0.01, while the cluster autocorrelation was expected to fall between 0.75 and 1. Within this range of correlation structures, both candidate methods achieved very high power when applied to the full composite endpoint. Across all combinations of (\text{ICC},\text{CAC})\in[0,0.01]\times[0.75,1] , the estimated power consistently exceeded 90%, reaching values close to 100% for the cluster-restricted PIM (c2). These results indicate that, under the assumptions of the original ETHER protocol and using the proposed GPC-based analyses, the trial would have more than adequate power to detect the pre-specified treatment effects. In particular, the inclusion of the PAM-13 component, which is highly sensitive to treatment changes, plays a decisive role in ensuring high discriminative ability and robust operating performance under realistic trial conditions. 4 Discussion The aim of this work was to investigate whether generalized pairwise comparisons (GPC) can be analysed in a way that appropriately reflects both the correlation structure and the temporal features inherent to stepped-wedge cluster randomised trials (SW-CRTs). As emphasised in the methodological literature, valid inference in SW-CRTs requires statistical approaches that simultaneously adjust for clustering and secular time trends, in order to avoid biased treatment effect estimates [ 23 ] . The results of our simulation study show that such joint adjustment is indeed feasible. In particular, two approaches—Model b4, based on a hierarchical mixed-effects formulation, and Model c2, relying on a cluster-restricted probabilistic index model (PIM)—were identified as consistently providing valid inference while accounting for clustering, repeated measurements across periods, and temporal confounding. These findings align with previous work demonstrating that PIMs can incorporate covariates and structured effects through a regression-based framework [ 17 ] . Among the methods evaluated, Model b4 exhibited excellent robustness across all simulation scenarios, including settings with low cluster autocorrelation (CAC). Its random-effects structure efficiently captures both between-cluster and between-period heterogeneity, making it a particularly reliable option for a wide range of SW-CRT designs [ 24 ] . Model c2 also performed well and often achieved slightly higher statistical power, especially in scenarios with high intracluster correlation (ICC). This gain in efficiency, however, comes at the cost of a substantial computational burden. Because PIMs operate at the level of individual pairwise comparisons, the number of comparisons increases quadratically with the cluster-period sample size, leading to prohibitive runtimes when multiple covariates are included [ 17 ] . In designs with small cluster-period sample sizes, PIMs may therefore remain advantageous, as the total number of pairs is naturally limited. For larger clusters, however, mixed-effects models are clearly more practical. The simulation results further highlight the strong influence of the baseline event probability p_{0} on both power and type I error. When p_{0} was very small (e.g. 0.01 ), both quantities decreased markedly. This behaviour is expected, as very rare events generate few informative treatment–control comparisons, reducing the ability to detect a true treatment effect while simultaneously lowering the probability of false positives. As p_{0} increased to more moderate values (such as 0.1 or 0.2 ), the number of informative comparisons increased accordingly, resulting in higher power and type I error rates closer to their nominal levels. An additional issue concerns small-sample inference for probabilistic index models. PIM estimation relies on the large-sample properties of estimating equations, and when the effective sample size is limited, variance estimators may be biased downward, leading to inflated type I error rates. This phenomenon has been documented in the methodological literature, and several small-sample corrections for PIMs have been proposed, including bias-corrected sandwich variance estimators and resampling-based approaches [ 25 ] . In the present study, this issue was not investigated further, as the simulation scenarios were calibrated to reflect the ETHER trial, which involves a relatively large number of clusters and individuals per period and therefore operates within an asymptotic regime. Nevertheless, in applications with smaller cluster sizes or fewer informative comparisons, the use of such small-sample corrections would be advisable when adopting PIM-based methods. Another important limitation of PIMs is their inability to incorporate random effects, as their estimation relies on marginal estimating equations that do not accommodate hierarchical random-effects structures [ 17 ] . As a consequence, PIMs cannot explicitly model cluster autocorrelation. Attempts to approximate this dependence structure using fixed cluster indicators proved unsuccessful and substantially increased computational cost. In practice, however, the performance difference between Models b4 and c2 remained modest across most realistic scenarios, suggesting that both approaches offer acceptable solutions for the analysis of SW-CRTs. Our simulations primarily focused on linear secular trends, corresponding to a relatively simple temporal structure. When sinusoidal time patterns were explored, the results remained broadly similar, likely because the sinusoidal function oscillates around zero and therefore does not induce strong cumulative trends over time. Future work should consider more complex non-linear temporal structures, such as cubic or spline-based trajectories, which may generate pronounced period-specific biases if not adequately adjusted for. We also explored an extension in which non-linear secular trends are modelled directly within the PIM framework using bivariate spline functions of time. The underlying idea is as follows. Rather than adjusting for time through a linear contrast (t_{ijk}-t_{i^{\prime}j^{\prime}k}) , the observation times t_{ijk} and t_{i^{\prime}j^{\prime}k} are first expanded using a spline basis B(t)=\{B_{1}(t),\dots,B_{d}(t)\} of dimension d , such as natural cubic splines. Because PIMs operate on ordered pairs of individuals, temporal adjustment must be expressed not as a univariate function of time, but as a smooth function of the pair (t_{ijk},t_{i^{\prime}j^{\prime}k}) . This requires constructing a tensor-product spline basis \Phi(t_{ijk},t_{i^{\prime}j^{\prime}k})=\big\{B_{a}(t_{ijk})\,B_{b}(t_{i^{\prime}j^{\prime}k})\;:\;1\leq a,b\leq d\big\}, which contains d^{2} basis functions. Each pair contributes the covariate vector Z_{ii^{\prime}}=\big(1,\;X_{ijk}-X_{i^{\prime}j^{\prime}k},\;\Phi(t_{ijk},t_{i^{\prime}j^{\prime}k})\big), and the PIM estimator solves modified estimating equations of the form g\left(\mathbb{P}(Y_{i}\succ Y_{i}^{\prime}\mid Z_{ii^{\prime}})\right)=Z_{ii^{\prime}}^{\top}\beta, where g(\cdot) typically denotes the logit link function. Although this construction offers considerable flexibility for capturing non-linear or irregular temporal dynamics, it is computationally demanding. The number of spline parameters grows quadratically with the spline dimension ( d^{2} ), and the resulting design matrix rapidly becomes very large. In practice, even moderate spline dimensions (e.g. d=3 ) lead to a substantial number of parameters, particularly when combined with the large number of pairwise comparisons inherent to PIM estimation. Consequently, spline-based extensions of PIMs are feasible only for relatively small cluster-period sample sizes or when spline complexity is carefully controlled. In standard stepped-wedge analyses, time is often treated as a categorical factor, reflecting the equal duration of study periods. In the ETHER trial, however, the first period spans 12 months, whereas subsequent periods last only 3 months, creating a clear imbalance. This feature supports modelling time as a continuous variable or through spline-based representations rather than simple categorical indicators. From this perspective, PIMs may offer additional flexibility, as continuous time differences can be incorporated directly at the pairwise level. This advantage could become even more relevant in survival analysis settings, where the timing of events carries particularly rich information. Several aspects remain beyond the scope of this work and merit further investigation. First, unequal cluster sizes—frequent in pragmatic stepped-wedge trials—may interact with cluster-level correlation structures and affect the stability of win-odds estimates. Second, correlations between multiple components of composite endpoints may also influence the variance estimation of GPCs [ 3 ] and deserve dedicated methodological developments. Third, although our simulations confirmed that period-pair comparisons, as implemented in Model b4, perform well, alternative approaches—such as jointly modelling all period contrasts through spline-based adjustments—may further improve efficiency in the presence of complex non-linear time trends. Overall, this study provides practical guidance for the analysis of GPCs in stepped-wedge designs. Mixed-effects modelling (Model b4) emerges as a generally reliable and scalable approach, while PIM-based methods (Model c2) can offer slightly higher efficiency under certain conditions, at the expense of substantial computational cost and without the ability to incorporate random effects. In most realistic scenarios, both approaches lead to comparable conclusions, and the choice between them should therefore be guided by considerations of computational feasibility, cluster-period sample size, and the anticipated complexity of temporal trends. 5 * Funding/Support The study is funded by the European Union grant HORIZON- HLTH-2022-TOOL-11-01. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or HORIZON-HLTH-2022- TOOL-11-01. Neither the European Union nor the granting authority can be held responsible for them. 6 * Conflict of interest The authors declare no potential conflict of interests. 7 * Supporting information Additional supporting information may be found in the online version of the article at the publisher’s website.