[R] error function

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Mar 6 17:30:26 CET 2006

On Mon, 6 Mar 2006, François Pinard wrote:

> [Kjetil Brinchmann Halvorsen]
>> erf [in] package (CRAN) NORMT3, as help.search("error function") could
>> have told [you]
> It does not for me.  I would presume one needs NORMT3 installed first,
> and NORMT3 is seemingly not part of standard base R installation.

True.  And that function is really for complex arguments, and does not 
work correctly on 64-bit machines, e.g.

> erf(1)
Error in erfc(z) : Error code from TOMS 680 was  1

Perhaps more helpful is to point out that erf and erfc are simple 
transformations of pnorm.  RSiteSearch("erf") gave several results such as


which all point you to example(pnorm) for the details.  I'll add 
appropriate \concept fields.

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