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))))
}

Try the goProfiles package in your browser

Any scripts or data that you put into this service are public.

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.