The standard normal distribution's functions as scipy.special computes
them, for code that needs SciPy's values rather than a distribution
family.
Details
sc_ndtr(): the cumulative distribution function \(\Phi(x)\), complex. Base R:stats::pnorm().sc_log_ndtr(): \(\log \Phi(x)\), accurate far into the lower tail, complex. Base R:pnorm(x, log.p = TRUE).sc_ndtri(): the quantile function, the inverse ofsc_ndtr(). Base R:stats::qnorm().sc_ndtri_exp(): the inverse ofsc_log_ndtr(), for log probabilities too small forexp(). Base R:qnorm(y, log.p = TRUE).sc_owens_t(): Owen's T function \(T(h, a)\), which gives bivariate and skew-normal probabilities.
Arguments are recycled: each must have length one or the common length.
NA gives NA; NaN is evaluated as SciPy does. The result takes its
dimensions, or else its names, from the arguments as base R arithmetic
does, and so does each element of a list result. Conditions the kernels
raise, such as a pole, are handled as sc_seterr() says.
Examples
sc_ndtr(c(-1, 0, 1))
#> [1] 0.1586553 0.5000000 0.8413447
sc_log_ndtr(-40)
#> [1] -804.6084
sc_ndtri(0.975)
#> [1] 1.959964
sc_ndtri_exp(-1000)
#> [1] -44.61575
sc_owens_t(0.5, 2)
#> [1] 0.1415806