R: Error function

erf {statip} | R Documentation

## Error function

### Description

The function `erf()` encodes the error function, defined as `erf(x) = 2 * F(x * sqrt(2)) - 1`, where `F` is the Gaussian distribution function.

### Usage

    erf(x, ...)

### Arguments

`x` | numeric. A vector of input values.
`...` | Additional arguments to be passed to `pnorm`.

### Value

A numeric vector of the same length as `x`.

### References

https://en.wikipedia.org/wiki/Error_function.

### See Also

`pnorm` from package stats.

[Package statip version 0.2.3 Index]