Skip to content
Snippets Groups Projects
Commit f1d7c765 authored by Brent Pedersen's avatar Brent Pedersen
Browse files

better precision in reporting for fisher

parent 62802ecc
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ can do this with ``fisher`` as: ...@@ -48,7 +48,7 @@ can do this with ``fisher`` as:
#_________________________________________ #_________________________________________
# p-values for fisher's exact test # p-values for fisher's exact test
left right two-tail ratio left right two-tail ratio
1.00000 0.00001 0.00001 31.667 1 1.3466e-05 1.3466e-05 31.667
Where we can see the constructed contingency table and the pvalues for left, right Where we can see the constructed contingency table and the pvalues for left, right
......
...@@ -56,11 +56,9 @@ bool Fisher::calculate() { ...@@ -56,11 +56,9 @@ bool Fisher::calculate() {
printf("# p-values for fisher's exact test\n"); printf("# p-values for fisher's exact test\n");
printf("left\tright\ttwo-tail\tratio\n"); printf("left\tright\ttwo-tail\tratio\n");
printf("%.5f\t%.5f\t%.5f\t%.3f\n", left, right, two, ratio); printf("%.5g\t%.5g\t%.5g\t%.3f\n", left, right, two, ratio);
//kt_fisher_exact(50010000, 10000000, 15000000, 3000000, &left, &right, &two); return true;
return true;
} }
bool Fisher::getFisher() { bool Fisher::getFisher() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment