magicfun: A helper function for approximating normal tail probabilities

View source: R/trunc_dist.R

magicfunR Documentation

A helper function for approximating normal tail probabilities

Description

For Z ~ N(0, 1), we have the approximation P(Z \ge z) \approx magicfun(z)*exp(-z^2/2).

Usage

magicfun(z)

Arguments

z,

the number where the function is evaluated.

Value

This function returns the value of the function evaluated at z.

References

Bryc, Wlodzimierz. "A uniform approximation to the right normal tail integral." Applied mathematics and computation 127.2 (2002): 365-374.


lucylgao/clusterpval documentation built on July 4, 2023, 4:40 p.m.