Abstract
Crossover trials are specifically designed to evaluate treatment effects within individual participants through within-subject comparisons. In a standard AB/BA crossover trial, participants are randomly allocated to one of two treatment sequences: either the AB sequence (where patients receive treatment A first and then cross over to treatment B after a washout period) or the BA sequence (where patients receive B first and then cross over to A after a washout period). Asymptotic and approximate unconditional test procedures, based on two Wald-type statistics, the likelihood ratio statistic, and the score test statistic for the odds ratio (OR), are developed to evaluate the equality of treatment effects in this trial design. Additionally, confidence intervals for OR are constructed, accompanied by an approximate sample size calculation methodology to control the interval width at a pre-specified precision. Empirical analyses demonstrate that asymptotic test procedures exhibit robust performance in moderate to large sample sizes, though they occasionally yield unsatisfactory type I error rates when the sample size is small. In such cases, approximate unconditional test procedures emerge as a rigorous alternative. All proposed confidence intervals achieve satisfactory coverage probabilities, and the approximate sample size estimation method demonstrates high accuracy, as evidenced by empirical coverage probabilities aligning closely with pre-specified confidence levels under estimated sample sizes. To validate practical utility, two real examples are used to illustrate the proposed methodologies.
Keywords:
AB/BA crossover trial; approximate unconditional method; confidence interval; odds ratio; sample size determination MSC:
62F03; 62F25
1. Introduction
In a parallel-group trial design, each participant is randomly assigned to receive a single experimental treatment. This methodology serves as a cornerstone of clinical research, particularly in medical and health science investigations, due to its ability to isolate treatment effects through randomization. By contrast, crossover trials employ a distinct approach wherein each participant sequentially receives multiple experimental treatments under controlled conditions, enabling within-subject comparisons while minimizing inter-individual variability. The design’s methodological strength stems from its ability to isolate treatment effects through paired within-subject comparisons, enhancing both statistical precision and resource efficiency in clinical investigations (Hills and Armitage [1]; Fleiss [2]; Senn [3]). It can significantly reduce both costs and required sample sizes due to within-patient comparison (Sever et al. [4]). For example, in a study by Ménard et al. [5], a crossover design with alternating 2-week active treatment phases and 2-week placebo washout periods was employed to assess antihypertensive efficacy. Their findings indicated that a reduction of 5 mmHg in diastolic blood pressure between active treatment and placebo could be detected with 27 clinic patients and 20 self-monitored home patients under usual statistical risk (, ). At the conclusion of the 3-month follow-up period, each participant could continue receiving the treatment that was the most effective and the best tolerated. This demonstrates that implementing a crossover trial design (with 15-day washout periods between active treatments) combined with precise blood pressure recording not only minimizes the number of patients required for hypertension trials but also enables personalized treatment optimization for individual patients. Recent work by Grenet et al. [6] established that when within-patient correlation ranges from 0.5 to 0.9, crossover trials require only 5–25% as many participants as parallel-group trials to achieve equivalent statistical power for detecting interaction effects.
Crossover trials are commonly utilized in clinical research to compare treatments for chronic diseases. This design is particularly valuable when evaluating new versus existing therapies, as seen in conditions such as asthma and hypertension. The choice of sequences in crossover designs depends on treatment number, sequence length, and trial objectives. The simplest design is the AB/BA crossover, where participants are randomized to either AB or BA sequences to receive two treatments. For the AB treatment group, patients first receive treatment A and then cross over to treatment B after a washout period; for the BA treatment group, patients first receive treatment B and then cross over to treatment A after a washout period. The AB/BA crossover design is also known as a simple crossover or design (Jones and Kenward [7]). Due to its simplicity, the AB/BA crossover design constitutes a substantial portion of crossover trials in practice (Hills and Armitage [1]; Senn [3,8]; Mills et al. [9]). For example, Fava and Patel [10] reported that over half of 72 crossover trials in a survey of 12 major U.S. pharmaceutical companies used this design (Jones and Kenward [11]).
Significant and productive research has focused on AB/BA crossover trial designs. Under the assumption that carryover effects are absent (typically ensured by an adequate washout period eliminating the impact of the first-stage treatment on the second stage), Kershner and Federer [12] compared the variances for direct, residual, and cumulative treatment effects in two-treatment crossover designs. They considered variance estimates for the second-order residual effects and the interaction effects between period and first-order residuals. To analyze ordinal categorical data from AB/BA crossover trials, Ezzet and Whitehead [13] fitted a random effects model and used the Newton–Raphson algorithm for maximum likelihood estimation. For binomial data, Becker and Balagtas [14] developed likelihood-based methods for hypothesis testing and parameter estimation using two models: a log-linear model for marginal response probabilities and a linear model for log-odds ratios. For AB/BA crossover trials with continuous data, Jaki, Pallmann, and Wolfsegger [15] developed three parameter estimation methods and derived corresponding confidence intervals assuming a normal distribution. Lui and Chang [16] addressed methodological issues in hypothesis testing and parameter estimation for AB/BA crossover trials with ordinal outcomes.
Recently, Lui [17] investigated methods for testing inequality, non-inferiority, and equivalence of treatment effects across continuous, ordinal, binomial, and count data types. The author also provided interval estimation methods for the mean difference between two treatments and explored sample size estimation formulas using the power of the tests. Furthermore, the findings on AB/BA crossover designs were extended to crossover designs involving multiple treatments. Li et al. [18] developed a likelihood ratio test and score test for assessing non-inferiority or equivalence specifically based on the square root of the odds ratio in binomial data in AB/BA crossover trials. Lui [19,20], Lui and Chang [21] developed large-sample and exact small-sample testing procedures for equivalence and non-inferiority assessments of binomial and ordinal categorical data in incomplete block crossover designs. Using Monte Carlo simulations with maximum likelihood estimation, Zhu and Lui [22] quantified the effects of violated normality assumptions for random effects on hypothesis testing and parameter estimation in logistic regression models analyzing binomial data in AB/BA crossover designs. Although extensive research exists on treatment effects in AB/BA crossover trials, there remains a need to investigate equivalence testing based on odds ratios (OR), develop corresponding confidence intervals, and establish sample size determination methods based on interval precision. Focusing on binomial outcome data without carryover effects, this paper introduces OR-based equivalence test statistics and procedures; specifically, approximate unconditional test procedures are developed for small-sample applications. We also develop confidence interval methods for the OR and establish sample size determination techniques with controlled interval precision.
This paper is organized as follows. Model and parameter estimations are presented in Section 2, and the hypothesis test statistics and test procedures for the equivalence test based on OR are provided in Section 3. Confidence interval construction and sample size, which control the interval width, are given in Section 4 and Section 5, respectively. The performance of the proposed methods is evaluated by simulation studies in Section 6. Two examples based on real data about two new devices delivering salbutamol and relieving heartburn are analyzed in Section 7. We summarize our conclusions and a brief discussion in Section 8.
2. Model and Parameter Estimation
In this article, we consider the two-period two-treatment or AB/BA crossover trial design for comparing two treatments. Suppose that patients are randomly assigned to receive the treatment with the order AB (i.e., Group 1 ()), in which patients receive treatment A at the first period and then receive treatment B at the second period, and patients are randomly assigned to receive the treatment with the order BA (i.e., Group 2 ()), in which patients receive treatment B at the first period and then receive treatment A at the second period. After an adequate wash-out period, we assume that there is no carry-out effect. Let if the ith patient in the zth period in Group g has the positive response of interest, and ; otherwise, (, ), denote the number of patients among patients in Group g with the response vector (). Then, the random frequencies { follow the multinomial distribution with parameters and , where denote the cell probability that a randomly selected patient from the gth group has the response vector . The data structure is given in Table 1.
Table 1.
Data structure of the AB/BA crossover trial.
The results (0, 0) and (1, 1) imply that there is no significant difference between the two groups. Therefore, the results (0, 1) or (1, 0) are of greater interest. The ratio of probabilities in the cell (0, 1) to the cell (1, 0) in Group g is (). Obviously, the two probability ratios, i.e., and should be equal if there is no significant difference between the two treatments; otherwise, it means that the treatment effects of the two treatments are different. Let
Obviously, denotes that there is no significant difference between the two treatment effects. Therefore, we are interested in the following hypothesis testing:
Let = be the collection of the observed frequencies in Table 1, with , , , , ; , , , , where , , , M denotes the multinomial distribution. The likelihood function based on the observed data is given by
where and are the two constraints of the parameter. And then, the log-likelihood function based on the observed data is given by
where is a constant that does not involve the unknown parameters. The maximum likelihood estimators (MLEs) and of the parameters and are given by the following:
Similar to Li et al. [18], let and , then we can re-parameterize the log-likelihood function as
This log-likelihood function contains six parameters (, , , , ), where is the interest parameter. Given the value of , the constrained maximum likelihood estimator (CMLE) of can be obtained by solving the following equation:
where , . Let , , and , then the above equation is given by . Therefore, when , the CMLE of given the value of can be given by (please refer to Appendix A for details); otherwise, , and then the CMLEs of the other parameters given are given by
respectively. Specially, when , the CMLEs of the parameters , , , are given by
3. Hypothesis Testing
3.1. Test Statistics
For the hypothesis testing versus , we consider the following test statistics.
- (i)
- Wald-type test statistic ()
Let , and , then the above hypothesis is equivalent to the following hypothesis test:
The estimator of is given by . Using the delta method, it is easily shown that the covariance matrix of is given by
can be estimated by replacing the parameters with their MLEs given by Equation (3), which is given by
Therefore, the Wald test statistic for testing is given by
Under the null hypothesis , is asymptotically distributed as the distribution with one degree of freedom when (please refer to Appendix B for details).
- (ii)
- Wald-type test statistic ()
Let , , , be the constrained MLEs of the parameters , , , under . The variance of can be estimated by replacing the parameters with their CMLEs given in Equation (7), i.e., . Therefore, another Wald-type statistic for testing is given by
where
Under the null hypothesis, is asymptotically distributed as the distribution with one degree of freedom when (please refer to Appendix B for details).
- (iii)
- Likelihood ratio test statistic ()
The likelihood ratio statistic for testing the hypothesis versus can be given by
Under the null hypothesis , is asymptotically distributed as a chi-square distribution with one degree of freedom when .
- (iv)
- Score test statistic ()
Taking the partial derivative of the log-likelihood function given in Equation (4) with respect to , we can obtain the following score function:
According to the general theory of score test (Rao [23]), the score test statistic for testing can be given by
where is the first main diagonal element of the inverse of the Fisher information matrix (please refer to Appendix C for details). Under the null hypothesis , is asymptotically distributed as a standard normal distribution when .
3.2. Test Procedures
3.2.1. Asymptotic Test Procedure
Assume that is the upper quantile of the chi-square distribution with one degree of freedom, and is the upper quantile of the standard normal distribution. For the asymptotical test procedure, we reject the null hypothesis at the significance level when , or . It is well known that the asymptotic test procedure is easily implemented; however, it usually does not perform well for small sample size designs or sparse data structures. Therefore, we consider the following approximate unconditional test procedure.
3.2.2. Approximate Unconditional Test Procedure
Similar to Tang et al. [24], we consider the approximate unconditional test procedure when sample size is small. Let
where is the set of all possible observations given N and . Given the observed value (), we find all possible m such that the test statistic satisfies for or . For each m satisfying () or , we calculate the probability under by using the corresponding likelihood function value. The approximate unconditional p-value is computed by
or
If (), then the null hypothesis is rejected at the nominal level .
4. Confidence Interval
As pointed in several articles, for example, Alhija and Levy [25], Odgaard and Fowler [26], Sun et al. [27], Dunst and Hamby [28], and Fritz et al. [29], it is necessary to include some measures of effect size and confidence intervals for all primary outcomes, which is recommended in editorial guidelines and methodological recommendations of several prominent educational and psychological journals. Indeed, based on the Publication Manual of the American Psychological Association [30], it is well documented that confidence intervals are more informative than simple hypothesis tests, and are the best reporting strategy for the description of location and precision of the statistic. Therefore, we investigate confidence interval construction for in this section.
4.1. Wald CIs
Let and , and the variance in can be given by , where and . If we estimate the covariance matrix by the unconstrained MLEs given in (3), then the variance in can be estimated by
According to the Central Limits Theorem,
is asymptotically followed as the standard normal distribution. Therefore, the confidence interval for can be given by
Then, the confidence interval for is given by , which is denoted as .
Let , , , and are the constrained MLEs of parameters , , , and given . The variance of given can be estimated by
where
According to the Central Limits Theorem,
is asymptotically followed as the standard normal distribution. Therefore, the lower and upper confidence limits for can be calculated by solving the equation
where , , and are the constrained MLEs of , , and given by (6) and (7). The confidence interval for is denoted as , where . No closed form exists; an iterative algorithm, for example, the Newton–Raphson iterative algorithm can be used to find the solutions. This CI is denoted as .
4.2. CI Based on Likelihood Ratio Test
The likelihood ratio statistic for testing the null hypothesis is given by
Since asymptotically follows the chi-square distribution with one degree of freedom when under , then the confidence interval for is given by [, ], where are the smaller and the larger roots of the following equation with respect to :
Similar to that of Wald CIs, no closed form exists; an iterative algorithm (e.g., Newton–Raphson algorithm) can be used to find the solutions. This CI is denoted as .
4.3. CI Based on Score Test
Differentiating the log-likelihood function given in (4) with respect to , we obtain the following score function:
Let be the Fisher information matrix, which can be given by
where , is a matrix and is a symmetric matrix.
According to the general theory of efficient scores (Rao [23]), the score statistic for testing is given by
where is the first main diagonal element of the inverse of the Fisher information matrix, is asymptotically distributed as the standard normal distribution under when . Therefore, the confidence interval for is given by , with the lower limit and the upper limit can be obtained by solving the following equation:
respectively. The solutions for the equations in (14) can be obtained by the secant method (Traub [31]), and this CI is denoted as .
5. Sample Size Determination
It is an important step in clinical trials to determine the required number of participants. In this section, we investigate the determination of sample sizes for equivalence evaluation based on in AB/BA crossover trials. Lui and Chang [32]; Li et al. [18] have investigated the determination of the sample size from the perspective of testing hypothesis, so we find the sample size that can control the width of a confidence interval with a pre-specified confidence level. Let and , i.e., and . We investigate sample sizes that can control the width of the confidence interval () within with a pre-specified confidence level , i.e., the sample size N satisfies the following condition:
No closed form exists since confidence intervals , and would be obtained via iterative algorithms. The following search algorithm can be used to find the approximate solution.
Step 1. For given , , , , , r, and N, generate K random samples , , , , , , , , where and , , , ; , , , with , and .
Step 2. Based on each sample generated in Step 1, compute the confidence intervals using equations given in Section 4 and approximate the interval width by averaging the widths obtained from the K samples, which is denoted as .
Step 3. Repeat Steps 1 and 2 via smaller (or larger) N if the is less (or greater) than .
Step 4. Repeat Step 3 until the approximate half-interval-width is close to , i.e., . The resulting N is the approximate sample size.
The sample sizes of Wald CIs, CI based on , and CI based on obtained by the above algorithm are denoted as and , respectively.
6. Simulation Studies
6.1. Empirical Study for Hypothesis Testing
In this section, we investigate the performance of various test procedures for the hypothesis testing proposed in Section 3. We consider the following sample size designs: three balanced sample size designs, i.e., (i) moderate sample size ; (ii) large sample size ; (iii) large sample size and three unbalanced sample size designs, i.e., (iv) moderate sample size and ; (v) large sample size and ; (vi) large sample size and . We do not consider the approximate unconditional methods for moderate to large sample sizes due to the extremely large number of possible values for , , , , , , , . However, the comparisons between the asymptotic (AS) and approximate unconditional (AU) methods are considered for small sample settings, including (vii) and (viii) . For each sample size design, we consider twelve different settings for the nuisance parameters to investigate the performance of the various test procedures, and it is given in Table 2.
Table 2.
Parameter settings for the hypothesis testing versus .
First, we examine the behavior of the actual test size, that is, the actual type I error rate of the testing procedure. For each sample size design and parameter setting, we generate observed samples for all test statistics. For the asymptotical test procedures, the empirical type I error rate for a given test , at significance level for the settings under consideration, is simply estimated by (the number of rejections of by test at the level)/M when . The results for moderate to large sample sizes are displayed in Figure 1. According to the Reviewer’s suggestion, we report the CMLEs and the MLEs of parameters , , , , , , , under small, moderate and large sample size designs via the online Supplemental Materials, respectively. Note that the CMLEs of parameters , , and are the same as their MLEs; we only report the results of parameters , , and . For the approximate unconditional test procedures, the actual type I error rate at the level can be obtained by
where when the null hypothesis is rejected at level, and otherwise. According to Tang et al. [24], a test is liberal if its actual type I error rate exceeds 0.06, conservative if it falls below 0.04, and robust if it lies within the interval [0.04, 0.06] at significant level. We summarize the results for and are in Table 3.
Figure 1.
Boxplots of actual Type I errors for various test procedures under (a) balanced sample size designs: and (b) unbalanced sample size designs: ; ; .
Table 3.
The actual type I error rates (percent) of various test procedures for testing at under .
For the actual power performance of various test procedures, we consider the above sample size designs and the above nuisance parameter settings and = , , , , where denotes the value is from a to c with step size b. For the asymptotical test procedures, the empirical power for a given test , at significance level for the settings under consideration, is estimated by (the number of rejections of by test at the level)/M when . The simulation results for moderate to large sample sizes are displayed in Figure 2. For the approximate unconditional test procedures, the actual power at the level can be obtained by
We only reported the simulation results for the sample size design by Figure 3 due to the space limitation. According to Figure 1 and Figure 2, we can observe that the asymptotical test procedures based on all test statistics perform well in the sense that the empirical type I errors are close to the nominal level under large sample sizes, and has a slightly inflated type I error under some moderate sample sizes (e.g., ). All test procedures have similar empirical powers under moderate to large sample sizes, except that has slightly more power than the other test procedures. As expected, the empirical powers increase in all test procedures with the increase in the absolute difference between and . When the sample size is large (e.g., sample sizes and ), four test statistics have similar performance; when the sample size increases, as expected, these four testing procedures are asymptotically equivalent. According to Table 3 and Figure 3, since the sample size is very small, the power performance was not satisfactory in some cases for both asymptotical and approximate unconditional test procedures. However, approximate unconditional procedures usually outperform the asymptotic test procedures in the sense that their empirical type I errors are closer to the nominal level and have higher powers under these small sample sizes. Therefore, when the sample size is small, the approximate unconditional test procedures based on these four test statistics are recommended for practical applications.
Figure 2.
Boxplots of the actual powers for various test procedures for testing at under (a) balanced sample size designs: and (b) unbalanced sample size designs: ; ; .
Figure 3.
Comparison of empirical powers between asymptotic methods and approximate unconditional methods under small sample size design .
6.2. Empirical Study for Confidence Interval
In this section, we investigate the performance of these CIs for under various settings. The same parameter settings as those in Section 6.1 are considered. Four sample size designs were also considered, i.e., (i) ; (ii) ; (iii) and ; (iv) and . Under each sample size setting and each parameter combination, the empirical coverage probability, the empirical coverage width and the left and right non-coverage probability of the confidence interval are calculated by repeated simulation times. The three indices are calculated as follows:
- (i)
- Empirical coverage probability (ECP)
- (ii)
- Empirical coverage width (ECW)
- (iii)
- Left and right non-coverage probability (LNCP, RNCP)
Note that when or or or , the variance is undefined and its corresponding test statistics are undefined, so all Wald CIs are undefined. In this case, we use the commonly used adjustment for sparse data structures in contingency table analysis by adding 0.5 to each cell. For space limitations, we only present the simulation results for balanced sample sizes and unbalanced sample sizes in Table 4, Table 5 and Table 6, respectively. When the sample size is large, we can observe that (i) all CIs perform well in the sense that their empirical coverage probabilities are very close to the nominal confidence level; (ii) all CIs have satisfactory interval locations due to producing approximately symmetrical left-right non-coverage probabilities; (iii) similar interval widths for all CIs. However, when the sample size is not large (e.g., ), based on the Wald statistic appears to perform poorly in some parameter settings, for example, , , and . Also, there is a slightly unbalance is observed in terms of left and right non-coverage probabilities and their expected confidence width is relatively wider than other CIs under those parameter sittings.
Table 4.
The empirical coverage probability (percent), empirical coverage width, left and right non coverage probabilities (percent) of 95% confidence interval under sample size .
Table 5.
The empirical coverage probability (percent), empirical coverage width, left and right non-coverage probabilities (percent) of a 95% confidence interval under sample size .
Table 6.
The empirical coverage probability (percent), empirical coverage width, left and right non-coverage probabilities (percent) of a 95% confidence interval under sample size .
6.3. Empirical Study for Sample Size Determination
In this section, we investigate the performance of approximate sample size estimation methods that can control the width of a confidence interval within a pre-specified width at a given confidence level. For each setting of , , , , , and r values, the approximate sample sizes , , and are obtained via the algorithm proposed in Section 5. random samples are generated in the numerical algorithm. In order to investigate the accuracy of the estimated sample sizes, ECP and ECW of various CIs are calculated based on the estimated sample sizes. For given combinations of the parameters and a confidence interval , sample size , where is determined. Based on the sample size, random samples for are generated and confidence intervals are computed. The empirical coverage probabilities and empirical coverage widths based on the samples are obtained.
We consider different settings in our simulation study to study the effects of various factors. (i) To investigate the impact of , we consider various values of ranging from to with step size , with , , , , half-width , and (a) , ; (b) , ; (c) , ; (d) , . The simulation results are available in Figure 4. (ii) To investigate the effect of r, we considered various r values ranging from 0.1 to 1 with step sizes 0.1, with , , , , half-width , and (a) , ; (b) , ; (c) , ; (d) , . The simulation results are available in Figure 5.
Figure 4.
Plot of sample sizes, ECPs(%) and ECWs of CIs against with , , , , half-width , and (a) , ; (b) , ; (c) , ; (d) , .
Figure 5.
Plot of sample sizes, ECPs(%) and ECWs of CIs against r with , , , , half-width , and (a) , ; (b) , ; (c) , ; (d) , .
The simulation results indicate that (i) the required sample size increases with the increase in and decreases with the increase in r; (ii) based on the estimated sample sizes, the ECPs of all CIs are very close to the pre-specified confidence level, and the half-interval widths are also well controlled.
7. Real Example
7.1. Example of Two New Devices Delivering Salbutamol
To demonstrate the practicality and effectiveness of the proposed methods, we first consider an example of the AB/BA crossover test conducted by 3M Riker to compare the applicability of two new inhalation devices (A and B) in patients using standard inhalation devices to deliver salbutamol (Ezzet and Whitehead [13]). The response of the patient is either ‘yes’ or ‘no’, and neglecting the missing results of very few patients; the frequency of known reactions in patients is summarized in Table 7.
Table 7.
Frequency of patient responses in a cross-over study of salbutamol inhalation devices A and B.
Assume that there is no significant difference between the preferences for device B and A, i.e., we are interested in the hypothesis testing: . Based on the observed data, the MLE of the interest parameter is , and MLEs of , , and are given by , , and according to Euqation (3). The CMLEs of , , and are given by , , and according to Equation (7). The p-values of the asymptotic test procedures are based on . , and are less than 0.001. The corresponding 95% confidence intervals for , , and are [0.0788, 0.4248], [0.0710, 0.4041], [0.0767, 0.4163] and [0.0792, 0.4222], respectively. Therefore, we would reject the null hypothesis, i.e., there is a significant difference in patient preference rates between devices A and B, this conclusion is consistent with Li et al. [18]. Let , , , , , and , we consider the sample size determination, and the desired sample sizes based on , , and for controlling the interval width within are , , , , respectively. The corresponding empirical coverage probabilities are 95.36%, 94.80%, 95.08%, and 95.10%, respectively.
7.2. Example of Relieving Heartburn
Koch et al. [33] investigated an AB/BA crossover trial for comparing the efficacy of active drugs and placebo in relieving heartburn after two symptomatic meals (two meals corresponding to two cycles) from two centers. At each center, 30 patients participated in this trial, of which 15 were randomly assigned to the (A:P) sequence group (treated with active medication for heartburn in the first meal and placebo in the second meal), and the other 15 were assigned to the (P:A) sequence group (treated with placebo in the first meal and active medication in the second meal). The allocation of sequence groups adopts a double-blind method. The interval between each patient’s two periods (two meals) in the crossover design is several days, which is considered long enough to rule out any residual effects of treatment. The frequency data on whether or not the patient experienced relief within 15 min of the first dose of treatment in Center 2 are given in Table 8.
Table 8.
Data on the first and second phase first dose response in a cross-design clinical trial for the relief of heartburn in center 2.
Suppose that there is no significant difference in the efficacy of active drugs and placebo, i.e., we consider the hypothesis testing . With the data from Table 8, we have , the MLEs of , , and are given by , , and according to Euqation (3), and the CMLEs of , , and are given by , , and according to Equation (7). Since the sample size is very small, we consider both the asymptotic and approximate unconditional test procedures for the hypothesis testing ; the asymptotic test p-values based on test statistics . , and are , , , , and the corresponding approximate unconditional test p-values are , , , , respectively.
Obviously, the p-values of test procedures based on test statistics , , and are less than 0.05, so these p-values strongly support a significant difference in heartburn relief between active treatment and placebo. Moreover, 95% CIs, i.e., , , and are [0.0079, 0.5609], [0.0, 0.3747], [0.0054, 0.4597] and [0.0094, 0.5018], respectively. Let , , , , , and , with the half interval width , the desired sample sizes are , , , , respectively. The corresponding empirical coverage probabilities are 95.12%, 94.60%, 94.74%, and 95.26%, respectively.
8. Conclusions and Discussion
The equivalence test of odds ratio (OR) in an AB/BA crossover study with binary outcomes is considered in this article, two test procedures, including the asymptotical and approximate unconditional test procedures based on four test statistics, i.e., two Wald type test statistics, likelihood ratio test statistic and score test statistic are proposed to test the equivalence hypothesis. Four confidence intervals for the OR and the corresponding sample sizes, which can control the width of a confidence interval with a pre-specified confidence level, are developed. Simulation results indicate that the asymptotical test procedures based on four test statistics perform well when the sample size is not small, and the approximate test procedures can produce close to the nominal level even if the sample size is very small (e.g., or ). Confidence intervals derived from the score test statistic, likelihood ratio statistic, and Wald-type test statistics generally perform satisfactorily in terms of coverage. Take into account that in small sample sizes, the Wald CI based on performs poorly under certain parameter settings. In general, sample size estimation methods can be recommended for practical applications in the sense that the empirical coverage probabilities are close to the pre-specified confidence level under the estimated sample sizes.
Under the assumption that there is no carryover effect or stage effect in an AB/BA crossover design, we considered the equivalence test, confidence interval and sample size determination based on OR for the treatment effects of two treatments. Python 5.4.1 codes that implement the proposed methodologies and calculations are available from the second author by request. However, the carryover effect and/or period effect may exist in some trials with binary outcomes. Therefore, statistical inference for the treatment effects in the crossover trials with carryover effect and/or period effect will be considered in the future. In this article, we provide some estimation methods for sample size determination which can control the width of a confidence interval, but we do not take the cost into account for the sample size estimation, it also may be the interest topic in the future research.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/axioms14080582/s1.
Author Contributions
Formal analysis, X.-Q.Y.; Funding acquisition, S.-F.Q.; Methodology, S.-F.Q., X.-Q.Y. and W.-Y.P.; Project administration, W.-Y.P.; Supervision, S.-F.Q.; Writing—original draft, X.-Q.Y.; Writing—review and editing, S.-F.Q. and W.-Y.P. All authors have read and agreed to the published version of the manuscript.
Funding
The work of Dr. Qiu was sponsored by Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJZD-K202201101), the Natural Science Foundation of Chongqing, China (Grant No. CSTB2024NSCQ-LZX0136), and the National Natural Science Foundation of China (Grant No. 11871124).
Data Availability Statement
No new data were generated during this study. All real examples are publicly available and cited appropriately.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Derivation of the CMLE of Given ϕ
The CMLE of is the root of the following quadratic equation
where , , with , . Therefore, we have
Obviously, is aways not less than 0, which indicates that the quadratic equation about , i.e., must have roots. Moreover, it is easily seen that , so if , and if .
Case 1:
In this case, , and , the quadratic Equation (A1) has two positive roots:
Due to and , the CMLE of should be the smaller positive root, i.e., .
Case 2:
In this case, since , then and . The quadratic Equation (A1) has a positive root and a negative root )). Due to , then the CMLE of should be .
To sum up, when , the CMLE of is given by . When , Equation (A1) becomes , it has a single root .
Appendix B. Derivation of the Asymptotical Distribution of the Test Statistic Tw1 (Tw2)
Let , , the corresponding MLEs of and are and , respectively. Under the regularity conditions , , the MLEs and of the multinomial distribution parameter vectors and are asymptotically distributed as the normal distributions when , that is
Let , . According to the delta method, we have
Therefore, we have
Thus,
Since is the consistent estimator of for , and is a continuously differentiable function, then the estimator of , which is obtained by replacing the parameters (i.e., , , , ) with their MLEs or their constrained MLEs under , is the consistent estimator of . Therefore, under the null hypothesis , we have
When . Then and are asymptotically distributed as the distribution with one degree of freedom.
Appendix C. Derivation of Score Test Statistic
Differentiating respect to , , , , , and yields
,
,
,
,
, and .
Differentiating , , , , , with respect to , , , , , and , respectively, and yields
,
,
,
,
,
,
,
,
,
,
,
,
,
,
.
Let ; ; . Next, we have
,
,
,
,
,
,
,
,
,
,
,
,
.
Thus, the Fisher information matrix is given by
Under , we have the Fisher information matrix
and its inverse matrix is given by
where
References
- Hills, M.; Armitage, P. The two-period cross-over clinical trial. Br. J. Pharmacol. 1979, 8, 7. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fleiss, J.L. The Design and Analysis of Clinical Experiments; John Wiley & Sons: New York, NY, USA, 1986. [Google Scholar]
- Senn, S.J. Cross-Over Trials in Clinical Research, 2nd ed.; John Wiley & Sons, Ltd.: Chichester, UK, 2002. [Google Scholar]
- Sever, P.S.; Poulter, N.R.; Bulpitt, C.J. Double-blind crossover versus parallel groups in hypertension. Am. Heart J. 1989, 117, 735–739. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ménard, J.; Serrurier, D.; Bautier, P.; Plouin, P.-F.; Alexandre, J.-M.; Corvol, P. Crossover design to test antihypertensive drugs with self-recorded blood pressure. Hypertension 1988, 117, 153–159. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Grenet, G.; Blanc, C.; Bardel, C.; Francillard, I.; Combret, S.; Pivot, X.; Roy, P. Comparison of crossover and parallel-group designs for the identification of a binary predictive biomarker of the treatment effect. Basic Clin. Physiol. Pharmacol. 2020, 126, 59–64. [Google Scholar] [CrossRef] [Scilit]
- Jones, B.; Kenward, M.G. Design and Analysis of Cross-Over Trials; Chapman and Hall: London, UK, 1989. [Google Scholar]
- Senn, S. Cross-over trials in Statistics in Medicine: The first ‘25’ years. Stat. Med. 2006, 25, 3430–3442. [Google Scholar] [CrossRef] [Scilit]
- Mills, E.J.; Chan, A.W.; Wu, P.; Vail, A.; Guyatt, G.H.; Altman, D.G. Design, Analysis, and Presentation of Crossover Trials. Trials 2009, 10, 27. [Google Scholar] [CrossRef] [Scilit]
- Fava, G.M.; Patel, H.I. A Survey of Crossover Designs Used in Industry. Unpublished manuscript. 1986.
- Jones, B.; Kenward, M.G. Design and Analysis of Cross-Over Trials, 3rd ed.; Chapman & Hall/CRC, Taylor & Francis: Boca Raton, FL, USA, 2014. [Google Scholar]
- Kershner, R.P.; Federer, W.T. Two-treatment crossover designs for estimating a variety of effects. J. Am. Stat. Assoc. 1981, 76, 612–619. [Google Scholar] [CrossRef]
- Ezzet, F.; Whitehead, J. A random effects model for binary data from crossover clinical trials. J. R. Stat. Soc. C-Appl. 1992, 41, 117–126. [Google Scholar] [CrossRef] [Scilit]
- Becker, M.P.; Balagtas, C.C. Marginal modeling of binary cross-over data. Biometrics 1993, 49, 997–1009. [Google Scholar] [CrossRef] [Scilit]
- Jaki, T.; Pallmann, P. Estimation in AB/BA crossover trials with application to bioequivalence studies with incomplete and complete data designs. Stat. Med. 2013, 32, 5469–5483. [Google Scholar] [CrossRef] [Scilit]
- Lui, K.J.; Chang, K.C. Hypothesis testing and estimation in ordinal data under a simple crossover design. J. Biopharm. Stat. 2012, 22, 1137–1147. [Google Scholar] [CrossRef] [Scilit]
- Lui, K.J. Crossover Designs: Testing, Estimation, and Sample Size; John Wiley & Sons, Ltd.: Chichester, UK, 2016. [Google Scholar]
- Li, X.; Li, H.; Jin, M.; Goldberg, J.D. Likelihood ratio and score tests to test the non-inferiority (or equivalence) of the odds ratio in a crossover study with binary outcomes. Stat. Med. 2016, 35, 3471–3481. [Google Scholar] [CrossRef] [Scilit]
- Lui, K.J. Estimation of the treatment effect under an incomplete block crossover design in binary data-a conditional likelihood approach. Stat. Methods Med. Res. 2017, 26, 2197–2209. [Google Scholar] [CrossRef] [Scilit]
- Lui, K.J. Testing equality of treatments under an incomplete block crossover design with ordinal responses. Int. J. Biostat. 2017, 13, 20160069. [Google Scholar] [CrossRef] [Scilit]
- Lui, K.J.; Chang, K.C. Exact tests in binary data under an incomplete block crossover design. Stat. Methods Med. Res. 2018, 27, 579–592. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhu, L.; Lui, K.J. Notes on misspecifying the random effects distribution regarding analysis under the AB/BA crossover trial in dichotomous data-a Monte Carlo evaluation. Commun. Stat. Simul. Comput. 2020, 49, 419–435. [Google Scholar] [CrossRef] [Scilit]
- Rao, C.R. Linear Statistical Inference and Its Applications, 2nd ed.; Wiley: New York, NY, USA, 1985. [Google Scholar]
- Tang, N.S.; Tang, M.L.; Qiu, S.F. Testing the equality of proportions for correlated otolaryngologic data. Comput. Stat. Data Anal. 2008, 52, 3719–3729. [Google Scholar] [CrossRef] [Scilit]
- Alhija, F.N.A.; Levy, A. Effect size reporting practices in published articles. Educ. Psychol. Meas. 2009, 69, 245–265. [Google Scholar] [CrossRef] [Scilit]
- Odgaard, E.C.; Fowler, R.L. Confidence intervals for effect sizes: Compliance and clinical significance in the Journal of Consulting and clinical Psychology. J. Consult. Clin. Psychol. 2010, 78, 287–297. [Google Scholar] [CrossRef] [Scilit]
- Sun, S.; Pan, W.; Wang, L.L. A comprehensive review of effect size reporting and interpreting practices in academic journals in education and psychology. J. Educ. Psychol. 2010, 102, 989–1004. [Google Scholar] [CrossRef] [Scilit]
- Dunst, C.J.; Hamby, D.W. Guide for calculating and interpreting effect sizes and confidence intervals in intellectual and developmental disability research studies. J. Intellect. Dev. Disabil. 2012, 37, 89–99. [Google Scholar] [CrossRef] [Scilit]
- Fritz, C.O.; Morris, P.E.; Richler, J.J. Effect size estimates: Current use, calculations, and interpretation. J. Exp. Psychol. Gen. 2012, 141, 2–18. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- American Psychological Association. Publication Manual of the American Psychological Association, 6th ed.; American Psychological Association: Washington, DC, USA, 2009. [Google Scholar]
- Traub, J.F. Iterative Methods for the Solution of Equations; American Mathematical Society: Providence, RI, USA, 1982. [Google Scholar]
- Lui, K.J.; Chang, K.C. Exact Sample-Size Determination in Testing Non-Inferiority under a Simple Crossover Trial. Pharm. Stat. 2012, 11, 129–134. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Koch, G.G.; Gitomer, S.L.; Skalland, L.; Stokes, M.E. Some non-parametric and categorical data analysis for a change-over design study and discussion of apparent carry-over effects. Stat. Med. 1983, 2, 397–412. [Google Scholar] [CrossRef] [Scilit] [PubMed]
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).




