Multivariate Extensions of McNemar s Test

Similar documents
Good Confidence Intervals for Categorical Data Analyses. Alan Agresti

Dose-response modeling with bivariate binary data under model uncertainty

Mantel-Haenszel Test Statistics. for Correlated Binary Data. Department of Statistics, North Carolina State University. Raleigh, NC

Review. Timothy Hanson. Department of Statistics, University of South Carolina. Stat 770: Categorical Data Analysis

ANALYSING BINARY DATA IN A REPEATED MEASUREMENTS SETTING USING SAS

Repeated ordinal measurements: a generalised estimating equation approach

Pseudo-score confidence intervals for parameters in discrete statistical models

Longitudinal Modeling with Logistic Regression

Modeling and inference for an ordinal effect size measure

Review of One-way Tables and SAS

MARGINAL HOMOGENEITY MODEL FOR ORDERED CATEGORIES WITH OPEN ENDS IN SQUARE CONTINGENCY TABLES

Multinomial Logistic Regression Models

Links Between Binary and Multi-Category Logit Item Response Models and Quasi-Symmetric Loglinear Models

Describing Stratified Multiple Responses for Sparse Data

DIAGNOSTICS FOR STRATIFIED CLINICAL TRIALS IN PROPORTIONAL ODDS MODELS

ST3241 Categorical Data Analysis I Multicategory Logit Models. Logit Models For Nominal Responses

Statistics in medicine

Testing Independence

8 Nominal and Ordinal Logistic Regression

CHAPTER 17 CHI-SQUARE AND OTHER NONPARAMETRIC TESTS FROM: PAGANO, R. R. (2007)

An Overview of Methods in the Analysis of Dependent Ordered Categorical Data: Assumptions and Implications

ST3241 Categorical Data Analysis I Two-way Contingency Tables. 2 2 Tables, Relative Risks and Odds Ratios

Modeling the scale parameter ϕ A note on modeling correlation of binary responses Using marginal odds ratios to model association for binary responses

Lecture 25. Ingo Ruczinski. November 24, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University

Confidence Intervals of the Simple Difference between the Proportions of a Primary Infection and a Secondary Infection, Given the Primary Infection

PROD. TYPE: COM. Simple improved condence intervals for comparing matched proportions. Alan Agresti ; and Yongyi Min UNCORRECTED PROOF


Lecture 25: Models for Matched Pairs

Categorical Variables and Contingency Tables: Description and Inference

INFORMATION THEORY AND STATISTICS

Categorical data analysis Chapter 5

Discrete Multivariate Statistics

Unit 9: Inferences for Proportions and Count Data

Testing Statistical Hypotheses

Unit 9: Inferences for Proportions and Count Data

Two-way contingency tables for complex sampling schemes

Analysis of data in square contingency tables

Tutorial 6: Tutorial on Translating between GLIMMPSE Power Analysis and Data Analysis. Acknowledgements:

LISA Short Course Series Generalized Linear Models (GLMs) & Categorical Data Analysis (CDA) in R. Liang (Sally) Shan Nov. 4, 2014

Results of a simulation of modeling and nonparametric methodology for count data (from patient diary) in drug studies

Robust covariance estimator for small-sample adjustment in the generalized estimating equations: A simulation study

Goodness-of-Fit Tests for the Ordinal Response Models with Misspecified Links

Categorical Data Analysis Chapter 3

Generalized Linear Models (GLZ)

Reports of the Institute of Biostatistics

Review of Statistics 101

n y π y (1 π) n y +ylogπ +(n y)log(1 π).

Testing for independence in J K contingency tables with complex sample. survey data

Statistics 3858 : Contingency Tables

Generalized, Linear, and Mixed Models

APPENDIX B Sample-Size Calculation Methods: Classical Design

Chapter 3 ANALYSIS OF RESPONSE PROFILES

University of California, Berkeley

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS. Duration - 3 hours. Aids Allowed: Calculator

Asymptotic equivalence of paired Hotelling test and conditional logistic regression

Stat 579: Generalized Linear Models and Extensions

Simulating Longer Vectors of Correlated Binary Random Variables via Multinomial Sampling

Memorial Sloan-Kettering Cancer Center

The Multinomial Model

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC

The material for categorical data follows Agresti closely.

Trends in Human Development Index of European Union

CHL 5225H Advanced Statistical Methods for Clinical Trials: Multiplicity

Chapter 10. Chapter 10. Multinomial Experiments and. Multinomial Experiments and Contingency Tables. Contingency Tables.

Statistical Distribution Assumptions of General Linear Models

Ordinal Variables in 2 way Tables

GOODNESS-OF-FIT FOR GEE: AN EXAMPLE WITH MENTAL HEALTH SERVICE UTILIZATION

UNIVERSITY OF TORONTO Faculty of Arts and Science

Inference for Categorical Data. Chi-Square Tests for Goodness of Fit and Independence

Cohen s s Kappa and Log-linear Models

GEE for Longitudinal Data - Chapter 8

Generalized Linear. Mixed Models. Methods and Applications. Modern Concepts, Walter W. Stroup. Texts in Statistical Science.

More Accurately Analyze Complex Relationships

Using Estimating Equations for Spatially Correlated A

Analysis of variance, multivariate (MANOVA)

STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis. 1. Indicate whether each of the following is true (T) or false (F).

Restricted Maximum Likelihood in Linear Regression and Linear Mixed-Effects Model

Lecture 01: Introduction

Bootstrap Procedures for Testing Homogeneity Hypotheses

Testing Non-Linear Ordinal Responses in L2 K Tables

Latent Variable Models for Binary Data. Suppose that for a given vector of explanatory variables x, the latent

Sample Size Determination

Fitting stratified proportional odds models by amalgamating conditional likelihoods

Models for binary data

The impact of covariance misspecification in multivariate Gaussian mixtures on estimation and inference

A Generalized Global Rank Test for Multiple, Possibly Censored, Outcomes

Logistic Regression: Regression with a Binary Dependent Variable

Classification. Chapter Introduction. 6.2 The Bayes classifier

Multilevel Statistical Models: 3 rd edition, 2003 Contents

HANDBOOK OF APPLICABLE MATHEMATICS

Model Estimation Example

STAT 525 Fall Final exam. Tuesday December 14, 2010

Testing Statistical Hypotheses

Sample Size and Power Considerations for Longitudinal Studies

BIOS 625 Fall 2015 Homework Set 3 Solutions

Bayes methods for categorical data. April 25, 2017

Decomposition of Parsimonious Independence Model Using Pearson, Kendall and Spearman s Correlations for Two-Way Contingency Tables

PQL Estimation Biases in Generalized Linear Mixed Models

Glossary. The ISI glossary of statistical terms provides definitions in a number of different languages:

Generalized Linear Modeling - Logistic Regression

Transcription:

Multivariate Extensions of McNemar s Test Bernhard Klingenberg Department of Mathematics and Statistics, Williams College Williamstown, MA 01267, U.S.A. e-mail: bklingen@williams.edu and Alan Agresti Department of Statistics, University of Florida Gainesville, FL 32611-8545, U.S.A. e-mail: aa@stat.ufl.edu SUMMARY. The analysis of adverse events from clinical trials is one of the most important stages in the development of pharmaceutical products, but neglected in terms of the use of formal statistical methods. This article considers global tests of differences between paired vectors of binomial probabilities, based on safety data from two dependent multivariate binary samples. Difference is defined as either an inhomogeneity in the marginal distributions or asymmetry in the joint distribution. For detecting the first type of difference, we propose a multivariate extension of McNemar s test and show that it is a generalized score test under a GEE approach. Univariate features such as the relationship between the Wald and score test and the dropout of pairs with the same response carry over to the multivariate case and the test does not depend on the working correlation assumption among the components of the multivariate response. We apply the test to a safety trial for a drug, in which two doses of a drug are evaluated by comparing multiple responses by the same subject to each of them. For sparse data, such as occurs when the number of variables is large or the proportions are close to zero, the test is best implemented using a permutation distribution. Key words: Adverse events; Drug safety; Generalized score test, Marginal homogeneity; Matched pairs; Multiple binary data.

1 Introduction Safety, toxicity or quality of life assessments become important issues in early developmental stages of pharmaceutical products. For instance, the analysis of adverse event data from clinical trials is crucial in testing (and later marketing) the safety of a drug. Sponsoring and regulatory agencies involved in this process constantly assess if clinical trials need to be adjusted or terminated because of safety or other concerns. Usually, not many subjects are available and several responses have to be explored jointly, many with small incidence rates. Furthermore, studies with a primary endpoint of safety, toxicity or quality of life often measure this multivariate response at two or more occasions, employing cross-over or longitudinal designs and leading to paired or repeated multivariate data. Safety concerns were the motivation behind a small cross-over clinical trial run by a pharmaceutical company that monitored several adverse events (AEs) of an antidepressive drug. It aimed to test whether significant differences existed in incidents of AEs between varying doses of the active ingredient in the drug. A sample of 28 healthy volunteers were first given a low dose of 50mg and then two higher doses of 200mg and 500mg, with a sufficient wash-out period in between. A placebo treatment was also mixed in either at the beginning, the end or at any of the intermittent stages of a subject s increasing dose sequence. In this article, we compare the incidence of AEs under either of the two higher doses to the incidence of AEs under either the placebo or the low dose, which was a particular contrast of interest to the investigators. Extensions of the methodology to handle several doses at once are mentioned at the end of this article. Table 1 displays summary data for the four most common AEs that were observed under these two grouped dose levels, which we label low and high. For each individual AE, the McNemar test is a well known procedure for comparing the incidence rates. However, 1

for several, possibly correlated AEs, how can we conduct a multivariate extension of that test? This question was posed to one of us recently for a similar data set by the biostatisticians at a pharmaceutical company. Table 1 about here Generalizations of McNemar s test to the case of two and more independent samples of paired binary responses were discussed by Feuer and Kessler (1989) and for binary cross-over data by Becker and Balagtas (1993). Agresti and Klingenberg (2005) developed strategies for comparing two independent multivariate binary vectors for a global, comparative evaluation of the incidence of AEs for a drug and a placebo. They proposed likelihood ratio and score-type tests, supplemented with exact permutation approaches in cases of sparse data. Pesarin (2001) developed methods for comparing two dependent vectors of sample proportions. He combined exact results from multiple univariate tests through a nonparametric combination function. This approach calculates an exact P - value for the McNemar statistic for each of the 2 2 tables formed with an individual AE. A test for the global hypothesis of no difference in safety profiles is then obtained by suitably combining the (dependent) individual P -values. He illustrates with an example involving two AEs. For the univariate case, the McNemar test is the score statistic. In Section 2 of this article we develop an extension of that test to the multivariate case, using multivariate methods rather than combining univariate results. Several properties carry over to the multivariate case, such as the relationship between the Wald and score test for paired binary and multicategory responses (Ireland, Ku and Kullback, 1969) and the dropout of pairs with the same response sequence in each sample. We also present connections to generalized score tests under a GEE approach and show that the statistic is invariant to the working correlation structure among the multiple binary responses. Ordinary 2

likelihood-ratio and score tests are also discussed, but these are intractable when the number of AEs is large. All these tests focus on the equality of the marginal proportions of each AE at the two doses and have asymptotic chi-squared distributions. Section 3 considers a second, narrower hypothesis that specifies symmetry in the joint distribution of the multivariate response with respect to the two doses. The test is best implemented using a permutation distribution rather than an asymptotic distribution. For sparse data, such as occurs when the number of AEs is large or the proportions are close to 0 or 1, this is also true for the tests of Section 2 about the first-order margins. The final section briefly discusses extensions to multiple responses or multiple categories. Our presentation is framed entirely in terms of a safety analysis comparing two doses of a drug. However, the methods and results apply to any setting in which paired or repeated multivariate binary observations are obtained, such as in testing neurotoxicity of a substance as was recently discussed by Han et. al (2004) or as an alternative to summary score approaches in assessing quality of life (Ribaudo and Thompson, 2002). 2 Tests of Simultaneous Marginal Homogeneity We consider paired multivariate binary data, with c binary variables for incidence of c AEs observed under two conditions (e.g., doses). For dose i, let y ij = 1 if a subject experiences AE j and y ij = 0 otherwise, j = 1,..., c, i = 1, 2. Let y = (y 1, y 2 ) = (y 11, y 12,..., y 1c, y 21, y 22,..., y 2c ) denote the 2c-dimensional binary responses for a randomly selected subject, where y 1 and y 2 refer to the responses at the low and high dose, respectively. A 2 2c contingency table summarizes all possible outcomes for y, which are often referred to as safety profiles. Table 2 shows the non-empty cells of this table for the data summarized in Table 1. We see that 16 of the 28 subjects did not experience any AEs. 3

Table 2 about here We assume a multinomial distribution for the counts in this 2 2c table, with sample size equal to n. Let π i (j) = P (y ij = 1) denote the first-order marginal probability of observing AE j at dose i. Similarly, let π i (j, k) = P (y ij = 1, y ik = 1) and π(j, k) = P (y 1j = 1, y 2k = 1). This section considers the null hypothesis H 0 : π 1 (j) = π 2 (j), j = 1, 2,..., c. (1) We say that the 2 2c table cross classifying all safety profiles satisfies simultaneous marginal homogeneity if this holds, and we denote it by SMH. 2.1 Wald and Score-Type Tests of SMH Let d = (d 1,..., d c ), where d j = ˆπ 1 (j) ˆπ 2 (j) is the j-th difference between the marginal sample proportions. The vector of differences d has covariance matrix Σ with Var(d j ) = [π 1 (j){1 π 1 (j)} + π 2 (j){1 π 2 (j)} 2{π(j, j) π 1 (j)π 2 (j)}] /n (2) Cov(d j, d k ) = [ π 1 (j, k) + π 2 (j, k) {π(j, k) + π(k, j)} {π 1 (j) π 2 (j)}{π 1 (k) π 2 (k)} ] /n. A Wald statistic is obtained by replacing the unknown proportions in Σ with the corresponding sample proportions ˆπ i (j), ˆπ i (j, k) and ˆπ(j, k), i = 1, 2, j, k = 1,..., c and calculating the quadratic form W = d ˆΣ 1 d. Under the assumption of SMH, W has an asymptotic chi-squared distribution with df = c. For a variety of basic contingency table analyses, the Wald statistic has been found to be not as reliable a method for analyzing proportions as the score statistic or the likelihood-ratio statistic. For instance, its nominal size often is not close to the actual size unless n is very large. Thus, for any n and c we prefer an alternative statistic that 4

uses the pooled estimate of the covariance matrix under the null hypothesis of SMH. The pooled estimate for the common proportion π(j) in each dose group is given by π(j) = {ˆπ 1 (j) + ˆπ 2 (j)}/2. (3) The variance of d j and the covariance of d j and d k then simplify to Var 0 (d j ) = 2 {π(j) π(j, j)} /n (4) Cov 0 (d j, d k ) = [π 1 (j, k) + π 2 (j, k) {π(j, k) + π(k, j)}] /n. Denote the estimate of the variance-covariance matrix of d under these expressions by ˆΣ 0. The quadratic form statistic is then W 0 = d ˆΣ 1 0 d. We refer to W 0 as a score-type statistic, because a full score test for this hypothesis requires estimating the covariances solely under SMH, which is considerably more complex and discussed in Section 2.3. In the univariate case (c = 1, with just a single AE), Then, W 0 reduces to Var 0 (d 1 ) = {ˆπ 1 (1) + ˆπ 2 (1) 2ˆπ(1, 1)} /n = {ˆπ(1, 0) + ˆπ(0, 1)} /n. W 0 = {ˆπ 1(1) ˆπ 2 (1)} 2 {ˆπ(1, 0) + ˆπ(0, 1)} /n, which is the McNemar statistic for univariate binary matched pairs. For the paired multivariate scenario, there is a surprisingly simple relationship between the Wald and score-type statistics. To see this, we re-write the diagonal components (2) of Σ and (4) of Σ 0 as Var(d j ) = [ π 1 (j) + π 2 (j) 2π(j, j) {π 1 (j) π 2 (j)} 2] /n Var 0 (d j ) = [ π 1 (j) + π 2 (j) 2π(j, j) ] /n. Comparing these two terms and the expressions for the covariance matrices, it is now straightforward to see that ˆΣ = ˆΣ 0 dd /n. 5

Then, using the matrix result (A + uv ) 1 = A 1 A 1 uv A 1 /(1 + v A 1 u), we obtain the relationship W = W 0 /(1 W 0 /n) between the Wald and score-type statistic. Ireland et al. (1969) showed the same type of result for paired multicategorical responses for a single variable, for which Stuart (1955) had proposed a score-type statistic. 2.2 A GEE approach to testing SMH In this section, we show that W 0 is a generalized score statistic for testing SMH using the marginal modeling approach based on solving generalized estimating equations (GEEs; Zeger and Liang, 1986). The GEE approach specifies a model for the marginal probabilities and working pairwise correlations for the responses rather than a model for the joint distribution. To develop the relationship for this context, first consider the saturated model π i (j) = β ij for describing the marginal probabilities of observing AE j with dose i. Let π = E[y] and β be the vectors of the 2c marginal probabilities {π i (j)} and model parameters {β ij }, j = 1,..., c, i = 1, 2. A GEE estimator of β is the solution to n S(β) = ( π/ β ) V 1 (β) (y k β) = 0, (5) k=1 where V (β) = D 1 2 (β)rd 1 2 (β) is the working covariance matrix for the 2c marginal responses, for which D(β) is a 2c 2c diagonal matrix with β ij (1 β ij ) as diagonal elements and R is a working correlation matrix. Due to the lack of subject-specific covariates, V (β) is the same for all observations {y k }, which simplifies expressions considerably. If we assume naively that R is the true correlation matrix, the asymptotic covariance matrix of a GEE estimate ˆβ is the inverse of the expected information matrix (see 6

Appendix) I(β) = E [ ] β S(β) = nv 1 (β). The GEE approach attempts to protect against misspecification of the correlation matrix through the use of the sandwich matrix { n } I 1 n (β) V 1 (β)(y k β)(y k β) V 1 (β) I 1 (β) = (y k β)(y k β) /n 2, k=1 k=1 which we denote by Cov(ˆβ). For the saturated model above, ˆβ = ˆπ (the marginal sample proportions) with estimated covariance matrix Ĉov(ˆβ) = n k=1 (y k ˆβ)(y k ˆβ) /n 2, regardless of the assumed correlation structure. Under SMH, the model takes the form π i (j) = β j and the SMH hypothesis (1) corresponds to the restriction Hβ = 0 on the parameter vector β, where H = (I c I c ) with (A B) denoting a block matrix consisting of two matrices A and B and I a is the identity matrix of dimension a. With these restrictions, π/ β = (I c I c ), and we denote this block matrix by L. The restricted solution to the GEEs (5) is now given by the fixed point equation β = L ( LV 1 ( β)l ) 1 LV 1 ( β)ˆπ, (6) and is a weighted average of the marginal sample proportions. Under independence or exchangeable working correlation assumptions, the solution can be obtained explicitly as β = 1 2 L Lˆπ = π, which are the pooled marginal sample proportions (3). (This result can be verified by plugging in the appropriate form of R into V and then into the right hand side of equation (6)). Note that the pooled marginal sample proportions do not depend on the assumed correlation structure. For other working correlation matrices (such as an unstructured one), the solution under SMH must be obtained iteratively by alternating between updating the right and left hand side of (6), taking into account the assumed parametric structure for R. In general, these solutions will differ from the pooled marginal sample proportions. 7

For the GEE approach, generalized score tests for model parameters have been proposed by Rotnizky and Jewell (1990) and Boos (1992). For testing a hypothesis of form Hβ = 0, a statistic discussed by Boos (1992, page 331) using expected information has form T GS = S( β) I 1 ( β)h ( HĈov( β)h ) 1 HI 1 ( β)s( β). In the context of testing SMH, for which the covariance matrix for all observations is constant, this simplifies considerably to ) n 1 T GS = n 2 d (H y k y kh d. k=1 But this is precisely our statistic W 0 written in matrix notation. Note that it does not depend on the assumed correlation matrix R and hence it is invariant to the choice of working correlation structure among the 2c responses. For any assumed form of working correlation, W 0 will be the same. Further, on moving n 2 and H inside the sum, note that for subjects with safety profiles y = (y 1, y 2 ) that have y 1 = y 2, H(y/n)(y/n) H = 0 because Hy = (I c I c )y = 0. Hence, similar to McNemar s test in the univariate case, subjects with the same profile under the two doses do not contribute to the test statistic. Likewise, the generalized Wald statistic T GW II = (H ˆπ) [ HI 1 (ˆβ)Ĉov(ˆβ)I 1 (ˆβ)H ] 1 H ˆπ given in Boos (1992, page 329) reduces in the context of testing SMH to T GW II = n 2 d [ n H (y k ˆπ)(y k ˆπ) H ] 1 d. k=1 This is our Wald statistic W in matrix form and it is also invariant to the working correlation among the 2c responses. 2.3 Likelihood-Ratio Test and Ordinary Score Test of SMH Alternative tests of SMH can be based on the maximum likelihood estimates of the cell probabilities under SMH. For instance, one could construct the likelihood-ratio (LR) sta- 8

tistic. To obtain the maximized likelihood under SMH, one must maximize a multinomial likelihood with 2 2c 1 joint probabilities, subject to equality constraints relating two sets of c marginal probabilities. One approach is to use the Lagrange method of undetermined multipliers together with the Newton-Raphson method as implemented by Lang and Agresti (1994). An R function ( mph.fit ) for the algorithm is available from Prof. J. B. Lang (Statistics Dept., Univ. of Iowa, e-mail: jblang@stat.uiowa.edu, details at www.stat.uiowa.edu/ jblang). However, this approach becomes computationally increasingly difficult as c increases. (For example, we were not able to use the mph.fit software for c > 4 AEs.) The likelihood-ratio statistic G 2 equals 2 times the log of the ratio of the maximized likelihoods under SMH and the unrestricted case. A corresponding Pearson statistic compares the 2 2c observed and fitted counts for the SMH model, using the usual X 2 = (observed - fitted) 2 /fitted. This is the actual score statistic for testing SMH. Again, like the LR test, it is computationally infeasible with current software unless c is small. The LR and score statistics also have large-sample chi-squared distributions with df = c. 2.4 SMH for the Drug Safety Data The generalized score statistic, and hence W 0, is available in SAS (PROC GENMOD with the GEE implementation; sample SAS code is available from the first author s website lanfiles.williams.edu/ bklingen), as is the Wald statistic W. For the data with c = 4 AEs for an antidepressive drug administered to n = 28 subjects, there are 2 2 4 = 256 possible safety profiles, according to the (yes, no) outcome for each AE at the two dose levels. The sample proportions in Table 1 refer to the 8 first-order marginal probabilities {π i (j), j = 1,..., 4, i = 1, 2} of the underlying 2 2 4 contingency table. For these data, W = 6.17 and W 0 = 5.05 with df = 4, which have asymptotic P -values of 0.19 and 0.28 for testing SMH. However, we are skeptical that the chi-squared limiting distribution is 9

valid with such sparse data in which n is small and the sample marginal proportions are near 0. To get some feedback about whether asymptotic results are sensible, one can also get a P -value for these statistics using the bootstrap method. One repeatedly takes multinomial samples of size n, using as the multinomial probabilities the maximum likelihood estimates obtained under the SMH hypothesis. The P -value is then the proportion of generated samples for which the test statistic is at least as large as the observed value. Results will be identical for the Wald and score-type statistics, because of the one-to-one relationship between them. For 500,000 resamples, the bootstrap P -value for W and W 0 is equal to 0.35. Figure 1 presents a density estimate of the bootstrap distribution for the two statistics and compares it with their asymptotic chi-squared distribution. The plot shows that using asymptotic results would be misleading, although the tail behavior is much closer to its asymptotic distribution for the score-type statistic W 0 than for W. We ll consider a more reliable small-sample test for these statistics in the next section. Figure 1 about here For the ML fit of SMH, the likelihood-based statistics are G 2 = 3.73 and X 2 = 2.42, but again the asymptotic P -values of 0.44 and 0.66 need to be treated with skepticism because of the sparseness. These statistics are computationally too complex to implement in the bootstrap. 3 A Stronger Symmetry Hypothesis for the Multivariate Response The previous section compared the one-dimensional marginal distributions for each AE. This would normally be the main focus. However, in some cases, it might be of interest 10

to compare the entire c-dimensional distributions of all AEs jointly under the two doses. The null hypothesis is then that P (y 11 = a 1,..., y 1c = a c ) = P (y 21 = a 1,..., y 2c = a c ) (7) for all possible safety profiles (a 1,..., a c ) for the c AEs. That is, the 2 c joint distribution of all AEs is identical under the two doses and there is symmetry in a subject s safety profile with respect to the two doses. This is a more complete description of no dose effect, one that is implied by the situation in which each subject makes the same responses for the c AEs regardless of the dose. Note that SMH is a special case. 3.1 Permutation Test for Sparse Data Although one could construct large-sample tests of this hypothesis, they would have extremely limited scope when c is large, because of sparseness of the data relative to a large df value. Here, df = 2 c 1, since we are testing whether the 2 c 1 parameters for each c dimensional distribution under the two doses are equal. However, it is straightforward to construct a permutation test, which applies with any c and n. Since (7) implies that the two c-dimensional distributions are exchangeable for the two doses, we consider all 2 n possible ways of interchanging y 1 and y 2 in a subjects observed safety profile y. This generates an exact distribution for a test statistic of interest. In practice, when n is moderate or large, this is computationally infeasible. One can then merely randomly generate a very large number of the permutations to obtain a suitably precise estimate of the exact P -value. In terms of a test statistic for a test of this narrow hypothesis, again the likelihoodratio statistic is computationally unattractive if c is large, as it involves (under the null) maximizing a likelihood over 2 2c 1 parameters, subject to equality constraints that replace 2 (2 c 1) parameters by 2 c 1 parameters. A statistic that is computationally 11

simpler treats the data in the form of n strata, one for each subject. The table for subject i is a 2 2 c table, listing all possible safety profiles for the c AEs in the columns, with row 1 for the low and row 2 for the high dose. Each table has one observation in each row. Now, suppose that given a particular subject, the safety profiles are equally likely at the two doses (that is, there is conditional independence between the safety profile and dose, given subject). This implies that the safety profiles are also equally likely to occur under each of the two doses in the 2 2 c marginal table collapsed over subjects. But this is exactly condition (7). Hence, one can test the hypothesis by testing for conditional independence in the stratified table, using a generalized Mantel-Haenszel statistic for a multi-category response with unordered categories (Landis, Heyman and Koch, 1978). Standard software (such as SAS s PROC FREQ) provide this statistic. In general, its large-sample distribution would have df = 2 c 1, but in practice many profiles would not be observed, and for results to be valid regardless of the values of c and n one should use the permutation distribution. See Darroch (1981) for a discussion of the use of such statistics for the various hypotheses that can be considered for repeated measurement on a categorical response. For the safety data in Table 2, only 8 different safety profiles (out of 16 possible) were observed under the low or high dose. Conditional on observing safety profiles of these kinds, the generalized Mantel-Haenszel statistic equals 8.74, with df = 7 (P -value = 0.29). (For SAS code, see the first author s website.) As with the score-type statistic W 0, subjects with the same profile under the two doses do not contribute to the test statistic. Again, because of sparseness and the relatively large df value, we treat this P -value with skepticism. A more valid P -value results from randomly selecting permutations from the 2 28 possible ones. Using a random sample of 5 million of them, we obtained an estimated P -value of 0.21. 12

3.2 Permutation Small-Sample Testing of SMH To obtain a more appropriate P -value for small-sample or sparse-data situations with the Wald or score-type multivariate statistic for testing SMH, one can use a permutation test under the stronger null hypothesis (7). That is, one uses the procedure of the previous subsection, but with W or W 0 as the test statistic. Because of the relationship between W and W 0, they will each have the same permutation P -value. For Table 1, using 5 million permutations, we get an estimated P -value of 0.32 for the score-type statistic W 0 = 5.05, compared to 0.28 for the asymptotic chisquared result and 0.35 for the bootstrap. Figure 2 shows the permutation distribution for this statistic relative to the chi-squared distribution with df = 4. It is quite irregular with this case of small n and small values of sample proportions. Furthermore, its range is less than the one of the bootstrap distribution shown in Figure 1 because it does not consider as extreme reconfigurations of the data. The highest marginal count of an AE obtainable in any permutation of the original data is 6, while this might be higher when generating data using the fitted multinomial distribution. For instance, a few of the 500,000 generated tables under the bootstrap approach showed a marginal count of 8 or 9 for an AE under the high dose, coupled with a low count of 1 or 2 under the low dose. These tables led to (highly significant) W 0 values of 15.3 and higher, explaining the fatter tail of the bootstrap distribution. Figure 2 about here 4 Follow-Up and Extensions In the study used here, the low dose of 50mg was always given before the higher doses of 200 and 500mg. Thus, proper care must be taken to ensure that any difference between the two groups is not an artifact of the design. Also, of course, in practice one would 13

want to follow-up the test by an assessment comparing the individual AEs. One way to do this is with a confidence interval comparing the two proportions for each side effect. To ensure actual confidence level being relatively near the nominal level, we recommend using the score confidence interval (Tango 1998), which works well even when n is relatively small and the data have relatively few outcomes of the event of interest (Newcombe, 1998; Agresti and Min, 2005). Table 1 presents Bonferroni score intervals for the individual AEs, with asymptotic simultaneous confidence level 0.95 (i.e., each one is a 98.75% score confidence interval). For these data, neither the global test nor the individual tests show a significant difference of incidence rates between the two drug levels. An alternative approach of comparing AE incidence rates, particularly in the presence of additional covariates, is through generalized linear mixed models (GLMMs). This model class assumes random effects specific to each subject. It postulates a non-negative, exchangeable correlation structure among AEs sharing a common random effect, which may not always be plausible. Also, GLMMs focus on subject-specific probabilities, while interest here lies in the comparison of marginal probabilities. Regardless of the modeling approach, if one expects probabilities for AEs to be always higher in one group, one could attempt to build power by focusing a single-degree-of-freedom test on this common effect. The methods of this article extend in obvious ways to several repeated measures. To test SMH with T repeated measures on c variables, one can extend the score-type statistic W 0 by forming a vector d of c(t 1) differences of proportions, comparing a given proportion for each dose to the corresponding proportion for an arbitrary baseline dose. The methods also extend in obvious ways to multi-category responses. For instance, it is increasingly common to classify an AE by its severity, using categories not present, mild and severe. For ordered categories and corresponding scores, one could then base the statistic on a vector of c(t 1) differences of means. For a nominal-scale comparison 14

of T repeated measures simultaneously on c variables, with r j categories for variable j, the score-type test has df = (T 1)( j r j c). For a single variable, these simplify to the extension of the Stuart (1955) test to a r T contingency table. With even moderate T and c, asymptotic methods are suspect. A sensible strategy for testing is a permutation test for the (T!) n allocations of the subjects sub-vectors of responses to the T times, computing the extended W 0 statistic for each (or, for a random sample of them). ACKNOWLEDGMENTS This research was supported by grants from the National Institutes of Health and the National Science Foundation. The authors thank Dr. Christy Chuang-Stein at Pfizer for permission to use the data and Dr. Joseph Lang for permission to use his software mph.fit. APPENDIX To show that the expected information I(β) = E [ / β S(β)] equals nv 1 (β), we consider all partial derivatives with respect to β l, l = 1,..., 2c: I(β l ) = E [ d ] S(β) dβ l = E = d dβ l V 1 (β)e [ (yk β) ] V 1 (β)e = V 1 (β)( na l ) = nv 1 (β)a l, [{ d } V 1 (β) (yk β) V 1 (β) d ] (yk β) dβ l dβ l [ ] d n (y dβ k β) l k=1 where a l is a vector of zeros with a 1 in position l. By suitably combining all partial derivatives {I(β l )}, the result is obtained. 15

REFERENCES Agresti, A., and Klingenberg, B. (2005). Multivariate tests comparing binomial probabilities, with application to safety studies for drugs. To appear in Applied Statistics 54. Agresti, A., and Min, Y. (2005). Simple improved confidence intervals for comparing matched proportions. To appear in Statistics in Medicine. Becker, M. P., and Balagtas, C. C. (1993). Marginal modeling of binary cross-over data. Biometrics 49, 997 1009. Boos, D. (1992). On generalized score tests. The American Statistician 46, 327 333. Darroch, J. N. (1981). The Mantel-Haenszel test and tests of marginal symmetry; fixedeffects and mixed models for a categorical response. International Statistical Review 49, 285 307. Feuer, E. J., and Kessler, L. J. (1989). Test statistic and sample size for a two-sample McNemar test. Biometrics 45, 629 636. Han, K. E., Catalano, P. J., Senchaudhuri, P., and Mehta, C. (2004). Exact analysis of dose response for multiple correlated binary outcomes. Biometrics 60, 216 224. Ireland, C. T., Ku, H. H., and Kullback S. (1969). Symmetry and marginal homogeneity of an r r contingency table. Journal of the American Statistical Association 64, 1323 1341. Landis, J. R., Heyman, E. R., and Koch, G. G. (1978). Average partial association in three-way contingency tables: A review and discussion of alternative tests. International Statistical Review 46, 237 254. 16

Lang, J. B., and Agresti, A. (1994). Simultaneously modeling joint and marginal distributions of multivariate categorical responses. Journal of the American Statistical Association 89, 625 632. Newcombe, R. (1998). Improved confidence intervals for the difference between binomial proportions based on paired data. Statistics in Medicine 17, 2635 2650. Pesarin, F. (2001) Multivariate Permutation Tests with Applications in Biostatistics. Chichester: John Wiley & Sons. Ribaudo, H. J., and Thompson, S. G. (2002). The analysis of repeated multivariate binary quality of life data: A hierarchical model approach. Statistical Methods in Medical Research 11, 69 83. Rotnitzky, A., and Jewell, N. P. (1990). Hypothesis testing of regression parameters in semiparametric generalized linear models for clustered correlated data. Biometrika 77, 485 497. Stuart, A. (1955). A test for homogeneity of the marginal distributions of a two-way classification. Biometrika 42, 412 416. Tango, T. (1998). Equivalence test and confidence interval for the difference in proportions for the paired-sample design. Statistics in Medicine 17, 891 908. Zeger, S. L. and Liang, K.-Y. (1986). Longitudinal data analysis for discrete and continuous outcomes. Biometrics 42, 121 130. 17

Table 1: Summary of proportions for four adverse events recorded at each of two dose levels of a drug tested on 28 patients, and 98.75% score confidence intervals for the true differences. Result of a global score-type test is indicated in the last row. Drug Dose Score Adverse Event Low High Conf. Int. Headache 4/28 4/28 [ -0.23, 0.23] Somnolence 2/28 4/28 [ -0.16, 0.30] Ecchymosis 4/28 1/28 [ -0.35, 0.13] Sore Throat 1/28 3/28 [ -0.16, 0.30] SMH: W 0 = 5.05 (permutation P -value = 0.32) 18

Table 2: Safety profiles (1=present, 0=absent) of four adverse events (AE) under two doses of a drug. Low Dose High Dose AE 1 AE 2 AE 3 AE 4 AE 1 AE 2 AE 3 AE 4 Count 1 1 0 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 1 0 1 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 16 Profiles with a count of zero (e.g., those not observed) are not shown. 19

Density 0.175 0.150 W 0 W χ 2 4 0.125 0.100 0.075 0.050 0.025 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Figure 1: Bootstrap distribution of the score-type (W 0 ) and Wald (W ) statistic for testing SMH for Table 1. The asymptotic chi-squared reference distribution with df = 4 is also shown. 20

0.25 rel. freq. χ 2 4 0.20 0.15 0.10 0.05 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 W 0 Figure 2: Permutation distribution of the score-type statistic W 0. The asymptotic chisquared reference distribution with df = 4 is also shown. 21