Hey everyone,
this forum has been a big help with prior stata problems I had. This is the first time I could not find an answer to my question on a different post. I have two datasets and conducted a Fisher Exact Test using stata 18 with the following code:
This results in the following output tables:
Afterwards I used the data to calculate the p-values by hand using the formula from https://en.wikipedia.org/wiki/Fisher%27s_exact_test. The resulting p-value for the first dataset was p=0.0688 and for the second example I calculated p=0.983. Overall I cannot report significant results at the 5% level either way but I would like to understand where the discrepency comes from.
I have already looked at https://www.stata.com/support/faqs/s...rs-exact-test/ but think it does not explain my problem but it could be that I misunderstood the post.
Thank you for taking the time to read my post (:
this forum has been a big help with prior stata problems I had. This is the first time I could not find an answer to my question on a different post. I have two datasets and conducted a Fisher Exact Test using stata 18 with the following code:
Code:
cci 59 55 52 62, exact
Code:
cci 13 8 13 17, exact
Code:
Proportion
| Exposed Unexposed | Total exposed
-----------------+------------------------+------------------------
Cases | 59 55 | 114 0.5175
Controls | 52 62 | 114 0.4561
-----------------+------------------------+------------------------
Total | 111 117 | 228 0.4868
| |
| Point estimate | [95% conf. interval]
|------------------------+------------------------
Odds ratio | 1.279021 | .7354733 2.225323 (exact)
Attr. frac. ex. | .218152 | -.3596687 .5506271 (exact)
Attr. frac. pop | .1129032 |
+-------------------------------------------------
1-sided Fisher's exact P = 0.2133
2-sided Fisher's exact P = 0.4267
Code:
Proportion
| Exposed Unexposed | Total exposed
-----------------+------------------------+------------------------
Cases | 13 8 | 21 0.6190
Controls | 13 17 | 30 0.4333
-----------------+------------------------+------------------------
Total | 26 25 | 51 0.5098
| |
| Point estimate | [95% conf. interval]
|------------------------+------------------------
Odds ratio | 2.125 | .5926572 7.795925 (exact)
Attr. frac. ex. | .5294118 | -.687316 .8717279 (exact)
Attr. frac. pop | .3277311 |
+-------------------------------------------------
1-sided Fisher's exact P = 0.1536
2-sided Fisher's exact P = 0.2581
I have already looked at https://www.stata.com/support/faqs/s...rs-exact-test/ but think it does not explain my problem but it could be that I misunderstood the post.
Thank you for taking the time to read my post (:

Comment