Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

erf

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

See Also

pnorm from package stats.


statip

Statistical Functions for Probability Distributions and Regression

v0.2.3
GPL-3
Authors
Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.