R/rlcombChisq.R

Defines functions `rlcombChisq`

`rlcombChisq` <-
function(n, coefs = c(0.5, 0.5), df = 1, ncp = 0) {
    nchis <- length(coefs)
    if (lcombChisqParsOK(nchis, df, ncp))
        return( as.numeric( coefs %*% replicate(n, rchisq(n = nchis, df = df, ncp = ncp))))
}
alexsanchezpla/goProfiles documentation built on May 28, 2019, 4:54 p.m.