R/pUniformNormalTails.r

Defines functions pUniformNormalTails

Documented in pUniformNormalTails

pUniformNormalTails <- function(x, mu, width, height){

  res <- rep(NA, length(x))
  
  for (i in 1:length(res)){
    res[i] <- integrate(dUniformNormalTails, lower = -Inf, upper = x, mu = mu, width = width, height = height, 
    subdivisions = 300)$value
    }
  
  return(res)
}

Try the bpp package in your browser

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

bpp documentation built on Jan. 13, 2022, 5:09 p.m.