ERF Function


Returns the value of the (normal) error function

Category: Mathematical

Syntax

ERF ( argument )

Arguments

argument

  • is numeric.

Details

The ERF function returns the integral, given by

click to expand

Examples

You can use the ERF function to find the probability (p) that a normally distributed random variable with mean 0 and standard deviation will take on a value less than X. For example, the quantity that is given by the following statement is equivalent to PROBNORM(X):

 p=.5+.5*erf(x/sqrt(2)); 

SAS Statements

Results

y=erf(1.0);

0.8427007929

y=erf(-1.0);

-0.842700793




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net