Bayesian multilevel multivariate logistic regression for superiority decision-making under observable treatment heterogeneity

Background In medical, social, and behavioral research we often encounter datasets with a multilevel structure and multiple correlated dependent variables. These data are frequently collected from a study population that distinguishes several subpopulations with different (i.e., heterogeneous) effects of an intervention. Despite the frequent occurrence of such data, methods to analyze them are less common and researchers often resort to either ignoring the multilevel and/or heterogeneous structure, analyzing only a single dependent variable, or a combination of these. These analysis strategies are suboptimal: Ignoring multilevel structures inflates Type I error rates, while neglecting the multivariate or heterogeneous structure masks detailed insights. Methods To analyze such data comprehensively, the current paper presents a novel Bayesian multilevel multivariate logistic regression model. The clustered structure of multilevel data is taken into account, such that posterior inferences can be made with accurate error rates. Further, the model shares information between different subpopulations in the estimation of average and conditional average multivariate treatment effects. To facilitate interpretation, multivariate logistic regression parameters are transformed to posterior success probabilities and differences between them. Results A numerical evaluation compared our framework to less comprehensive alternatives and highlighted the need to model the multilevel structure: Treatment comparisons based on the multilevel model had targeted Type I error rates, while single-level alternatives resulted in inflated Type I errors. Further, the multilevel model was more powerful than a single-level model when the number of clusters was higher. A re-analysis of the Third International Stroke Trial data illustrated how incorporating a multilevel structure, assessing treatment heterogeneity, and combining dependent variables contributed to an in-depth understanding of treatment effects. Further, we demonstrated how Bayes factors can aid in the selection of a suitable model. Conclusion The method is useful in prediction of treatment effects and decision-making within subpopulations from multiple clusters, while taking advantage of the size of the entire study sample and while properly incorporating the uncertainty in a principled probabilistic manner using the full posterior distribution. Supplementary Information The online version contains supplementary material available at 10.1186/s12874-023-02034-z.


Background
In medical, social, and behavioral research we often encounter datasets with a multilevel structure and multiple correlated dependent variables.An example of such a study is the Cognition and Radiation Study B [1,2] that investigated whether local brain radiation (stereotactic radiosurgery) preserves cognitive functioning and quality of life better than whole brain radiation in cancer patients with multiple brain metastases.Patients were recruited from multiple hospitals and the treatment was executed in two treatment centers, giving the data a multilevel structure.Many other examples of such datasets can be found in a paper by Biswas and colleagues [3], who presented a nonexhaustive overview of hundreds of Bayesian trial protocols executed in a specialized center for cancer treatment.The authors noted that a) almost half of the reviewed studies were multicenter trials; and b) many studies were designed to assess effectiveness and side effects simultaneously, thus including at least two dependent variables.
Often, these multilevel, multivariate data are collected from a study population that consists of several subpopulations with potentially distinctive (i.e., heterogeneous) effects of an intervention.Examples of such studies are the two International Stroke Trials (International Stroke Trial (IST) and Third International Stroke Trial (IST-3); [4][5][6][7]), which investigated the effects of antiplatelet and antithrombotic treatments on various (neuro)psychological, functional and psychosocial dependent variables respectively.Both trials covered multiple treatment centers from multiple countries and included a variety of patient characteristics that could potentially predict treatment effects.We discuss the IST-3 in more depth as it serves as a running example throughout the paper.The IST-3 investigated the effects of an intravenous thrombolysis treatment on shortterm (e.g., recurrent stroke, functional deficits) and long-term (e.g., dependency, depression, pain) indicators of health status among patients who suffered from an acute ischaemic stroke.The IST-3 data revealed considerable variation in characteristics of patients and disease -such as subtype or severity of stroke, blood pressure, and age -that can be predictive of treatment effects and call for exploration of treatment heterogeneity to gain insight into subpopulation-specific effects [8].
All of the abovementioned trials made treatment comparisons in the context of Randomized Controlled Trials (RCTs): Randomized experiments in which an experimental or a control treatment is randomly assigned and administered to a random sample of patients.RCTs often aim to evaluate whether the experimental treatment is superior or (non-)inferior to the control condition and ultimately guide clinicians in evidence-based assignment of treatments and interventions [9].Whereas RCTs are considered a golden standard for treatment comparison, their implementation is challenged by a growing demand for personalized treatment [10][11][12][13].That is, clinical practice relies more and more on the idea that different patients react differently to treatments.Treatment prescription is increasingly guided by a trade-off between patient-specific risks and benefits, making the research context for these decisions multivariate and heterogeneous [14].While demanding more complex methodology, personalization of treatments can impede the collection of sufficient data for rigorous treatment evaluation.Development of more targeted treatments limits eligibility for participation in trials, thereby making the recruitment of subjects more difficult.As a solution, trials more often span multiple treatment centers or countries.This adds another layer of complexity to the research context: clustered data that require multilevel analysis.To meet the methodological demands of these increasingly complex research problems, RCTs ideally provide a) a broad understanding of the treatment's effects on multiple dependent variables; and b) insights potential dependencies of treatment effects on characteristics of patients; and c) an accurate handling of clustered data structures.In practice, such comprehensive methods are less common, and often researchers resort to either ignoring the multilevel and/or heterogeneous structure, analyzing only a single dependent variable, or a combination of these.Below, we discuss how the abovementioned three aspects can be implemented in Randomized Controlled Trial methodology to support research in personalized treatment.
First, many RCTs evaluate more than one dependent variable, which are analysed separately in multiple univariate analyses [15].As an example, the investigators of the IST-3 were primarily interested in living independently six months after stroke and secondarily in several other dependent variables, such as recurrent events, adverse reactions to the treatment, and mental health indicators.Analyzing dependent variables independently provides useful insights in treatment effects on each of these dependent variables individually, but discards available information about the relation between them.When the effects on individual dependent variables are complemented with information about their co-occurrences via multivariate analysis, a more detailed picture of treatment effects emerges.Multivariate analysis models relationships between dependent variables and can a) be helpful to detect outcome patterns that would be ignored when dependent variables are considered in isolation; and b) improve the accuracy of sample size computations and error rates in statistical decision-making [15][16][17][18].
Second, incorporating patient and/or disease characteristics in treatment comparison can result in a considerable improvement of the practical value of RCTs.The IST-3 used a sample of diverse patients with different personal and disease characteristics.This variation contains valuable information regarding differences in treatment effects.For example, knowing whether patients with different weights or blood pressures have different chances of a recurrent stroke or independent living has the potential to inform treatment recommendations.When treatments have distinct effects on patients with different characteristics, treatment effects are considered heterogeneous among (sub)populations of patients.In this case, average treatment effects (ATEs) give a global idea of treatment results among the trial population, but have limited value in targeting treatments to specific patients with their individual (disease) characteristics [19][20][21].Conditional average treatment effects (CATEs) among specific patient groups provide insight in the variation of treatment effects among the population and help to distinguish patients who ultimately benefit from the treatment from those who do not or may even experience adverse treatment effects.Unfortunately, subgroup-specific treatment comparisons are insufficiently implemented as part of standard trial methodology yet [22].If subgroups are targeted at all, their effects are often analyzed independently via stratified (or subgroup) analysis.Such a subgroup analysis disregards information from related subgroups and suffers from suboptimal power due to subsetting.Modelling heterogeneity is a more powerful alternative that directly uses the relation between subgroups and allows subgroups to borrow strength from each other [23][24][25].
Third, multilevel data are characterized by observational units that are grouped in clusters.For example, the IST-3 spans multiple treatment centers and multiple countries.Reasons to use multilevel analysis can be both substantive and statistical.From a substantive perspective, multilevel analysis can be useful to explain differences between clusters, while using the information from the entire sample [26,27].Different trials may -for example -have overlapping but non-identical target populations that can be distinguished by covariate information and may contribute to the understanding of treatment effects.Statistically, differences between clusters should be taken into account for the sake of validity, even if these differences are not of direct interest [28][29][30].Clustered data require specific analysis methods that are flexible enough to treat observations from different clusters as more similar to each other than to observations from other clusters.If observations within clusters are indeed more similar, the clustered structure is reflected in variance partitioning, where the within-cluster and the between-cluster variances are modelled separately.This induces a dependence between the observations within clusters when marginalizing over the cluster-specific effects.When clustered observations are treated as independent observations on the other hand, variance originating from differences between clusters is then erroneously attributed to differences between a manifold of observational units and the unique amount of information is overestimated.As a result, standard errors are overestimated, Type I error rates are inflated, and validity of statistical inference is compromised.The larger the variance between clusters relative to the variance between observational units within clusters, the larger the effect on standard errors.Properly modelling the multilevel structure of clustered data and allowing the parameters to vary over clusters is therefore crucial for accurate statistical decision-making [28,29].
The current paper presents a Bayesian multilevel multivariate logistic regression (BMMLR) framework to capture the three abovementioned methodological aspects in a comprehensive analysis and decision procedure for treatment comparison.We build upon an existing Bayesian multivariate logistic regression (BMLR) framework for single-level data to analyze multivariate binary data in the presence of treatment heterogeneity and present a multilevel extension to deal with multilevel data.The multilevel aspect adds another layer of complexity, making the analysis a non-trivial endeavour.We discuss the existing BMLR framework first.This framework consists of three coherent elements [25]: 1 a multivariate modelling procedure to find unknown regression parameters; 2 a transformation procedure to convert regression parameters to the probability scale to make analysis results more interpretable; 3 a compatible decision procedure to draw conclusions regarding treatment superiority or inferiority with targeted Type I error rates.
The first element, the modelling procedure, assumes multivariate Bernoulli distributed dependent variables and assigns them a multinomial parametrization.A multinomial parametrization is helpful for two reasons, since it a) allows statisticians to draw and build upon existing, established multinomial techniques with tractable (conditional) posterior distributions; and b) has the flexibility to model correlations between dependent variables on the subpopulation level, which contributes to the accuracy of inference under treatment heterogeneity [18,25,31].Several other multivariate modelling procedures, such as the multivariate probit model [32] or multivariate logistic regression models [33,34], have a more restrictive correlation structure and are therefore theoretically less suitable to detect treatment heterogeneity with adequate error control.Moreover, the multivariate logistic regression model by Malik and Abraham [33] does not provide insight in the treatment effects on individual dependent variables.Copula structures have been proposed as promising multivariate alternatives as well, but these models can be difficult to apply to binary dependent variables [35][36][37].The second element, the transformation procedure, builds upon the close relation between the multinomial and multivariate parametrizations to express results on the scale of (multivariate) success probabilities and differences between them, as a more intuitive alternative to multinomial (log-)odds.The transformed parameters provide understandable insights in the treatment's performance on the trial population (i.e., ATEs) as well as subpopulations of interest (i.e., CATEs).The third element, the decision procedure, conveniently uses the Bayesian nature of the modelling procedure, allowing for inference on the posterior samples of transformed parameters.Decisions can be made in several ways to flexibly combine and weigh multiple dependent variables into a single decision for a population of interest, while taking correlations between dependent variables into account.
The main contribution of the current paper is the extension of the single-level BMLR framework to the multilevel context.The novel Bayesian multilevel multivariate logistic regression (BMMLR) framework provides BMLR with a multilevel model component and adjusts the transformation and decision procedure accordingly, to make the framework suitable for the multilevel context, resulting in accurate type I errors.The remainder of the paper is structured as follows.Section "BMMLR: Bayesian multilevel multivariate logistic regression" introduces the multilevel multivariate logistic regression model to obtain a sample from the posterior distribution of regression coefficients.Section "Transformation of posterior regression coefficients to the probability scale" outlines how to transform the obtained regression coefficients to more interpretable treatment effect parameters.Section "Decision-making based on multivariate treatment effects" discusses the decision procedure to use the treatment effect parameters for treatment comparison.Section "Numerical evaluation" demonstrates the performance of the model numerically via simulation and in Section "Illustration with IST-3 data" the methodology is illustrated with data from the IST-3.The paper concludes with a discussion in Section "Discussion".

BMMLR: Bayesian multilevel multivariate logistic regression
Consider the general case with K ∈ {1, . . ., K } binary dependent variables y k ji for subject i ∈ {1, . . ., n j } in clus- ter j ∈ {1, . . ., J } .Outcome y k ji is Bernoulli distributed with success probability θ k ji .Multivariate vector of K dependent variables, y ji = y 1 ji , . . ., y K ji is multivariate Bernoulli distributed [31].The multivariate Bernoulli distribution relies on a hybrid parameterization where a K-variate success probability in Q ji [31].The q th joint response probability in φ ji corresponds to mul- tinomial response combination h q , which has length K and is given in the q th row of the matrix of joint response combinations denoted by H: Hence, joint response probability φ q ji = p y ji = h q .Note that the joint response probability φ j and the suc- cess probability θ j are identical in the univariate situa- tion (i.e., K = 1).

Likelihood of the data
The multinomial parametrization of multivariately Bernoulli distributed data allows to model the relation between dependent variables y ji and one or multiple predictor variables via multinomial logistic regression.Joint response probability φ q ji is then regressed on a vector of P covariates, x ji = x ji0 , . . ., x ji(P−1) .Covari- ate x ji0 = 1 is a constant to estimate the intercept and covariate x jip for p ∈ {1, . . ., P − 1} can, for example, be a treatment indicator, a patient characteristic, or an interaction between these.
The relation between outcome vector y ji and covari- ate vector x ji is mapped with a multinomial logistic function that expresses the probability of y ji being in response category q, conditional on x ji : Here, ψ q ji is a linear predictor: (1) In Eq. 3, regression coefficients for response category q, γ q j = γ q 0j , . . ., γ q (P−1)j are unknown parameters of interest.Regression coefficients of response categories 1, . . ., Q − 1 are estimated, while regression coefficients of response category Q are fixed at zero (i.e., γ Q j = 0 ) to ensure identifiability of the model.The entire set of regression coefficients in cluster j is denoted with γ j .
A key aspect of multilevel models is that the regression coefficients γ q j are allowed to vary over clusters according to a common normal distribution on the second level.The common distribution for the random effects on the second level induces a dependency structure of the observations within clusters.The observations of diffferent individuals in the same clusters are assumed to be conditionally independent conditional on the clusterspecific random effects.The random effects distribution on the second level can be written as: Equation 4 consists of two elements that reflect the distributional parameters: 1 The parameter γ q p0 is the common effect in the population and does not vary over clusters.2 The random effect u q pj quantifies the cluster specific deviation from the common effect γ q p0 .Equation 4 can be adjusted to model cluster-specific predictors or cross-level interactions between cluster-level predictors and individual level-predictors.Further, Eq. 4 can be extended to model mixed effects, which combine regression coefficients that vary over clusters, which are called random effects, and regression coefficients that are identical for all clusters, which are called fixed effects.More information on the specification of more complex linear predictors can be found in general resources on multilevel models, such as Hox et al. [28] or Gelman and Hill [27].In general, it should be noted that each additional random effect increases the number of parameters, affecting computational burden and estimation precision.

Posterior distribution of regression coefficients
The primary goal of BMMLR is estimating the joint posterior distribution of unknown regression coefficients γ q j , their means γ q , and their covariance matrices q for cat- egory q ∈ 1, . . ., (Q − 1) .The posterior probability distri- bution of these parameters for category q is given by: (3) where γ q reflects the vector of average effects for cat- egory q, q is the covariance matrix of the effects across clusters for category q, and γ q j reflects the vector of cluster specific effects of cluster j for category q.The posterior probability distribution in Eq. 5 is proportional to the product of three types of probability distributions: 1 The likelihood of the data quantifies the probability of the dependent variables conditional on clusterspecific regression coefficients, p(y j |γ q j ) , which is the multinomial logistic function given by Eq. 2; 2 The probability distribution of the cluster-specific regression coefficients γ q j conditional on their means γ q and covariance matrix q for category q, p(γ q j |γ q , � q ); 3 The prior probability distributions of regression coefficient's means γ q , p(γ q ) , and covariance matrix q , p( q ) for category q, before observing the data.
As the multinomial logistic function (Eq.2) does not have a (conditionally) conjugate prior distribution, the functional form of the posterior distribution is unknown and the regression coefficients cannot be sampled directly from the posterior distribution.In the Supplemental material, we present a Gibbs sampling algorithm based on a Pólya-Gamma auxiliary variable expansion of the likelihood proposed by Polson et al. [38].The expanded likelihood has a Gaussian form and can be combined with normal prior distributions on regression coefficients γ q and an inverse-Wishart distribution on covariance matrix q .The parameters are known to have conditionally conjugate posterior distributions and allow for direct sampling from their multivariate normal and inverse-Wishart distributions respectively, resulting in MCMC chains of the joint posterior distribution in Eq. 5.
We also include a few comments on prior specification for the proposed Gibbs sampling procedure in the Supplemental material.

Transformation of posterior regression coefficients to the probability scale
The output of the BMMLR model from Section "BMMLR: Bayesian multilevel multivariate logistic regression" is an MCMC sample of posterior multinomial (5) p γ q j , γ q , � q |y ∝ p y j |γ q j p γ q j |γ q , � q p γ q p � q , regression coefficients.These regression coefficients reflect the importance of a predictor on a specific joint response combination and represent -in exponentiated form -the odds compared to reference category Q.While these regression coefficients can be insightful in a truly multinomial research problem, they have no straightforward interpretation in multivariate treatment comparison where marginal effects on individual dependent variables play a central role [15].
Transformation of regression coefficients to the multivariate probability scale forms a convenient solution to gain more intuitive insights in both joint and marginal treatment effects.These transformations rely on the close relationship between multinomial and multivariate parametrizations and can be flexibly obtained for the trial population (i.e., average treatment effects) or for subpopulations (i.e., conditional average treatment effects).They are directly suitable for statistical decision-making regarding treatment comparison.
We use the framework for transformation to the probability scale and decision-making with a posterior sample of multivariate treatment differences introduced in [18] and [25].Technical details of these procedures are presented in the Supplemental material.We use the remainder of this section to summarize and illustrate the procedure with a toy example from the IST-3-data, where we assume interest in the effect of Alteplase in the experimental condition ( T A ) compared to no treatment in the control group ( T C ).
Assume that we re-analyze a part of the IST-3 data using the BMMLR framework and take one of originally presented analyses as a starting point [6].In the selected analysis, the researchers compared the effects of Alteplase vs. control on their primary outcome, longterm independent living after six months (Indep6), among subgroups of patients based on the severity of their initial stroke.In our example, we perform a multivariate analysis of the treatment effects on the primary outcome (Indep6) and one of the secondary (shortterm) dependent variables: being stroke-free in the first seven days after the initial stroke (Strk7).We incorporate severity of the initial stroke as a predictor variable to study heterogeneity, using the grouping criteria from the original trial for the estimation of conditional average treatment effects.We aim to investigate the average treatment effect among the trial population as specified by the original eligibility criteria for inclusion.We are also interested in a potential interaction between the treatment and stroke severity, and investigate the conditional average treatment effects among patients with various severities of stroke.To take the clustered structure of the data into account, we specified a BMMLR mixedeffects model with random slopes for the intercept and the main treatment effect, resulting in the following linear predictor: In Eq. 6, x ji = (1, T ji , NIHSS ji , NIHSS ji T ji ) with treatment indicator T ji and NIHSS ji being the stroke severity score of subject i in hospital j.The Q = 4 resulting joint response categories are , which we refer to as ({11}, {10}, {01}, {00}).

Transformation to cluster-specific (differences between) probabilities
The main quantity of interest, the (cluster-specific) marginal multivariate treatment difference, is defined as the difference between cluster-specific multivariate success probabilities of the two treatments: where subscripts Aj and Cj indicate cluster-specific parameters of the (experimental) Alteplase and control treatments respectively.The elements on the right-hand sides of Eq. 7, success probabilities θ k Tj , are sums of the multinomial joint response probabilities of all response categories with a success on outcome k: The multinomial joint response probabilities φ Tj that form the elements of success probabilities θ Tj follow from plugging in posterior regression coefficients γ q j in the linear predictor (Eq.6) and the multinomial logistic link function (Eq.2) for prespecified covariates x j and for the relevant response category q.
The information in covariate vector x j , which directly affects ψ q Tj , determines the treatment as well as the subpopulation of interest.Subpopulations can be defined as a value, such as a stroke severity score of one standard deviation below or above the mean, that can be plugged in directly into Eqs. 2 and 6.When interested in (6) a subpopulation that is defined by an interval, such as the groups of stroke severity in the IST-3, the joint response probability is marginalized over the specified interval or averaged over a sample of observations in this interval.In the latter case, joint response probability φ q Tj is computed for each observed subject i ∈ 1, . . ., n j via Eq. 2. The joint response probability for each treatment T is then computed by averaging over all subjects i in treatment T and cluster j.
Since the model in Section "BMMLR: Bayesian multilevel multivariate logistic regression" resulted in a sample of L posterior draws of each regression coefficient, multivariate treatment differences are computed for each draw (l) separately.The resulting posterior samples can be summarized with standard descriptive methods.

Pooling treatment effects over clusters
As a last step, cluster-specific estimates are pooled into estimates of average or conditional treatment effects among (sub)populations of interest via the following procedure: This pooling strategy weighs cluster-specific estimates by cluster size, thereby balancing data with unequal cluster sizes.

Decision-making based on multivariate treatment effects
The obtained sample of posterior treatment differences can be used for statistical decision-making regarding treatment superiority and inferiority.The multivariate context has multiple options to define superiority and inferiority, leaving much flexibility to combine and prioritize dependent variables in a suitable way.We shortly discuss four different decision rules to give some idea of possibilities, without intending to be exhaustive or complete.The presented rules have different theoretical underpinnings and distinct statistical properties, such as acceptance regions, a priori estimated sample sizes, cutoff values, and error rates.The acceptance regions for superiority decisions of the four presented rules are graphically presented in Fig. 1.More details to guide an informed choice for one of these decision rules in practice can be found in Kavelaars et al. [18].
Three of these rules originate from guidelines of the Food and Drug Administration (FDA) [15].The FDA defines superiority as a treatment difference larger than (10) zero on the primary outcome (which we refer to as "Single rule"), on all dependent variables ("All rule") or on any of the dependent variables ("Any rule").The Single rule reduces the statistical analysis to a univariate problem, using only the treatment difference of independent living after 6 months as a primary outcome (Single rule).The All and Any rules make no distinction in the importance of dependent variables and assume that the short-term and long-term outcome are either both required for superiority or inferiority (All rule), or are interchangeable (Any rule).
In practice, these rules can oversimplify decisionmaking.Secondary outcome variables often contribute to treatment evaluation as well, but are given a co-primary status in the All and Any rules or are not formally included in the statistical decision procedure when the Single rule is used [17,45].To handle outcomes that differ in relative importance, linear combinations of dependent variables with pre-assigned (importance) weights have been proposed as a flexible alternative [14,16,18,46,47].We refer to a linear combination as a Compensatory rule, referring to its inherent mechanism that allows (weighted) positive and negative effects to compensate each other.The Compensatory rule allows the IST-3 data to consider the effects on the long-term much more important than the shortterm effect without completely excluding the risk of a recurrent stroke from the final decision.In such a situation, we can assign the primary outcome (Indep6) -for example -four times more weight than the secondary outcome (Strk7) and consider Alteplase superior to no treatment if a lower chance of dependency is outweighed by a small increase in the risk of a recurrent stroke.
Evidence in favor of the decision rule can be quantified by the proportion posterior draws of the pooled treatment difference δ that lie in the decision-rule spe- cific acceptance region, denoted by S R .A conclusion is reached via comparison to p cut , which is a cutoff value to balance the required amount of evidence with anticipated Type I error rates [48]: In the multivariate logistic regression model, the probability in Eq. 11 has no analytical solution.Therefore, decisions are made via the posterior MCMC-sample of L draws.Superiority is concluded when: Similarly, inferiority is concluded when: (11) In Section "Illustration with IST-3 data", we demonstrate these decision with data from the IST-3 as part of an illustration of the BMMLR framework.

Numerical evaluation
The current section presents an evaluation of the performance of the proposed BMMLR framework.The goal of the evaluation was twofold and we aimed to demonstrate: 1 how well the obtained regression coefficients and treatment effects correspond to their true values to examine bias; 2 how often the BMMLR framework results in an (in) correct superiority or inferiority conclusion to learn about decision error rates;

Setup
Fitted models The performance of the multilevel model was evaluated in a treatment comparison based on a two-level model with two dependent variables and one covariate at the subject level.We compared the method to two different (single-level) reference approaches, resulting in the following three modelling procedures: 1 The BMMLR model presented in Section "BMMLR: Bayesian multilevel multivariate logistic regression".We generated response data from a mixed effects model to include random effects while keeping the number of estimated parameters limited.We included an interaction between the treatment and the covariate as well, resulting in the following linear predictor: In line with previous notation, x ji = (1, T ji , w ji , w ji T ji ) in Eq. 14.Further, vec- tor γ q j = (γ q 0j , γ q 1j ) reflects random effects with multivariate normally distributed errors (i.e., (u q 0j , u q 1j ) ∼ N (0, q ) ) for the intercept and main effect of the treatment.Regression coefficients β q = (β q 2 , β q 3 ) reflect fixed effects for the covariate and covariate-by-treatment interaction.2 Single-level Bayesian multivariate logistic regression model (BMLR; [25]), as a first reference approach.
For this model, we use a restricted version of Eq. 14 with fixed regression coefficients only: MCMC chains were sampled with a simplified version of the Gibbs sampling procedure in the Supplemental material, that iterates over β and .The model shares information in the estimation of conditional treatment effects with sufficient power, but does not take the multilevel structure of the data into account.
3 Single-level unconditional Bayesian multivariate Bernoulli analysis (BMB; [18]), as a second reference approach.Bayesian multivariate Bernoulli analysis relies on a conjugate multinomial likelihood and Dirichlet prior.MCMC draws are sampled directly from the posterior Dirichlet distribution with parameters J j=1 n j i=1 I(y ji = h q ) + α 0q , where we assigned prior hyperparameters α 0 = (0.01, 0.01, 0.01, 0.01) .The approach can estimate homogeneous treatment effects accurately and fast, but cannot deal with multilevel data.Moreover, conditional treatment effects originate from subsampling, which is less powerful than regression due to the isolation from other information.
Effect size We specified a heterogeneous treatment effect, with pooled average treatment differences of zero ( δ = (0, 0) , δ(w) = 0 ) and pooled conditional treat- ment differences larger than zero ( δ = (0.25, 0.15) , δ(w) = 0.20 ).This scenario aimed to demonstrate the Type I error rate among the trial population.It reflects a least favorable treatment difference for the Any and Compensatory rules and should therefore result in the targeted Type I error rate for these rules to be considered accurate.The conditional treatment effect provided (14) insight in the power to conclude superiority among the subpopulation under consideration.Outcome variables were negatively correlated ( ρ ATE = −.157 ; ρ CATE = −.20 ).The regression parameters used to gener- ate these effects are presented in Table 1.
For the BMMLR model, the covariance matrix of random effects, q , was specified as: for all q ∈ 1, . . ., Q − 1.

Sample size
We varied the sample sizes at the cluster and subject level.Since there are no clear guidelines regarding sample size computations in multilevel multivariate logistic regression, we explored performance of the model for different numbers of clusters and different sample sizes within clusters.Specifically, we used number of clusters J ∈ {10, 100} and observations per cluster n j ∈ {10, 100} for each treatment, resulting in four differ- ent sample size combinations.

Procedure
Data generation For each sample size, we sampled 1000 datasets under the mixed effects model in Eq. 14 with the true regression parameters in Table 1.We assigned n j participants to each treatment T and generated covari- ate x from a standard normal distribution.We sampled response vector y ji from a multinomial distribution with probabilities φ ji .
Gibbs sampling Regression coefficients for the BMMLR and BMLR models were estimated via the Gibbs sampling procedure in the Supplemental material.We ran two MCMC-chains via the Gibbs sampler introduced in Section "BMMLR: Bayesian multilevel multivariate logistic regression" with L = 50, 000 iterations plus 10, 000 burn-in iterations.This large number of iterations aims to minimize the influence of the potentially high autocorrelations between parameters in multilevel (16) 0.1 0 0 0.1 we ensured that the multivariate potential scale reduction factor was below 1.10.
Prior specification For the multilevel model (BMMLR), we specified diffuse priors, which were multivariate normally distributed for regression coefficients: The specified variance matrices of regression coefficients were motivated by a paper of Gelman et al. [50], who recommend to choose a variance parameter that results in realistic support for the probability parameter after non-linear transformation in logistic regression.We specified an inverse-Wishart prior distribution for the covariance matrix: The regression parameters β q in the single-level regres- sion model (BMLR) were the same as in the multivariate approach (i.e., independent normal priors with means of 0 and variances of 10).

Transformation and decision-making
We applied the procedure presented in the Supplemental material to use the obtained MCMC-chains of posterior regression coefficients for superiority decision-making.We thinned the chains in the transformation procedure with a factor 10 to reduce the computational burden.
We considered two different effects: 1 an average treatment effect for the trial population; 2 a conditional treatment effect for a subpopulation scoring one standard deviation below the mean or lower; The treatment effects required marginalization over the interval that defined the (sub)population, which we accomplished by averaging over joint response probabilities computed for the empirical sample of data.Cluster-specific treatment effects were weighed by their ( 17) sample sizes to produce a pooled estimate of the treatment difference.Decisions were made with a right-sided test for the All, Any, and Compensatory (equal weights, w = (0.50, 0.50) ) rules with formal superiority regions: We computed the probability to conclude superiority ( p Sup ) as the proportion of posterior treatment differ- ences in the superiority region via Eq.11.The targeted Type I-error rate of α = .05corresponded to decision threshold p cut = 1 − α = 0.95 (Compensatory and All rules) and a for multiple tests corrected threshold p cut = 1 − α K = 0.975 (Any rule) [17,18,48].

Software
We conducted our analyses in R and made use of several existing packages [51].Pólya-Gamma variables were drawn with the pgdraw package [52].Further, we drew variables from the multivariate normal, truncated normal, and Dirichlet distributions with the MASS, msm, and MCMCpack packages respectively [53][54][55].MCMC chains were diagnosed with the coda and mcmcse packages [56,57].We parallellized the simulation procedure with the foreach and doParallel packages [58,59] and created LaTeX tables with the xtable package [60].The R code used to generate results can be found on GitHub https:// github.com/ Xynth iaKav elaars/ Bayes ianmulti level-multi varia te-logis tic-regre ssion.

Results
The current subsection presents the results of the simulation study.Presented decision error rates are in Table 2.

Bias
Regression coefficients, variance matrices and treatment effects (success probabilities, treatment differences) could be estimated without bias in all sample sizes and data generating mechanisms.The absolute average deviation of mean point estimates from true values was smaller than .01.

Decision error rates
Type I error rates The average treatment effect demonstrated that the probability to incorrectly conclude superiority in multilevel regression (BMMLR) was close to the targeted .05under a least favorable scenario (i.e., Any and Compensatory decision rules).In general, both reference approaches suffered from inflated Type I error to a similar extent.
The amount of inflation in BMMLR was affected by sample size: A large number of clusters ( J = 100 ) and/or a large subjects per cluster ( n j = 100 ) had the largest Type I error rates, with the combination J = 100, n j = 100 resulting in the most severe inflation.On the other hand, a small number of clusters and a small number of subjects per cluster ( J = 10, n j = 10 ) resulted in an accept- able Type I error rate for the single-level BMLR model as well, suggesting some robustness against the violation of the assumption of independent observations in the current setup.In general, the number of subjects per cluster appeared more influential on the Type I error rate inflation than the number of clusters, as demonstrated by the two scenarios with an identical total sample size ( J = 10, n j = 100 and J = 100, n j = 10 ): A small number of clusters and a large sample size per cluster resulted in larger Type I error rates than a large number of clusters with a small sample size per cluster.Keeping everything else constant, a larger number of clusters meant more independent units, implying that the assumption of independent observations was violated less severely.In other words, the need for a multilevel model was more prominent when the number of clusters was small.A similar pattern was seen under the All rule, although Type I errors were small in general.This was expected, since a) the All rule is known to be the most conservative of the three introduced rules; and b) the treatment difference was smaller than the least favorable scenario of this decision rule.
Power The conditional treatment effect demonstrated the power to correctly conclude superiority for all three rules.Three results were highlighted.First, the multilevel model (BMMLR) is more powerful when the number of clusters is higher.The two conditions with an equal total sample size showed a .30difference in power under the All rule.The other rules showed the same patterns, but had too high proportions of superiority conclusions to clearly distinguish the sample size conditions: The power in the other conditions equaled or was close to the maximum of 1.000.
Second, the single-level regression model (BMLR) resulted in more superiority conclusions than the multilevel regression model, implying that the posterior distributions of treatment differences of the single-level regression model had smaller variances.Again, differences were best illustrated by the All rule and the condition with small sample sizes for the Any and Compensatory decision rules, as these proportions were well below the maximum.Similar to the Type I error rates, the differences between the proportions of superiority conclusions appeared to be subject to the number of clusters, as demonstrated by a comparison of the two conditions with an identical total sample size under the All rule.The multilevel model was less powerful than the single-level model when the number of clusters was low in particular, being in line with non-independence of clustered observations.
Third, the multivariate Bernoulli model (BMB) has low power overall, despite the underestimation of variance due to falsely assuming independent observations.As a subsampling approach, conditional treatments were fitted on the part of the data that makes up the subpopulation of interest.Especially the J = 10 , n j = 10 condition suffered from a small remaining sample size.

Illustration with IST-3 data
To illustrate the proposed framework with real data, we re-analyzed a subset of data from the Third International Stroke Trial using the BMMLR framework [6,7].The included 3, 035 subjects in the IST-3 were recruited from 156 different hospitals in 12 different countries, resulting in multilevel data from patients clustered within hospitals and hospitals clustered within countries.We selected a two-level subset of 1, 447 subjects from 75 hospitals in the United Kingdom with a known health and survival status at six months after the initial stroke and a known or predicted severity score of the initial stroke (NIH Stroke Score; NIHSS) at randomisation.The cluster sizes were skewed and ranged from 1 to 117, with a median cluster size of 7 (SD: 26.66).Of the selected subset of data, n A = 716 subjects were in the Alteplase group (treatment = 1) and n C = 731 subjects were in the control group (treatment = 0).We compared the effects of the two treatments on a) being stroke-free for seven days (0 = no; 1 = yes) and b) long-term independent living at six months (0 = no, 1 = yes), while taking the severity of the initial stroke into account.The NIHSS can range from 0 to 42 with a higher score indicating a more severe stroke.The average stroke severity score in the IST-3 was 13.12 (SD: 6.91) and comparable in both treatment groups.

Method
We fitted our model with random slopes for the intercept and the treatment effect.We sought to compare our multilevel model (BMMLR) to the two single-level models (BMLR and BMB) from the "Numerical evaluation" section in treatment comparison of Alteplase and control on dependency after six months ( δ Indep6 ) and recurrent stroke within seven days ( δ Strk7 ).The multi- level model (BMMLR) was fitted with the linear predictor in Eq. 6 and the linear predictor of the single-level regression model (BMLR) was: Prior specification For the regression coefficients in the multilevel model (BMMLR) and the single-level regression model (BMLR), we specified independent normal prior distributions with means of 0 and variances of 10.For covariance matrix q , we specified an improper uniform prior for the random effects covariance matrix for each category q, to enable testing for the presence of random effects in the model comparison step discussed later.

Gibbs sampling
We ran two MCMC-chains via the Gibbs samplers.Since the chains of regression coefficients (18)  were highly autocorrelated in the multilevel model (lag 10: β : 0.47 − 0.59 ; γ : 0.62 − 0.80 , : −0.01 − 0.38 ), we sampled a large number of 500, 000 iterations plus 10, 000 burnin iterations.The multivariate potential scale reduction factor was below 1.01 for all parameters, implying that there were no signals of non-convergence.We thinned MCMC-chains in follow-up posterior transformations with a factor 10 to reduce computational demands, resulting in inference based on L = 50, 000 draws.

Transformation and decision-making
We applied the procedures presented in the Supplemental material to the thinned MCMC-chains of posterior regression coefficients to make superiority decisions.We considered (conditional) average treatment effects among seven different (sub)populations: 1 ATE: average treatment effects for all patients in the trial population; 2 CATE -Low range: conditional average treatment effects for patients with a stroke severity score between 0 and 5; 3 CATE -Mid-Low range: conditional average treatment effects for patients with a stroke severity score between 6 and 14; 4 CATE -Mid-High range: conditional average treatment effects for patients with a stroke severity score between 15 and 24; 5 CATE -High range: conditional average treatment effects for patients with a stroke severity score above 25; 6 CATE -Low value: conditional treatment effects for patients with a stroke severity score of 5.18, corresponding to 1 standard deviation below the mean; 7 CATE -High value: conditional treatment effects for patients with a stroke severity score of 19.03, corresponding to 1 standard deviation above the mean.
The grouping criteria for CATEs of ranges were taken from the original IST-3 paper [6].We performed two-sided tests for the All, Any, and Compensatory rules.Similar to the IST-3, we used living independently as the most important outcome in the Compensatory rule and specified weights w = (0.20, 0.80) for remaining free of strokes and independent living respectively.This specification implied that the long-term outcome had four times more impact on the decision than the short-term outcome.The targeted twosided Type I-error rate of α = .05corresponded to deci- sion threshold p cut = 1 − α 2 = 0.975 (Compensatory and All rules) and a for multiple tests corrected threshold p cut = 1 − α 2K = 0.9875 (Any rule).

Model comparison
Since the true model of these real-world data is unknown, we followed up on the analysis with a comparison of model fit via Bayes factors.Bayes factors [61] quantify the relative evidence in the data between competing statistical models.Here we use default Bayes factors which avoid the need to manually specify prior distributions [62][63][64].
BMLR vs. BMB To compare the two single-level models, we computed a Bayes factor on the probabilities that the regression coefficients of the covariate ( β q 2 ) and the interaction between the covariate and the interaction ( β q 3 ) was equal to zero for all q ∈ q, . . ., Q − 1 using the BF()-function from the R-package BFpack [62].
BMMLR vs. BMLR To compare the proposed multilevel model (BMMLR) and the single-level model (BMLR), we computed empirical Bayes factors as proposed by Vieira-Generoso et al. [64], which tests whether the random effects are equal across clusters using uniform priors for the random effects covariance matrices.This test is executed separately for all six different random effects in the multilevel model.Software In addition to the software packages used in Section "Numerical evaluation", we used R packages haven to import the dataset [65] and BFpack [62] to compute Bayes factors for comparison of the two singlelevel models.Similar to "Numerical evaluation", the R code used to generate results in this section can be found on GitHub https:// github.com/ Xynth iaKav elaars/ Bayes ian-multi level-multi varia te-logis tic-regre ssion.

Results of different (sub)populations
Table 3 show how different analysis models and different decision rules provide elaborate insights in the effects of Alteplase vs. control on a combination of dependent variables among different (sub)populations.Analysis of the selected data with the BMMLR, BMLR, and BMB models gave the following results.

Average treatments effects
The average treatment effect (ATE) among the UK-based part of the trial population showed that the Alteplase group had a lower estimated probability of remaining free of strokes, a higher estimated probability of living independently, and a weighted probability difference close to zero.The three modelling procedures produced similar estimates and unanimously resulted in the conclusions that Alteplase was inferior according to the Any rule due to the effect on being free of strokes, while neither superiority nor inferiority could be concluded from the All or Compensatory rules.

Conditional average treatment effects
The four conditional average treatment effects (CATEs) that reflected subpopulations as ranges sketched a more heterogeneous picture than the average treatment effects.Whereas all ranges showed a lower probability of being free of strokes after treatment with Alteplase, these probabilities increased with the severity of the stroke.Differences between success probabilities of the two treatments appeared to increase with severity of the stroke, such that Alteplase appeared to have the largest negative effect on being stroke-free when the severity of the initial stroke was highest.A more diffuse relation between stroke severity and treatment difference emerged on long-term independent living.Alteplase resulted in a slightly lower point estimate of the probability of independent living among patients with a Low stroke severity, but resulted in a higher estimated probability of independent living in all categories of more severe strokes.Patients in the Mid-Low and Mid-High ranges of stroke severity had the largest positive effect of Alteplase on independent living.The Low and High stroke severity patients had slightly higher weighted probabilities after Alteplase, while patients with a Mid-Low and Mid-High stroke severity had weighted probabilities close to zero.These non-zero point estimates were not unanimously supported by sufficient evidence to conclude superiority or inferiority.The All and Compensatory rules remained inconclusive for all models among all subpopulations.The BMMLR and BMLR were unanimous in their conclusions for the Any rule: Inferiority was concluded for patients with a Low, Mid-Low and High stroke severity, while both superiority and inferiority were concluded for patients with a Mid-High range stroke severity.The BMB model remained inconclusive in the Low and High ranges and concluded inferiority among patients with a Mid-Low or Mid-High stroke severity, according to the Any rule.The two conditional average treatment effects (CATEs) that specified subpopulations by values illustrated treatment differences for two hypothetical individual patients.After receiving Alteplase, both patients would have a lower probability of remaining free of strokes.Only the patient with a High stroke severity value had a higher probability of long-term independent living.The weighted failure probability difference was slightly below zero for the patient with a Low stroke severity and around zero for the patient with a High stroke severity.Again, the All and Compensatory rules remained inconclusive, whereas the Any rule would result in an inferiority conclusion for the patient with a Low stroke severity and in both inferiority and superiority for the patient with a High stroke severity.
Model comparison Bayes factors [66] are computed to test whether there is evidence that a dependency structure is present in the data that is caused by the multilevel structure.The results are presented in Table 4.These results indicate that there is evidence that each of the six different random effects do not vary across clusters.This implies that the parsimonious single-level model (BMLR) is preferred over the multilevel model (BMMLR) for these specific data.This result is also in agreement with the obtained estimates which are virtually identical under both models.Model comparison between the two single-level models (BMLR vs. BMB) resulted in a logtransformed Bayes factor of 16.348, reflecting strong evidence that the a regression model (BMLR) fitted the data better than the multivariate Bernoulli (BMB) model.We give a general recommendation on model selection in the "Discussion" section.

Conclusions and discussion
Several conclusions regarding the BMMLR framework could be drawn from the presented results.First, multilevel analysis did not affect point estimates in the used subset of IST-3 data: BMMLR and BMLR models resulted in similar point estimates of δ and δ(w) , as expected from the negligible bias in the results of the simulation study.The posterior probabilities of the BMMLR and the BMLR model were similar and did not lead to different superiority or inferiority conclusions.A model comparison based on Bayes factors resulted in evidence in favor of a single-level model.It would be helpful to have information about clustering beforehand and we concluded that these results call for a proper method to quantify the degree of dependence among observations within clusters prior to the analysis.Such insights could help in clarifying the statistical urgency of a multilevel model and the appropriateness of a single-level model in advance.
Second, average treatment effects indicated an increased probability of recurrent events and a slightly decreased probability of long-term independent living after receiving the experimental treatment.However, different decision rules led to different conclusions.When the individual treatment effects had to be better on both dependent variables (All rule) or were weighted (Compensatory rule), no superiority or inferiority could be concluded.When any of the dependent variables had to demonstrate a relevant treatment difference (Any rule), both inferiority on recurrent events and superiority on long-term independent living could be concluded.This demonstrated a general potential problem with the Any rule: Contrasting decisions can result from the same analysis.Recall that the Any rule treats all outcome variables as equally important, raising the question which conclusion to favor for patients in the Mid-High range or with a High value of severity.This problem does not occur with the other rules: The All and Compensatory rules are unambiguous in their conclusions.
Third, conditional (average) treatment effects suggested a trend in heterogeneity on the individual dependent variables that was not reflected by the average treatment effect.These trends were partially supported by superiority and/or inferiority decisions, depending on the specified decision rule.Even without clear conclusions, conditional treatment effect sizes provided detailed insights: Considering average treatment effects only would have overlooked these trends.Further, the BMB model in the High range demonstrated that subgroup analysis can be a suboptimal approach to estimate conditional average treatment effects, as it can suffer from power loss.The High range subgroup is a relatively small fraction of the total sample size and performing an independent analysis on this group reduces the amount of evidence.This is reflected in the comparison to the BMMLR and BMLR methods: BMB has less extreme posterior probabilities, while treatment effect estimates are similar.

Discussion
The current paper presented the BMMLR framework as a multilevel extension to the Bayesian multivariate logistic regression (BMLR) analysis framework.The BMMLR framework consisted of three elements: The presented framework accurately handled the multilevel structure of the data in the presence of heterogeneous treatment effects on multiple (correlated) binary dependent variables.A simulation study demonstrated that the proposed model indeed a) estimated average and conditional treatment effects in multilevel data without bias; and b) resulted in statistical decisions with targeted Type I error rates.A multilevel model was clearly superior for clustered data: Naive models that did not take the multilevel structure into account resulted in inflated Type I-error rates.Further, the logistic model promoted information-sharing between clusters and subpopulations, being a more powerful alternative than subgroup analysis to identify heterogeneous treatment effects.A reanalysis of the IST-3 provided another perspective on the data than the original paper [6].Detailed insights as well as the varying treatment effects among subpopulations demonstrated the importance of a) a well-considered and specific decision rule; and b) the assessment of treatment heterogeneity.The statistical need for a multilevel model has not clearly become evident for this specific analysis.
The results suggested that a substantive cluster structure in the data does not necessarily imply a relevant statistical dependency structure between observations.We demonstrated that an implied dependency structure can be tested using empirical Bayes factors [64].If these Bayes factors provide evidence that none of the random effects varies, a single-level model gives a more parsimonious description of the data.In case of evidence for the presence of random effects due to the multilevel structure in the data, the proposed multilevel multivariate model is preferred as it gives more accurate type I errors.If there is evidence that some of the random effects do not vary across clusters, it is recommended to fix these parameters to give a more parsimonious description of the data.Application of the BMMLR framework is not limited to the presented analyses.Theoretically, the model can be adapted to the longitudinal setting, may be used to borrow strength from different trials, or may be extended to data with multiple levels of clustering for example.In practice, such extensions require additional exploration of the (computational) properties of the model, since MCMC sampling procedures appeared sensitive to the amount of autocorrelation and the number of parameters.In a related fashion, carefully choosing which random effects to include is helpful for smooth execution of multilevel analysis.The model has a large number of options regarding specification of the model, giving a lot of flexibility to model cluster effects precisely.This flexibility reduces parsimony however, as it easily increases the number of model parameters.While it is technically possible to expand the model, some care must be taken when adding many outcome variables and many covariates however.This would result in many more model parameters, which results in considerably less parsimonious description of the data and can intensify computations notably.Similarly, the multinomial setup is most suitable for a limited number of dependent variables.Increasing the number of dependent variables results in a large number of response categories, which may lead to sparsity issues.
Future research might advance the design of the BMMLR framework in multiple ways.First, a priori sample size computation and power analysis have priority in medical research.Sample sizes in logistic regression should not be too small and preferably take the success probability into account [67,68].In line with our findings, larger numbers of clusters generally appear to be more powerful than larger numbers of subjects within clusters [69], although a study into sample sizes for multilevel logistic regression analysis provided less clear results [70].Expanding and refining knowledge regarding sample sizes in multilevel models aids in strategic experimental design [71][72][73] Additionally, ethical aspects, such as risks and burden of (potentially inferior) treatment, and practical considerations, such as limited access to (large numbers of ) subjects, require more in-depth understanding of power and sample sizes.Especially in precision medicine -where treatments are targeted at specific patient populations -numbers of eligible subjects are limited and a priori power analysis helps to manage expectations in terms of duration.
Second, the methodology can be placed into a broader framework of Bayesian statistics.The framework can be extended with the computation of Bayes factors to aid in decision-making regarding superiority and inferiority as well, for example following the ideas presented in Van Ravenzwaaij et al. [74].Further, the specification of prior distributions requires consideration.Specification of non-informative priors may not be trivial.The general tendency to choose relatively large variance parameters for normally distributed prior distributions [50], does not necessarily work well with the proposed model.Covering a range far beyond realistic parameter values, can (negatively) affect the efficiency of the sampling procedure and even the resulting posterior distribution.Thus, concrete guidelines for the specification of non-informative priors would be helpful.
Third, pooling of treatment estimates can be done in several other ways than presented.In general, the pooled treatment effect over clusters is a weighted combination of cluster-specific estimates, where the weights aim to balance aspects that influence estimation and are imbalanced over clusters (e.g., cluster size or variance).Whereas we applied a cluster size-based approach, several advanced weighing procedures balance unequal variances within clusters via regularization methods (for overviews, see [75][76][77]).These weighing methods generally produce shrinkage to the mean a) when group level variance is smaller; and/or b) when sample sizes are smaller ( [27], p. 269).Such weighing procedures have interesting balancing properties but are probably less suitable for trials with clusters of single subjects, such as IST-3.These clusters have no variance, should not be discarded or merged inconsiderately, and call for the exploration of suitable weighing procedures for such data.
Finally, the BMMLR framework and multilevel models for discrete data in general lack a standard way to quantify the degree of clustering and the corresponding need for a multilevel model.Often, the degree of clustering is quantified as the variance between clusters relative to the variance within clusters, expressed via an intraclass correlation coefficient (ICC).The computation of ICCs in binary data is not straightforward: The variance within clusters -and therefore the ICC -is a function of the predictors in the model and the ICC depends on the prevalence, requiring an alternative approximation to obtain an appropriate estimate of the ICC [78][79][80][81].We leave the extension of our framework in this direction for future research.

Conclusion
The presented Bayesian method aimed to capture a multilevel structure and treatment heterogeneity simultaneously in data with multiple correlated binary outcome variables and observed covariates.The framework was built upon three major components: a multivariate logistic regression analysis, a subsequent transformation of regression coefficients to the multivariate probability scale, and a procedure to make decisions regarding treatment superiority or inferiority.When the sample is sufficiently large, treatment effects can be estimated unbiasedly and decisions regarding average and conditional treatment effects can be made with targeted error rates and a priori estimated sample sizes.The method is useful in prediction of treatment effects and decision-making within subpopulations from multiple clusters, while taking advantage of the size of the entire study sample and while properly incorporating the uncertainty in a principled probabilistic manner using the full posterior distribution.

Fig. 1
Fig. 1 Superiority regions of four decision rules applied to the IST-3.The Compensatory rule has weights w = (0.20, 0.80)

Table 1
True regression parameters used for data generation

Table 3
Average (ATE) and conditional average (CATE) treatment effects of the specified (sub)populations of the IST-3

Table 4
Logarithmic transformations of Bayes factors of BMLR vs. BMMLR