Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2015 Sep;71(3):832-40.
doi: 10.1111/biom.12297. Epub 2015 Mar 11.

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

Affiliations

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

Stuart R Lipsitz et al. Biometrics. 2015 Sep.

Abstract

The test of independence of row and column variables in a (J×K) contingency table is a widely used statistical test in many areas of application. For complex survey samples, use of the standard Pearson chi-squared test is inappropriate due to correlation among units within the same cluster. Rao and Scott (1981, Journal of the American Statistical Association 76, 221-230) proposed an approach in which the standard Pearson chi-squared statistic is multiplied by a design effect to adjust for the complex survey design. Unfortunately, this test fails to exist when one of the observed cell counts equals zero. Even with the large samples typical of many complex surveys, zero cell counts can occur for rare events, small domains, or contingency tables with a large number of cells. Here, we propose Wald and score test statistics for independence based on weighted least squares estimating equations. In contrast to the Rao-Scott test statistic, the proposed Wald and score test statistics always exist. In simulations, the score test is found to perform best with respect to type I error. The proposed method is motivated by, and applied to, post surgical complications data from the United States' Nationwide Inpatient Sample (NIS) complex survey of hospitals in 2008.

Keywords: Chi-squared test; Nationwide Inpatient Sample; Score statistic; Wald statistic; Weighted estimating equations.

PubMed Disclaimer

References

    1. Agresti A. Categorical Data Analysis. 3. New York: Wiley; 2013.
    1. Amemiya T. Advanced Econometrics. Harvard University Press; 1985.
    1. Aitchison J, Silvey SD. Maximum-likelihood estimation of parameters subject to restraints. Ann Math Stat. 1958;29:813–828.
    1. Bera AK, Bilias Y. Raos score, Neymans C(α) and Silveys LM tests: An essay on historical developments and some new results. Journal of Statistical Planning and Inference. 2001;97:9–44.
    1. Boos DD. On generalized score tests. The American Statistician. 1992;46:327–333.

Publication types

MeSH terms