Skip to content

ENH: hypothesis testing for proportions matched case-control #2743

Open

Description

@josef-pkt

This is a followup for various proportion test, confidence intervals, power, e.g. #2605

In paired samples we have 1 to 1 matching between two groups of individuals (e.g. 1 treatment - 1 control). The standard test is McNemar for this. (We have some extension in contingency tables where I haven't checked in which way this extends from 2x2 tables.)

The extension is 1:M matching, where one treatment individual is matched with M >= 1 control individuals. This looks also similar to the 1:M matching in propensity score matching.

The Model for this is ConditionalLogit (which in my current PR only allows 1 event per "group" or panel)
Stata has examples for different methods and power/sample size calculations in power mcc documentation.

(I have read almost nothing specifically about 1:M case-control studies, but looks useful.)

Note:

The setup is a bit different because in what's defined as "matched case control studies" uses to outcome to sample, e.g. https://onlinecourses.science.psu.edu/stat507/node/48 ("retrospective")
I ran into this somewhere before, maybe Agresti, and I don't know where or when this makes a difference. The tests and calculation themselves are the same as a McNamara extension.

(In propensity score matching we match for the treatment and not the final outcome.)

Activity

  1. josef-pkt commented on Dec 23, 2015

    @josef-pkt
    MemberAuthor

    (before I give up on this for now)

    binary treatment (called exposed and not-exposed) and binary outcome.
    We want to match on other explanatory variables to remove the confounding effect of those. This sounds like a non-parametric partial regression, i.e. remove everything by conditioning or partialling out except for the effect/variable of interest.)
    http://www.uic.edu/classes/epid/epid401/lectures/lecture9.pdf "If you match on a variable, then you cannot analyze it's effect."

    Here is a link to arguments similar to matching and inverse propensity score weighting, based on the abstract. http://biostats.bepress.com/ucbbiostat/paper240/ Google finds more starting from that title/reference.

    It looks like this goes into the same group as the treatment effects/matching/IPW, but I guess implementing the 1:M hypothesis testing and related methods doesn't need to worry about causal interpretation.

  2. josef-pkt commented on May 18, 2016

    @josef-pkt
    MemberAuthor

    confidence interval for matched-pairs

    this looks like a good collection, including simultaneous confidence intervals for stratified matched pairs (see #2955)
    Tang, Nian-Sheng, Hui-Qiong Li, and Man-Lai Tang. 2010. “A Comparison of Methods for the Construction of Confidence Interval for Relative Risk in Stratified Matched-Pair Designs.” Statistics in Medicine 29 (1): 46–62. doi:10.1002/sim.3744.

  3. josef-pkt commented on Jul 28, 2020

    @josef-pkt
    MemberAuthor

    cochrans_q for count data. Is there a version?
    https://stackoverflow.com/questions/63121388/why-is-there-no-variation-in-output-of-cochrans-q-test-from-statsmodel-library-i/63124202#63124202

    wikipedia https://en.wikipedia.org/wiki/Cochran%27s_Q_test has reference to Cochran's original article which is on matched samples. First page of it has 2x2 contingency tables with matched pairs, that looks like setup for mcnemar's test.
    (I don't have full article right now.)

    docstring needs an example and explain better what the format of the data is
    https://www.statsmodels.org/stable/generated/statsmodels.stats.contingency_tables.cochrans_q.html

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