cocohet(data, trait, window, return_all_result = TRUE, makePlot = FALSE, test = "CHI2", min_expected_cut_off = -1)
snp.data
integer
logical
character
integer
or
numeric
The three tests are implemented: Pearson's chi-square test, Pearson's chi-square test with Yates correction, Fisher exact test. In case when the input parameter min_expected_cut_off is <0 the="" choosen="" in="" input="" parameter="" "test"="" test="" is="" performed.="" if="" min_expected_cut_off="">= 0 then always Pearson's chi-square test is performed exept of the cases when expected number of subjects in a field of contingency table is 0>
require(GenABEL.data)
data(srdta)
chis2_nocorrection <- cocohet(data=gtdata(srdta),
trait=phdata(srdta)$bt, window=3, test="CHI2")
Run the code above in your browser using DataLab