Skip to content
Prev 153971 / 398500 Next

help needed for HWE.exact in library "genetics"

"Sun, Ying" asked:
...
Yes, that is correct.  Double check it by calculating the
goodness-of-fit chi-square for the same hypothesis:

p <- 151/160; q <- 1-p; 80*c(p^2,2*p*q,q^2)
[1] 71.253125  8.493750  0.253125
...

David Duffy.