https://github.com/cran/HardyWeinberg
Raw File
Tip revision: 59bc105de5b1eda230f8d1ce6ac1c7e09cfe1ad3 authored by Jan Graffelman on 06 April 2024, 09:53:07 UTC
version 1.7.8
Tip revision: 59bc105
CombineExact.R
CombineExact <-function (Xmat, alternative="less")
{
    m <- nrow(Xmat)
    pvecless <- HWExactStats(Xmat,plinkcode=FALSE,pvaluetype="midp",alternative="less")
#    pvecgrea <- HWExactMat(Xmat,pvaluetype="midp",alternative="greater")$pvalvec
#    pvecgrea <- 1 - pvecless
    mipless <- mipvalue(pvecless)
#    mipgrea <- mipvalue(pvecgrea)
    mipgrea <- 1 - mipless
    return(list(mipless=mipless,mipgrea=mipgrea))
}
back to top