In R, if I use the function mcnemar.exact from the exact2x2 package for my data set I get the following results:
Exact McNemar test (with central confidence intervals)
data: Matrix.3
b = 7, c = 12, p-value = 0.3593
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.1945802 1.6070322
sample estimates:
odds ratio
0.5833333
My question is: how was the odds ratio at the bottom calculated? I looked it up in the docs for the exact2x2 library and it says: "an estimate of the odds ratio. Note that the conditional Maximum Likelihood Estimate (MLE) rather than the unconditional MLE (the sample odds ratio) is used."
But no equation is provided.
What equation yielded the value 0.5833333?
exactMcNemar.pdf
vignette that comes with the package. I don't know if any of these have exactly what you seek, but that's where I'd look. $\endgroup$