Next Article in Journal
Forecasting Mortality Trends: Advanced Techniques and the Impact of COVID-19
Previous Article in Journal
Preliminary Test Estimation for Parallel 2-Sampling in Autoregressive Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Bayesian Hierarchical Model for 2-by-2 Tables with Structural Zeros

1
Department of Statistical Science, Baylor University, Waco, TX 76798, USA
2
Mendoza College of Business, University of Notre Dame, South Bend, IN 46556, USA
*
Author to whom correspondence should be addressed.
Stats 2024, 7(4), 1159-1171; https://doi.org/10.3390/stats7040068
Submission received: 19 August 2024 / Revised: 11 October 2024 / Accepted: 12 October 2024 / Published: 16 October 2024

Abstract

:
Correlated binary data in 2 × 2 tables have been analyzed from both the frequentist and Bayesian perspectives, but a fully Bayesian hierarchical model has not yet been proposed. This is a commonly used model for correlated proportions when considering, for example, a diagnostic test performance where subjects with negative results are tested a second time. We consider a new hierarchical Bayesian model for the parameters resulting from a 2 × 2 table with a structural zero. We investigate the performance of the hierarchical model via simulation. We then illustrate the usefulness of the model by showing how a set of historical studies can be used to build a predictive distribution for a new study that can be used as a prior distribution for both the risk ratio and marginal probability of a positive test. We then show how the prior based on historical 2 × 2 tables can be used to power a future study that accounts for pre-experimental uncertainty. High-quality prior information can lead to better decision-making by improving precision in estimation and by providing realistic numbers to power studies.

1. Introduction

In some experiment designs with a binary response, a second measurement is taken for some subjects, but not all. For example, Toyota et al. (1999) [1] consider data on a screening test for tuberculosis where only those testing disease-free on a first test are given a second test. Johnson and May (1995) [2] consider a common problem in medical studies where infected individuals are given a treatment and tested for improvement. In this situation, only those patients where no improvement is observed advance to a second phase and are again checked for improvement. Data from both of these examples lead to 2 × 2 tables where one cell is fixed in advance to be 0. Table 1 shows a table of this form. In the table, the cell counts are denoted n i j to denote rows and columns with corresponding cell probability p i j . Subscripts i and j represent meeting the passing condition (=1) or not (=2) in the first and second phases, respectively. The passing condition could be a positive or negative test result (or framed as a failure or a success), depending on the problem context. In the study by Johnson and May (1995) [2], it is those who test negative for improvement who are passed to the next phase and administered yet another treatment. In contrast, some experiments involve passing only those testing positive to the second phase. Regardless of the framing, n 11 represents the count of observations meeting the passing condition in both phases, n 12 represents those passing in the first phase but not meeting the passing condition in the second, and n 22 represents the count of individuals who do not pass in the first phase and thus do not pass the second phase by default.
For a single table, the typical quantities of interest are the risk difference and risk ratio, which are often parameterized in terms of the [1, 1] cell probability p 11 and the marginal probability τ = p 11 + p 12 . The risk difference is defined to be d = τ p 11 / τ , that is, the difference between the probability of a negative response on the initial test and the conditional probability of a negative response on the second test given the initial negative response. The risk ratio is R R = p 11 / τ 2 , the ratio of the probability of passing the second phase conditional on passing the first phase with the probability of passing the first phase.
There has been considerable interest in various approaches to estimate and perform hypothesis tests about the risk difference and risk ratio for a single 2 × 2 table with a structural zero. An example from veterinary medicine originally by Agresti (2012) [3] and recently analyzed by Lu et al. (2022) [4] tests a sample of calves for a primary pneumonia infection and checked again for a secondary infection. Calves who tested negative for the primary infection cannot develop the secondary infection, resulting in a natural structural zero. Using this example as a motivation, Lu et al. (2022) [4] consider various confidence interval procedures for the risk difference. Wang et al. (2024) [5] consider an exact interval for the risk ratio and compare their new interval to both frequentist and Bayesian intervals. They apply their new interval to the two-step tuberculosis data where only negative subjects are tested twice.
Though considerable work has been completed on estimating the parameters of the model for a single population, less work has been completed when multiple sources of information are available. Johnson and May (1995) [2] provide a frequentist approach to combining multiple tables, and Tang and Jiang (2011) [6] extend the model for a frequentist test of equality of risk ratios across tables, but to date, no Bayesian approach has looked at multiple tables. A reasonable approach to combine 2 × 2 tables from multiple trials, sites, etc., is to employ a Bayesian hierarchical model (Gelman et al.) [7]. The Bayesian hierarchical model enables a straightforward way to account for heterogeneity between the included studies and provides an operational approach to incorporate prior information and estimate numerous quantities simultaneously. The pooling of information across studies can provide more efficient estimation of all the study level risk ratios or risk differences. Also, the hierarchical model can easily facilitate the ranking and selection of sites by the effectiveness of a treatment or risk of infection.
The hierarchical model we propose here is similar in form to a random effects meta-analysis. Several authors, primarily in pharmaceutical applications, have discussed methods for using historical data to derive priors for a new study by predicting the parameter values based on a meta-analysis of historical studies. Sutton et al. (2007) [8] consider a hybrid Bayesian-frequentist approach to power a future study using a meta-analysis of historical studies to help determine the effect size. These priors are sometimes referred to as meta-analytic predictive (MAP) priors. Neuenschwander et al. (2010) [9] provide an early example. Weber et al. (2021) [10] provide a user-friendly R package to build MAP priors based on historical studies for experiments with binomial, Poisson, and normally distributed outcomes. These priors can be used as informative priors for new studies but can also be used as part of a sample size determination procedure. Recent examples include Du and Wang (2016) [11] and Qi et al. (2023) [12]. Yang et al. (2016) [13] and Fan et al. (2024) [14] focus especially on the value of meta-analysis in the case where the focal event is rare, such as the adverse effects of proposed interventions.
In this paper, we propose a hierarchical model for a series of 2 × 2 tables with a structural zero. The main model we consider is a Bayesian version of Tang and Jiang (2006) [6] where interest is in the risk ratio. The borrowing of strength across the studies improves inferences about the individual study parameters while also allowing for a variety of interesting statistical inference procedures. We apply the meta-analytic predictive prior method of Neuenschwander et al. (2010) [9] to develop a simulation-based induced prior for the parameters of a new study. We illustrate how this prior can be used as a prior for data analysis and to determine the sample size required for a future study that achieves the desired power or probability of a successful trial. We propose an alternative hierarchical model in Section 5 for the case where the risk difference is of interest.

2. Bayesian Model

In this section, we describe the hierarchical Bayesian model we will use for inference for combining 2 × 2 tables with structural zeros. Suppose we observe data from K sites or studies yielding 2 × 2 tables in the form of Table 1. We assume the parameters of the tables are exchangeable. The hierarchical model we propose is the following. For each study, we have count vector z i = ( n 11 , n 12 , n 22 ), and
z i trinomial ( N i , p i )
where N i is the sample size of the i t h study and p i = ( p 11 , p 12 , p 22 ). For a single study, this distribution has the likelihood
L ( p 11 i , p 12 i z i ) p 11 i n 11 i p 12 i n 12 i ( 1 p 11 i p 12 i ) N i n 11 i n 12 i
We reparameterize model (1), similar to Tang and Jiang (2011) [6], in terms of the nuisance parameter τ i and risk ratio R R i . The risk ratio is defined on the positive real line and τ i is confined between 0 and min 1 , 1 / R R i . The resulting likelihood is
L ( R R i , τ i ) i = 1 K ( R R i τ i 2 ) n 11 i ( τ i R R i τ i 2 ) n 12 i ( 1 τ i ) N i n 11 i n 12 i .
In the most general case, we consider a hierarchical model on the log risk ratios and model the τ i ’s with a hierarchical truncated beta distribution. For the risk ratios, we have
Ψ i = l o g ( R R i ) N ( μ Ψ , σ Ψ 2 ) .
Modeling these study-specific parameters with a normal distribution with shared hyper-parameters allows for “borrowing” or “pooling” of strength when estimating each of the study-level effects and can be particularly beneficial when the sample sizes are small. In general, we would imagine little information would be available on the parameters μ Ψ and σ Ψ . Reasonable weakly informative priors for the means would be μ Ψ N ( 0 , ν Ψ 2 ) , where ν Ψ 2 is a suitably chosen large number such as 100. Some controversy exists on what a suitable “non-informative” prior for the variance parameter is in hierarchical models such as the one we propose here. Historically, an inverse-gamma ( ϵ , ϵ ) with ϵ often chosen to be 0.001 has commonly been used. Gelman (2013) [7] has shown that this parameterization has many weaknesses, especially in the case of a small number of strata. Gelman (2013) [7] determined that the uniform distribution, half normal, and half t distributions as a prior for the standard deviation all outperform the inverse gamma for the variance. We provide code for both the cases of a uniform prior or a half-normal prior for the standard deviation σ Ψ . That is, either σ Uniform ( 0 , B ) or σ HN ( σ 0 ) , where B is the upper bound of the uniform prior, and σ 0 is the scale parameter of the half-normal.
The model for the τ ’s requires careful thought due to the restriction that they are bounded by the minimum of 1 and 1 / R R i . One common hierarchical model for probabilities is to assume
ϕ i = logit ( τ ) N ( μ ϕ , σ ϕ 2 ) .
However, given the upper bound problem, we chose instead to remain on the probability scale. For this version of the hierarchical model, conditional on R R i , the τ ’s are assumed to have a truncated beta distribution,
τ | R R i beta ( a , b ) I ( 0 , min ( 1 , 1 / R R i ) )
We reparameterize the beta in terms of μ τ = a a + b and ρ τ = a + b . The grand mean, μ τ , is assigned a beta ( c , d ) prior, and ρ τ is given a gamma ( e , f ) prior. The parameters of these distributions are generally selected to be weakly informative. The joint posterior distribution of all the parameters is the product of the likelihood in (3), the normal distributions for the log risk ratio in (4), the beta distributions for the τ i ’s, and the priors for the parameters at the top of the hierarchy. There is no apparent closed form for any of the parameters of this model. We use the software JAGS version 4.3.2 to perform inference. The code is available at https://github.com/will-stamey1/metaanalytic_for_2by2s. An alternative formulation of the hierarchical model that is more convenient for some scenarios is provided in Section 5.

Meta Analytic-Based Prior

The hierarchical model described above can be used to perform inferences on the parameters of interest but can also be used to determine a prior for a new study. Our framework is similar to that of Sutton et al. (2007) [8], Neuenschwander et al. (2010) [9], and Qi et al. (2023) [12]. As mentioned previously, we assume the parameters in the different studies to be exchangeable. This calls for careful selection of the included studies.
To determine the meta-analytic prior, we augment the likelihood and priors of the historical studies described above with a new study with yet-to-be-observed data treated as missing. This new study with parameters R R * and τ * is incorporated into the MCMC scheme. The model, based on the borrowed information from the historical studies, provides what are essentially prior-predictive distributions for both the study-level parameters and the unobserved data of the new study.
In order to obtain the predictive distribution for the parameters of the new study, we add the following trinomial distribution to the likelihood of the hierarchical model:
z * trinomial ( N * , p * )
where p * relates to parameters τ * and R R * following the reparameterization of the hierarchical model before.
The predictive distribution for the parameters can be used as a prior distribution for the parameters of the new study. Weber et al. [10] use a mixture of parametric distributions to approximate the prior with the R package RBesT. The Monte Carlo samples from the meta-analysis can also be used as a numerical approximation to the prior. The prior predictive distribution of the data for the new study can be used to simulate likely values for the data in order to either power a new study or look at the probability of a successful trial for a specific sample size.

3. Simulation Study

We conducted a simulation to investigate both the performance of the hierarchical model and the impact of between-trial variability on the informativeness of the resulting prior. We expand on the number of groups but use the data of Tang and Jiang (2011) [6] to determine the parameter values for our first simulation. The dataset they examine is for a two-phase treatment regimen in which a sample of patients first receives an initial treatment. Those who do not show improvement then proceed to a follow-up treatment. The parameter of interest is the risk ratio. Values less than 1 indicate that the second regimen leads to an improvement. In the work of Tang and Jiang [6], the groups are based on the severity of disease. This would likely violate the exchangeabilty assumption of our model, but the example works as an illustration. They find the τ s’ center approximately around 0.4 and the risk ratios’ center approximately at 0.7. Therefore, for our simulation, we chose μ τ = 0.4, ρ τ = 20, and μ Ψ = log(0.7). We also looked at the case where the risk ratio is centered above one to make sure performance was not impacted in that case.
We are interested in the impact of the between-study variability of the risk ratios, so we consider two values of σ Ψ , 0.075 and 0.15. Also of interest is the effect of the amount of information. To observe this, we vary the number of studies (5, 25) and the number of observations in each study. The sample sizes for each study are randomly generated from either (50, 100) or (100, 200). For these 16 combinations, we generated 1000 datasets for each combination. For each dataset, the values at the top of the hierarchy remain the same, but, the study level τ i ’s and R R i ’s vary. Therefore, for the simulation, we keep track of the average posterior mean, standard deviation, and coverage of 95% intervals for μ ϕ , σ ϕ , μ τ , and ρ τ . For the study-level parameters, we keep track of the total average bias for all the τ i ’s and R R i and the overall coverage of the 95% intervals. The total average bias is calculated as
Average Percent Bias = 1 B · K 1 B i = 1 K τ i ^ τ i τ i × 100
and
Average Percent Bias = 1 B · K 1 B i = 1 K R R ^ i R R i R R i × 100
where τ ^ 1 i is the posterior mean of τ i , and R R ^ i is the posterior mean for R R i .
The models converged successfully, with simulation runs consistently showing Gelman–Rubin statistics equal too or extremely close to 1 for all parameters. In Table 2, we provide the bias, confidence interval width, and coverage of 95% intervals for the parameters at the highest level of the risk ratio. In all cases, the coverage is at or above nominal, and the intervals become more narrow as both the sample size and number of studies increase. The estimate for the between-trial standard deviation exhibits substantial bias for most parameter and sample size combinations. We considered both the half-normal and uniform priors for the standard deviation, and in both cases, the posterior mean was significantly higher than the true value. However, the coverage was still nominal and the bias did lessen as the number of studies increased.
Table 3 provides the same results for the model for the marginal probability. Again, coverage for both of the parameters was at or above nominal, and the bias decreased as the sample size and number of studies increased.
Table 4 provides results for the study-level parameters. These parameters changed with each dataset, which is why we looked at the overall bias using Equations (8) and (9) and the combined coverage. As can be seen, at the study level, the parameters are well estimated with only moderate biases in the case of only five studies and smaller sample sizes. The other combinations have relatively low bias and good coverage.
Finally, Table 5 provides the average of the predicted distributions for the parameters of the new studies. As can be seen, the predictive distributions are centered approximately at the mean of the population distribution, and the 95% interval widths decrease for the larger study and sample size cases demonstrating that the method would provide reasonable prior distributions based on these historical studies.

4. Sample Size Determination

We now illustrate how the prior distribution generated from the historical studies can be used to power a future study. Without loss of generality, we assume the hypothesis of interest is:
H 0 : RR * = 1
H a : RR * < 1
The sample size determination procedure we consider here is simulation-based and follows from [15], which has been modified to use with MAP priors by, for example, Qi et al. (2023) [12]. The method allows for distinct priors for two different parts of the procedure. The design prior is necessarily informative and is used to predict what future data will look like. The design prior can be constructed from historical data or expert opinion. It is important to note that the design prior is similar to “design parameters” in frequentist sample size determination and should match study goals. For instance, for a frequentist sample size determination, the study is powered for a particular effect size of interest that matches, for instance, regulatory requirements or effects observed in previous studies. In contrast, the design prior specifies a distribution of that parameter on which the probability of detection is conditioned. This results in a probability of rejection/success, etc., given the parameter is distributed in the manner specified by the design prior.
At the design stage, design priors can account for uncertainty regarding both nuisance parameters and primary parameters, or just in the nuisance parameters. That is, a prior can be assigned to the nuisance parameter(s) to account for pre-experimental uncertainty while a fixed value is assigned to the parameter of interest in the manner of frequentist sample-size planning. The fixed value is usually set at some practically significant threshold. When a design prior is used for the focal parameter, the resulting rejection rate is often referred to as “assurance” or “Bayesian assurance” instead of power; see, for example, Pan and Bannerjee (2023) [16]. The algorithm we propose is provided below.
  • Using historical studies, fit the meta-analysis model and determine the design priors for the current study parameters.
  • Sample values from R R * and τ * . A different value for R R * is drawn if interest is in assurance and is fixed at a particular value for power.
  • For a sample of size n*, simulate new study data based on RR* and p*.
  • Analyze the data (with either non-informative priors or using the informative prior) and determine posterior probability R R * < 1 .
  • Repeat steps 2–4 a large number of times and calculate power (or assurance for random RR*) by computing the proportion of datasets where the null is rejected.
  • Repeat steps 2–5 with different sample sizes to obtain the desired power/probability of a successful trial.
As an example, to formulate a design prior, we simulated 25 datasets of size n = 30 each. For this example, the global risk ratio was assumed to be 0.55, and the mean of the marginal probabilities was assumed to be 0.4. Suppose we seek a power of 0.8, Type I error probability of 0.05, and want to find the sample size to detect a risk ratio of 0.55. At the design stage, considering both the risk ratio and the marginal probability as fixed yields sample sizes similar to Tang et al. (2006) [17]. The fully Bayesian approach allows for the incorporation of uncertainty at the design stage. Figure 1 provides the powers/assurance for three cases. The first is where the risk ratio is assumed as fixed at 0.55 and the marginal probability at 0.366. The second replaces the fixed value of π 1 + with the induced prior from the predictive distribution based on the hierarchical model. Not surprisingly, this uncertainty at the design stage leads to a larger required sample size. Finally, we replaced the fixed value of the risk ratio with the predictive distribution to allow for uncertainty in both parameters. The resulting probability is no longer “power” because it is not a probability of rejection for a specific value. This quantity is commonly called assurance, and depending on the amount of variability in the design prior for the parameter of interest, the assurance might not converge to one as the sample size increases.
To achieve a power/assurance of 0.8, we require approximately 140 observations if both parameters are assumed fixed at the design stage. If uncertainty in τ is accounted for at the design stage with the prior from the previous studies, then a sample size of approximately 180 observations is required. If the historical studies are used to provide informative priors for both parameters at the design stage, a sample of approximately 330 observations is required to obtain an assurance of 0.8.

5. Example Walkthrough

In this section, we walk through a single example illustrating how to estimate parameters and develop a prior for 2 × 2 tables with structural zeros. Suppose an investigator wants to conduct a new experiment investigating the relative effect of two treatments for a disease. The first treatment is fairly unobtrusive and can be taken at home while the second involves a more intensive and costly inpatient care regime at a clinic. Because of this difference, the unobtrusive treatment is attempted first for each patient, and the inpatient care regime is only tested on the patients for whom the first treatment is deemed ineffective.
The investigator wants to estimate the risk ratio of these two treatments, i.e., the ratio of the probability of failure of the inpatient care regime (given the first treatment was unsuccessful) to the probability of failure of the first treatment. The investigator seeks to derive an informed prior for the new experiment from historic information. Eight prior studies have already been conducted in different cities and at different times. Since the nature of disease can vary based on location (due to economic differences) and time (due to shocks), the risk ratio is expected to vary across these experiments. However, the phenomenon being studied is the same, so we should expect that the risk ratios from the different experiments are related, and we would want to borrow information across the trials. A hierarchical model-based prior can be used to synthesize the historic information in a principled way.
We generate a dataset of 8 2 × 2 tables with sample sizes randomly generated between 200 and 300 participants. The true mean of the risk ratios is 0.5, indicating that the second treatment (administered after failure of the first) fails to improve the patients half as often as the first. The individual experiments’ log risk ratios are generated around this mean with a standard deviation of 0.3 (we transform the risk ratios using the log in order to realistically use the normal distribution). We generate the parameter τ with a centrality parameter 0.4 and a value of ρ of 20. We place relatively diffuse priors on the hierarchical parameters of the log risk ratio.
Using the R functions available on the GitHub page, we perform the analysis with the following function:
    history <- make_history(
             # History Data: ###########
             data = counts_data
             # Prior Parameters: #######
             prior_lnRRmu_mu = log(1), prior_lnRRmu_tau = 1/100,
             prior_lnRRtau_lo = 0, prior_lnRRtau_hi = 1,
             prior_p1mu_alpha = 1, prior_p1mu_beta = 1,
             prior_p1rho_alpha = 1, prior_p1rho_beta = 1)
Here, counts_data holds a data frame of counts where each row is a single experiment and each column is the counts of a possible outcome, corresponding to the cells in Table 1.
> counts_data
    n11 n12 n22
   1  4  53 179
   2  38 104 157
   3  5  50 148
   4  22 77 123
   5  29 102 167
   6  22 76 167
   7  17 98 154
   8  56 96 118
This history object can be submitted to the hm2x2prior function, which can then return samples from the MCMC analysis of both the model parameters for the observed data and prior distributions of the new study parameters: rate-ratio R R * and τ * .
The approximate distributions of the hierarchical model priors from the MCMC samples are shown in Figure 2. Optionally, a package like RBesT can be used to produce a parametric approximation of the resulting prior for ease of use with the new experiment.

6. Alternative Model

The hierarchical model described in Section 2 is convenient if interest is in the risk ratio. There are other inferential targets of interest for this model. If interest is the risk difference, the conditional probability p 11 / τ , or in homogeneity across tables, the parameterization of Johnson and May (1995) [2] might be preferred. We provide an alternative hierarchical model for these other circumstances and provide an example of how it can be used. The JAGS code for this model is found on the same github site as the earlier model.
At the first level, we assume the same data model as before,
z i trinomial ( N i , p i )
We reparameterize the model in terms of the marginal probability τ i = p 11 i + p 12 i and the conditional probability α i = p 11 i p 11 i + p 12 i . This parameterization has the benefit that both parameters have support [0, 1]. The resulting likelihood is
L ( α , τ ) α i n 11 i ( 1 α i ) n 12 i τ i n 11 i + n 12 i ( 1 τ i ) N i n 11 i n 12 i
Since both α i and τ i are defined on [0, 1], we assume normal models on the logits of these parameters,
ϕ i = l o g i t ( τ i ) N ( μ ϕ , σ ϕ 2 )
and
γ i = l o g i t ( α i ) N ( μ γ , σ γ 2 ) .
We assume the following priors for the top level of the hierarchy,
μ ϕ N ( 0 , 10 )
σ ϕ U ( 0 , 2 )
μ γ N ( 0 , 10 )
σ γ U ( 0 , 2 ) .
As mentioned previously, there are several options for priors on the between-trial standard deviation, with the uniform being one option along with half-normal and half-t distributions. The result of the analysis was that the strata level parameters were not sensitive to changes in the upper bound on the uniform between 1 and 10 and were similar to using a half-normal as well. Because there are only three groups, for large values of the upper bound on the uniform, there was some sensitivity on μ ϕ and μ γ . However, it is well-known that σ ϕ or σ γ exceeding two on the log-odds scale implies extreme differences in the probabilities between the strata, that is, probabilities for some groups close to 0 and others close to 1, which is unlikely in this case.
The risk difference for the ith study is δ i = τ i α i . It might be of interest to test that the conditional and marginal probabilities are equal but still allow for heterogeneity across strata. That is, the difference in each stratum is zero; thus, τ i = α i . This simplifies the data model to the following likelihood:
L ( τ ) τ i 2 n 11 i ( ( 1 τ i ) τ i ) n 12 i ( 1 τ i ) N i n 11 i n 12 i
For this reduced model, only a hierarchical model for the τ i is required, and it is the same as described above.
Finally, an intermediate model would be where the risk differences are equal across strata but still have baseline heterogeneity. That is, α i = τ i δ where δ is the common risk difference. In this case, after replacing each α i with τ i δ , the likelihood is
L ( δ , τ ) ( τ i δ ) n 11 i ( 1 τ i + δ ) n 12 i τ i n 1 i + n 2 i ( 1 τ i ) N i n 11 i n 12 i
This model requires a prior for δ . For the multinomial probabilities above to be bounded between zero and one, we require
m a x ( τ i ) 1 δ m i n ( τ i )
thus, we give δ a beta [ A , B ] ( a , b ) prior where A = max ( τ ) 1 , B = min ( τ i ) , and a and b can be chosen to reflect expert opinion about the location of δ . In the absence of information, setting a = b = 1 yields a uniform prior over the support.
For a specific dataset, the best-fitting model can be determined by comparing the Deviance Information Criterion numbers. As an example, we consider data found in Johnson and May (1995) [2]. The data is displayed in Table 6. In this example, patients are stratified by the severity of the disease, and an initial treatment is administered. After one week, patients who demonstrate improvement are discharged, while patients who do not show improvement are given a second phase and evaluated again one week later. The resulting data are provided in Table 5. We fit the models described above using the JAGS software using two chains with a 5000 iteration burn-in and inferences based on 25,000 iterations. Convergence was monitored via the Gelman–Rubin statistic and graphically with the history plots. No indication of a lack of convergence was noted. The DIC for the model where the marginal and conditional probabilities are equal is 69.41, the DIC for the intermediate model with equal δ across strata was found to be 66.93, while the DIC for the most general model was found to be 69.30. Thus, the DIC indicates that the model where the differences between the conditional and marginal probabilities are equal across strata is the best fitting.

7. Discussion

Numerous frequentist and Bayesian procedures have been proposed for estimating parameters in a correlated 2 × 2 table with a structural zero. The Bayesian hierarchical model we propose extends previous work in that it is the first Bayesian model to consider estimation in the context of multiple tables. Further, it provides tools to use this set of tables for use in future studies. These tools use the informative priors derived from historical data to assist with analysis and estimation or serve as design priors in sample size planning.
The simulation study illustrated that, as the sample sizes and number of studies increased, all parameters were well estimated, except the between-study standard deviation, which was overestimated. Though the overestimation diminishes as numbers of studies increase, it does not appear to go away. Adding an informative prior does improve estimation. However, even with this overestimation of the variance, the study-level parameters are very well estimated, so unless interest centers on the between-study standard deviation, we still recommend the relatively diffuse priors we used in the paper.
We are interested in expanding the applicability and deepening the effectiveness of this toolkit. One avenue for future research is the broadening of the model scope, i.e., bringing this approach to related but different table settings. Some examples are settings with the comparison of multiple second-stage treatments, or settings with K tests/treatments rather than just two.
Another route for future research involves the incorporation of covariates into the use of the hierarchical model prior for both estimation and sample size planning. In settings where the focal parameters are related to the covariate mix of a given sub-population, the prior could adapt to the covariate mix of the new experiment population, weighting the experiments in the experiment history more heavily, which are more similar. This would result in a more effective use of the available information.

Author Contributions

Conceptualization, J.S.; Methodology, J.S. and W.S.; software, W.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Toyota, M.; Kudo, K.; Sumiya, M.; Kobori, O. High frequency of individuals with strong reaction to tuberculin among clinical trainees. Jpn. J. Infect. Dis. 1999, 52, 128–129. [Google Scholar] [CrossRef] [PubMed]
  2. Johnson, W.D.; May, W.L. Combining 2× 2 tables that contain structural zeros. Stat. Med. 1995, 14, 1901–1911. [Google Scholar] [CrossRef]
  3. Agresti, A. Categorical Data Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  4. Lu, H.; Cai, F.; Li, Y.; Ou, X. Accurate interval estimation for the risk difference in an incomplete correlated 2 × 2 table: Calf immunity analysis. PLoS ONE 2022, 17, e0272007. [Google Scholar] [CrossRef] [PubMed]
  5. Wang, W.; Cao, X.; Xie, T. An optimal exact interval for the risk ratio in the 2 × 2 table with structural zero. Stat 2024, 13, e681. [Google Scholar] [CrossRef]
  6. Tang, N.S.; Jiang, S.P. Testing equality of risk ratios in multiple 2 × 2 tables with structural zero. Comput. Stat. Data Anal. 2011, 55, 1273–1284. [Google Scholar] [CrossRef]
  7. Gelman, A.; Stern, H.; Carlin, J.; Dunson, D.; Vehtari, A.; Rubin, D. Bayesian Data Analysis, 3rd ed.; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
  8. Sutton, A.; Cooper, N.; Jones, D.; Lambert, P.; Thompson, J.; Abrams, K. Evidence-based sample size calculations based upon updated meta-analysis. Stat. Med. 2007, 26, 2479–2500. [Google Scholar] [CrossRef] [PubMed]
  9. Neuenschwander, B.; Capkun-Niggli, G.; Branson, M.; Spiegelhalter, D. Summarizing Historical Information on Controls in Clinical Trials. Clin. Trials 2010, 7, 5–18. [Google Scholar] [CrossRef] [PubMed]
  10. Weber, S.; Li, Y.; Seaman, J.W., III; Kakizume, T.; Schmidli, H. Applying Meta-Analytic-Predictive Priors with the R Bayesian Evidence Synthesis Tools. J. Stat. Softw. 2021, 100, 1–32. [Google Scholar] [CrossRef]
  11. Du, H.; Wang, L. A Bayesian power analysis procedure considering uncertainty in effect size estimates from a meta-analysis. Multivar. Behav. Res. 2016, 51, 589–605. [Google Scholar] [CrossRef] [PubMed]
  12. Qi, H.; Rizopoulos, D.; van Rosmalen, J. Sample size calculation for clinical trials analyzed with the meta-analytic-predictive approach. Research Synthesis Methods. Res. Synth. Methods 2023, 14, 396–413. [Google Scholar] [CrossRef] [PubMed]
  13. Yang, G.; Liu, D.; Wang, J.; Xie, M.G. Meta-analysis framework for exact inferences with application to the analysis of rare events. Biometrics 2016, 72, 1378–1386. [Google Scholar] [CrossRef] [PubMed]
  14. Fan, Z.; Liu, D.; Chen, Y.; Zhang, N. Something Out of Nothing? The Infuence of Double-Zero Studies in Meta-analysis of Adverse Events in Clinical Trials. Stat. Biosci. 2024, 16, 1–19. [Google Scholar]
  15. Wang, F.; Gelfand, A.E. A simulation-based approach to Bayesian sample size determination for performance under a given model and for separating models. Stat. Sci. 2002, 17, 193–208. [Google Scholar]
  16. Pan, J.; Banerjee, S. Bayesassurance: An R Package for Calculating Sample Size and Bayesian Assurance. R J. 2023, 15/3, 138–158. [Google Scholar] [CrossRef]
  17. Tang, M.L.; Tang, N.S.; Carey, V.J. Sample size determination for 2-step studies with dichotomous response. J. Stat. Plan. Inference 2006, 136, 1166–1180. [Google Scholar] [CrossRef]
Figure 1. Rejection rates across sample sizes. The “Assurance” condition uses design priors on both R R and τ , while “Power” uses fixed values for each, and “Power w/Nuisance Prior” uses a fixed value for R R , the focal parameter, with a design prior on the nuisance parameter τ .
Figure 1. Rejection rates across sample sizes. The “Assurance” condition uses design priors on both R R and τ , while “Power” uses fixed values for each, and “Power w/Nuisance Prior” uses a fixed value for R R , the focal parameter, with a design prior on the nuisance parameter τ .
Stats 07 00068 g001
Figure 2. MCMC samples of hierarchical model prior distributions from 8 historic experiments.
Figure 2. MCMC samples of hierarchical model prior distributions from 8 historic experiments.
Stats 07 00068 g002
Table 1. Data and parameters for 2 × 2 table with structural zero.
Table 1. Data and parameters for 2 × 2 table with structural zero.
Phase II
Phase I+-Total
+ n 11 , p 11 n 12 , p 12 n 1 = n 11 + n 12 , τ = p 11 + p 12
-- n 22 , p 22 n 2 = n 22 , p 2 = p 22
Total n = n 1 + n 2 , 1 = τ + p 2
Table 2. Simulation results for μ l n ( R R ) and σ l n ( R R ) .
Table 2. Simulation results for μ l n ( R R ) and σ l n ( R R ) .
μ ln ( RR ) σ ln ( RR )
σ KNRR% BiasCI Len.Covrg.% BiasCI Len.Covrg.
0.0755 unif (100, 200)0.76.7790.7510.997245.4460.7450.976
0.0755 unif (50, 100)0.713.1360.9860.994336.6130.8410.968
0.07525 unif (100, 200)0.71.850.2090.96142.5790.2420.98
0.07525 unif (50, 100)0.73.8730.30.97799.010.3510.969
0.155 unif (100, 200)0.76.0820.8060.9995.0320.7660.963
0.155 unif (50, 100)0.714.551.0140.988131.3550.8490.988
0.1525 unif (100, 200)0.70.8660.2370.9545.8590.2840.97
0.1525 unif (50, 100)0.72.4650.3170.95721.120.3840.975
0.0755 unif (100, 200)1.22.1470.6930.997217.9510.7060.977
0.0755 unif (50, 100)1.2−1.7460.9180.995306.1850.8130.971
0.07525 unif (100, 200)1.22.0470.1920.96830.9630.2180.982
0.07525 unif (50, 100)1.25.9650.2710.97474.6250.3020.978
0.155 unif (100, 200)1.21.2850.7610.99485.2750.7410.97
0.155 unif (50, 100)1.2−5.670.9610.994121.6870.8250.965
0.1525 unif (100, 200)1.2−0.5730.2280.9536.1040.2650.968
0.1525 unif (50, 100)1.21.5930.2970.95815.180.3450.98
Table 3. Simulation results for μ τ and ρ τ .
Table 3. Simulation results for μ τ and ρ τ .
μ p ρ τ
σ KNRR% BiasCI Len.Covrg.% BiasCI Len.Covrg.
0.0755 unif (100, 200)0.72.5770.2490.985−13.42638.3080.981
0.0755 unif (50, 100)0.73.8730.2620.989−15.56738.6840.982
0.07525 unif (100, 200)0.70.4720.0950.9590.2323.5480.966
0.07525 unif (50, 100)0.70.2420.0990.9732.85226.5740.97
0.155 unif (100, 200)0.72.7460.2510.991−15.01337.5980.969
0.155 unif (50, 100)0.74.1930.2590.985−13.74239.4730.989
0.1525 unif (100, 200)0.70.6890.0950.9540.15723.5990.965
0.1525 unif (50, 100)0.70.8810.10.9611.49526.3110.972
0.0755 unif (100, 200)1.24.2160.2620.992−13.7839.0390.981
0.0755 unif (50, 100)1.25.4770.2810.986−15.8639.6490.994
0.07525 unif (100, 200)1.21.0420.1030.9480.8324.8970.965
0.07525 unif (50, 100)1.22.0550.1160.9572.3628.2980.979
0.155 unif (100, 200)1.23.6410.2640.99−15.29438.5360.982
0.155 unif (50, 100)1.25.6860.2820.984−16.82139.310.989
0.1525 unif (100, 200)1.20.5540.1040.9630.26825.3680.973
0.1525 unif (50, 100)1.21.2570.1170.9651.03128.3250.971
Table 4. Simulation results for study-level parameters.
Table 4. Simulation results for study-level parameters.
RR i τ
σ KNRR% BiasCI Len.Covrg.% BiasCI Len.Covrg.
0.0755 unif (100, 200)0.70.8570.5430.9780.430.1450.956
0.0755 unif (50, 100)0.72.130.770.981.1930.1990.96
0.07525 unif (100, 200)0.70.390.3210.9750.7940.1370.952
0.07525 unif (50, 100)0.70.6410.4610.9881.5430.1850.953
0.155 unif (100, 200)0.71.5540.5620.9620.2220.1450.957
0.155 unif (50, 100)0.72.3030.7760.9721.1670.20.961
0.1525 unif (100, 200)0.71.6020.3970.9410.8740.1390.949
0.1525 unif (50, 100)0.72.2310.5160.9621.5510.1870.951
0.0755 unif (100, 200)1.23.4960.8660.980.4360.1380.957
0.0755 unif (50, 100)1.25.4381.2430.9760.460.1910.96
0.07525 unif (100, 200)1.21.3270.5070.9720.7090.1270.952
0.07525 unif (50, 100)1.22.7210.7090.9821.4560.1740.958
0.155 unif (100, 200)1.23.3390.9250.9620.3450.1390.953
0.155 unif (50, 100)1.25.3221.2950.9670.8170.1920.956
0.1525 unif (100, 200)1.21.5610.6560.9441.1070.1320.951
0.1525 unif (50, 100)1.22.8210.8270.9551.7380.1770.95
Table 5. Simulation results for new study parameters.
Table 5. Simulation results for new study parameters.
RR * τ *
σ KNRRMeanCI LengthMeanCI Length
0.0755 unif (100, 200)0.70.7451.220.410.595
0.0755 unif (100, 200)1.21.31.9810.4170.605
0.0755 unif (50, 100)0.70.7651.5910.4150.61
0.0755 unif (50, 100)1.21.352.6350.4220.621
0.07525 unif (100, 200)0.70.7030.4020.4020.453
0.07525 unif (100, 200)1.21.2160.6420.4040.456
0.07525 unif (50, 100)0.70.7060.5760.4010.454
0.07525 unif (50, 100)1.21.2350.8920.4080.462
0.155 unif (100, 200)0.70.761.3630.4110.6
0.155 unif (100, 200)1.21.3242.2770.4150.609
0.155 unif (50, 100)0.70.771.6580.4170.604
0.155 unif (50, 100)1.21.3632.8510.4230.625
0.1525 unif (100, 200)0.70.7130.5520.4030.454
0.1525 unif (100, 200)1.21.2230.9440.4020.458
0.1525 unif (50, 100)0.70.7160.6780.4040.457
0.1525 unif (50, 100)1.21.2371.1120.4050.465
Table 6. Data for two-phase treatment stratified by severity of disease.
Table 6. Data for two-phase treatment stratified by severity of disease.
Phase II
Phase INo ImpImpTotal
Mild
No Imp4683129
Imp 176176
Total46259305
Moderate
No Imp163753
Imp 9191
Total16128141
Severe
No Imp62127
Imp 4343
Total66470
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Stamey, J.; Stamey, W. A Bayesian Hierarchical Model for 2-by-2 Tables with Structural Zeros. Stats 2024, 7, 1159-1171. https://doi.org/10.3390/stats7040068

AMA Style

Stamey J, Stamey W. A Bayesian Hierarchical Model for 2-by-2 Tables with Structural Zeros. Stats. 2024; 7(4):1159-1171. https://doi.org/10.3390/stats7040068

Chicago/Turabian Style

Stamey, James, and Will Stamey. 2024. "A Bayesian Hierarchical Model for 2-by-2 Tables with Structural Zeros" Stats 7, no. 4: 1159-1171. https://doi.org/10.3390/stats7040068

APA Style

Stamey, J., & Stamey, W. (2024). A Bayesian Hierarchical Model for 2-by-2 Tables with Structural Zeros. Stats, 7(4), 1159-1171. https://doi.org/10.3390/stats7040068

Article Metrics

Back to TopTop