R/qlcombChisq.R

Defines functions `qlcombChisq`

`qlcombChisq` <-
function(p, coefs = c(0.5, 0.5), df = 1, lower.tail = TRUE, nsims = 10000, ncp = 0, ...) {
    nchis <- length(coefs)
    if (lcombChisqParsOK(nchis, df, ncp))
        return( quantile( as.numeric( coefs %*% replicate(nsims, rchisq(n=nchis, df=df, ncp=ncp))), probs = if (lower.tail) p else 1-p, ...))
}

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.