Title stata.com
functions — Functions
Description Acknowledgments References Also see
Description
This entry describes the functions allowed by Stata. For information on Mata functions, see
[ M-4 ] intro .
A quick note about missing values: Stata denotes a numeric missing value by . , .a, . b, . . . ,
or .z. A string missing value is denoted by "" (the empty string). Here any one of these may be
referred to by missing. If a numeric value x is missing, then x ≥ . is true. If a numeric value x is
not missing, then x < . is true.
Functions are listed under the following headings:
Mathematical functions
Probability distributions and density functions
Random-number functions
String functions
Programming functions
Date and time functions
Selecting time spans
Matrix functions returning a matrix
Matrix functions returning a scalar
Mathematical functions
abs( x )
Domain: - 8e+307 to 8e+307
Range: 0 to 8e+307
Description: returns the absolute value of x .
acos( x )
Domain: - 1 to 1
Range: 0 to π
Description: returns the radian value of the arccosine of x .
acosh( x )
Domain: 1 to 8.9e+307
Range: 0 to 709.77
Description: returns the inverse hyperbolic cosine of x , acosh( x ) = ln (x +
√ x 2
- 1 ) .
asin( x )
Domain: - 1 to 1
Range: -π/ 2 to π/ 2
Description: returns the radian value of the arcsine of x .
asinh( x )
Domain: - 8.9e+307 to 8.9e+307
Range: - 709.77 to 709.77
Description: returns the inverse hyperbolic sine of x , asinh( x ) = ln (x +
√ x 2
+ 1 ) .
1