Normal density function is not fully invertible. This function returns the positive inverse.

invDnorm(x)

inv_dnorm(x)

Arguments

x

A numeric vector.

Value

A vector the same length as x.

Details

Cribbed from http://stackoverflow.com/questions/19589191/the-reverse-inverse-of-the-normal-distribution-function-in-r.

inv_dnorm() is deprecated.

Author

Dave Braze davebraze@gmail.com

Examples

x <- seq(-4, 4, .1) y <- dnorm(x) plot(x,y)
points(invDnorm(y), y, pch=3, col="blue")