[R] error functions

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jun 21 15:15:40 CEST 2003


Yes, statisticians call the natural versions of the cumulative normal 
distribution, pnorm.  As I recall

erf(x) = 2 * pnorm(x * sqrt(2)) - 1
erfc(x) = 2 * pnorm(x * sqrt(2), lower=FALSE)


On Sat, 21 Jun 2003, Salvatore Barbaro wrote:

> does anybody know if R contains error functions like 
> "erf" and "erfc" in S-Plus? Thanks in advance.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list