zhengxwen / HIBAG

R package – HLA Genotype Imputation with Attribute Bagging (development version only)
https://hibag.s3.amazonaws.com/index.html
29 stars 7 forks source link

Difference between h.pval and others #32

Closed oalavijeh closed 1 month ago

oalavijeh commented 1 month ago

Dear colleage,

Many thanks for the fantastic tool. I was wondering what the difference between h.pval and the other p-values are? I appreciate there are differences between chi-squared and fishers but was unclear what the h.pval means when doing HLA association testing?

image

Many thanks

arsangjang commented 1 month ago

Hello,

The chisq.p/fisher.p estimated from the chi-square test assess the hypothesis that the groups are independent (is there association between the two categorical variables? (or the distribution of one variable is independent of the distribution of the other variable)

However, the h.pval specifically tests the null hypothesis (H0) that the odds ratio is equal to 1, that obtained from Wald test/glm model.