R/safeNormCDF.R

Defines functions `safeNormCDF`

`safeNormCDF` <-
function(x) {
    G.THRESH.NORM.CDF <-  10;     ## threshold used to avoid numerical problem
    x[x < -G.THRESH.NORM.CDF] <- -G.THRESH.NORM.CDF;
    pnorm(x);
}

Try the vbmp package in your browser

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

vbmp documentation built on Nov. 8, 2020, 5:38 p.m.