Skip to content

FAQ/ENH: quasi-maximum-likelihood for contingency table and log-linear models #3334

Open

Description

@josef-pkt

Can we get misspecification robust cov_params and hypothesis testing for contingency tables and log-linear models?

With application to survey analysis, and marginal models (in the sense of GEE).

triggered by this question on the mailing list
"Adding support for multipleresponse questions in contingency tables"
https://groups.google.com/d/msg/pystatsmodels/D99xd2GK3-8/0pWYCmuvCwAJ

The underlying application is about survey questions that allow multiple answers (pick all that apply). This will often result in correlation across choices.
The methods for this will be a different issue, here the question is about sandwich robust covariance matrix estimation and misspecification robust testing.

my initial impression:
The setup reminds me more of GEE and clogit/Conditional Logit as a general approach.
AFAICS, they estimate a reduced, marginal model and base their tests on something like LikelihoodRatio tests, which don't have a standard chisquare distribution, and they need the approximation to the distribution of the linear combination of chisquare random variables.
The alternative would be to use something like GEE, or log-linear model with cluster robust standard errors and use either wald or score tests which should still have a standard chisquare distribution, I guess. However wald tests are not very accurate and are often liberal (over reject) in small samples.

The main technical reference goes back to two articles by Rao and Scott on using multinomial or loglinear models for complex surveys. It's the first time that I look at the theoretical derivation for survey method, like surv prefix in Stata, which, IIRC, essentially says that it uses weighted estimation with a robust (HC1) covariance.
With contingency tables or log-linear model it is a bit more difficult than using the standard implementation because we might have only the count and not the individual data. (That's back to the aggregation issue, aggregation and sufficient statistics are fine under LEF/GLM but not in the quasi-likelihood setting.) Rao/Scott and Bilder/Loughin have the sandwich form for the cov_params, and delta method for derived statistics, but the center of the sandwich is based on the covariance of the estimated probabilities (or something like that).

Some References

I did some selective reading and skimming, and there are more related articles

Agresti, Alan, and I-Ming Liu. 1999. “Modeling a Categorical Variable Allowing Arbitrarily Many Category Choices.” Biometrics 55 (3): 936–43. doi:10.1111/j.0006-341X.1999.00936.x.

AGRESTI, ALAN, and IVY LIU. 2001. “Strategies for Modeling a Categorical Variable Allowing Multiple Category Choices.” Sociological Methods & Research 29 (4): 403–34. doi:10.1177/0049124101029004001.

Bilder, Christopher R., and Thomas M. Loughin. 2007. “Modeling Association Between Two or More Categorical Variables That Allow for Multiple Category Choices.” Communications in Statistics - Theory and Methods 36 (2): 433–51. doi:10.1080/03610920600974419.

———. 2009. “Modeling Multiple-Response Categorical Data from Complex Surveys.” Canadian Journal of Statistics 37 (4): 553–70. doi:10.1002/cjs.10040.

Rao, J. N. K., and A. J. Scott. 1981. “The Analysis of Categorical Data From Complex Sample Surveys: Chi-Squared Tests for Goodness of Fit and Independence in Two-Way Tables.” Journal of the American Statistical Association 76 (374): 221–30. doi:10.2307/2287815.

———. 1984. “On Chi-Squared Tests for Multiway Contingency Tables with Cell Proportions Estimated from Survey Data.” The Annals of Statistics 12 (1): 46–60.

Scott, Alastair. 2016. “Rao-Scott Corrections and Their Impact.” Accessed December 21. http://ww2.amstat.org/sections/SRMS/Proceedings/y2007/Files/JSM2007-000874.pdf.

Thomas and Decady are other often cited authors in this area, but I haven't looked at anything of theirs yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions