powered by
The function erf() encodes the error function, defined as erf(x) = 2 * F(x * sqrt(2)) - 1, where F is the Gaussian distribution function.
erf()
erf(x) = 2 * F(x * sqrt(2)) - 1
F
erf(x, ...)
numeric. A vector of input values.
Additional arguments to be passed to pnorm.
pnorm
A numeric vector of the same length as x.
x
https://en.wikipedia.org/wiki/Error_function.
pnorm from package stats.