R/Dunnetts.K.F1.R

Dunnetts.K.F1 <-
function (x, k, rho) 
{
    fcn.to.integrate <- function(y, x, k, rho) {
        pnorm((x + sqrt(rho) * y)/sqrt(1 - rho))^k * dnorm(y)
    }
    integrate(fcn.to.integrate, lower = -Inf, upper = Inf, x = x, 
        k = k, rho = rho)$value
}

Try the EnvStats package in your browser

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

EnvStats documentation built on Sept. 11, 2024, 6:03 p.m.