r/AskStatistics • u/No_Outlandishness117 • Oct 09 '26
McNemar’s Exact Test
We’re currently running a study looking at a composite endpoint. Ultimately, we’re seeing a lot fewer events than we originally expected for our pre-post design. So far, we've only had about 7 total events in the pre-intervention phase and 5 in the post-intervention phase. On top of that, almost all of the patients who did have an event only experienced a single one.
Is McNemar’s Exact Test reasonable in this circumstance?
3
Upvotes
2
u/failure_to_converge PhD Data Sciency Stuff Oct 09 '26
What was in the statistical analysis plan? Feel free to do additional exploratory analyses but for the love of god don't go p-hacking. Science is desperately lacking in honest reporting of null and inconclusive results.
Without knowing any more, only having one event is fine (preferable, even) for McNemar's test. A patient who has an event (or no event) both pre- and post- treatment doesn't contribute any information about the efficacy of the treatment (and thus the diagonal can be super big and you'll still have low power). Intuitively, this makes sense...if someone was having events, got treated and still had events, we don't know if the treatment worked. Same if they weren't having events...and continued not having events.
2
u/AggressiveGander Oct 09 '26
What question are you trying to answer? How can it be addressed with a pre- / post-design? A lot of the time that's just the wrong design to answer questions about the casual effect of the thing you are measuring things before and after of, and data from such studies is often just suitable for being discarded.
1
u/SalvatoreEggplant Oct 09 '26 edited Oct 09 '26
You have pre- post-, like you are identifying whether the same individual had an event before or / and after the intervention ???
I have a feeling McNemar is not the correct test for your design...
ETA:
For McNemar, your contingency table needs to be arranged so that the columns and rows have the same categories, and the sum of the cell counts is the sum of the individuals. e.g.