You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: hypothesis testing for proportions matched case-control #2743
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.)
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.
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.
Activity
josef-pkt commentedon Dec 23, 2015
(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.
josef-pkt commentedon May 18, 2016
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.
josef-pkt commentedon Jul 28, 2020
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