Statistical functions
 Beta and noncentral beta distributions
 Cumulative beta distribution
 Probability density of the beta distribution
 Righttailed beta distribution
 Inverse cumulative beta distribution
 Inverse of the uppertailed distribution
 Cumulative noncentral beta distribution
 Probability density of the noncentral beta distribution
 Inverse cumulative noncentral beta distribution
 Binomial distribution
 Cumulative binomial distribution
 Probability mass of the binomial distribution
 Righttailed binomial distribution
 Inverse cumulative binomial distribution
 Inverse of the uppertailed binomial distribution
 Chisquared distribution
 Cumulative chisquared distribution
 Probability density of chisquared distribution
 Righttailed chisquared distribution
 Inverse cumulative chisquared distribution
 Inverse of the uppertailed chisquared distribution
 Noncentral chisquared distribution
 Cumulative noncentral chisquared distribution
 Inverse cumulative noncentral chisquared distribution
 Noncentrality parameter of the noncentral chisquared distribution
 Probability density of noncentral chisquared distribution
 Reverse cumulative noncentral chisquared distribution
 Inverse of uppertailed noncentral chisquared distribution
 Dunnett's multiple range
 Cumulative Dunnett's multiple range distribution
 Inverse cumulative Dunnett's multiple range distribution
 Exponential distribution New
 Probability density of the exponential distribution
 Cumulative exponential distribution
 Reverse cumulative exponential distribution
 Inverse cumulative exponential distribution
 Inverse uppertailed exponential distribution
 F and noncentral F distributions
 Cumulative F distribution
 Probability density of the F distribution
 Righttailed F distribution
 Inverse cumulative noncentral F distribution New
 Inverse cumulative F distribution
 Inverse of the uppertailed distribution
 Cumulative noncentral F distribution
 Probability density of the noncentral F
 Righttailed noncentral F distribution
 Inverse uppertailed noncentral F distribution
 Noncentrality parameter of the noncentral F distribution
 Gamma distribution
 Cumulative gamma distribution
 Probability density of the gamma distribution
 Righttailed gamma distribution
 Inverse cumulative gamma distribution
 Inverse of the uppertailed distribution
 Partial derivatives of the cumulative gamma distribution
 Second partial derivatives of the cumulative gamma distribution
 Natural log of the inverse gamma density New
 Hypergeometric distribution
 Cumulative hypergeometric distribution
 Probability mass of the hypergeometric distribution
 Logistic distribution New
 Probability density of the logistic distribution
 Cumulative logistic distribution
 Reverse cumulative logistic distribution
 Inverse cumulative logistic distribution
 Inverse uppertailed logistic distribution
 Negative binomial distribution
 Cumulative negative binomial distribution
 Probability mass function of the negative binomial distribution
 Righttailed negative binomial distribution
 Inverse cumulative negative binomial distribution
 Inverse of the uppertailed negative binomial distribution
 Normal, log of the normal, and binormal distributions
 Cumulative bivariate normal distribution
 Cumulative standard normal distribution
 Probability density of the normal distribution
 Inverse cumulative standard normal distribution
 Log of the cumulative standard normal distribution
 Log of the probability density of the normal distribution
 Natural log of the multivariate normal density New
 Poisson distribution
 Cumulative Poisson distribution
 Probability mass of the Poisson distribution
 Righttailed Poisson distribution
 Inverse cumulative Poisson distribution
 Inverse of the uppertailed Poisson distribution
 Student's t and noncentral Student's t distributions
 Cumulative Student's t distribution
 Robability density of the Student's t distribution
 Righttailed Student's t distribution
 Inverse cumulative Student's t distribution
 Inverse of the uppertailed Student's t distribution
 Cumulative noncentral Student's t distribution
 Probability density of the noncentral Student's t distribution
 Righttailed noncentral Student's t distribution
 Inverse cumulative noncentral Student's t distribution New
 Inverse of the uppertailed noncentral Student's t distribution
 Noncentrality parameter of the noncentral Student's t distribution
 Tukey's Studentized range
 Cumulative Tukey's Studentized range distribution
 Inverse cumulative Tukey's Studentized range distribution
 Weibull distribution New
 Probability density of the Weibull distribution
 Cumulative Weibull distribution
 Uppertailed Weibull distribution
 Inverse cumulative Weibull distribution
 Inverse uppertailed Weibull distribution
 Weibull (proportional hazards) distribution New
 Probability density of the Weibull (proportional hazards) distribution
 Cumulative Weibull (proportional hazards) distribution
 Reverse cumulative Weibull (proportional hazards) distribution
 Inverse cumulative Weibull (proportional hazards) distribution
 Inverse uppertailed Weibull (proportional hazards) distribution
 Wishart and inverse Wishart distributions New
 Natural log of the density of the Wishart distribution
 Natural log of the density of the inverse Wishart distribution
Date and time functions
 Complete suite of functions for manipulating dates and
datetimes, including support for business calendars and leap
seconds
 Convert dates and datetimes in string form to numeric form
with great flexibility, including support for any order of year,
month, day, hour, minute, second, and millisecond
 Extract day, day of week, week of year, month, quarter,
halfyear, or year from specified date
 Extract hour, minute, second, or millisecond from specified
time or datetime, including optional adjustments for leap
seconds
 Convert between units of date and time
 Convert between business dates and regular dates
Matrix functions
Stata has a powerful matrix
language called Mata that contains hundreds of functions.
Below, we list some basic matrix functions that are
provided within Stata. All of the same functionality, and
more, is provided in Mata too. Mata is included with Stata.
 Determinant of matrix
 Trace of matrix
 Number of rows of matrix
 Number of columns of matrix
 Number of zeros on diagonal of matrix
 Floor of matrix element
 Check if matrix is symmetric
 Check for missing elements in matrix
 Relative difference of two matrices
 Column number associated with specified column name
 Row number associated with specified row name
 Identity matrix
 Inverse of matrix
 Cholesky decomposition
 Hadamard matrix
 Sweep matrix
 Correlation matrix of variance matrix
 Diagonal matrix from vector
 r x c matrix with each element equal to z
 r x c matrix with elements containing uniformly distributed
pseudorandom numbers in [0,1]
 Column vector from matrix

Randomnumber functions
 Uniform over interval (0,1) Updated
 Uniform over interval (a,b) New
 Uniform integers over interval [a,b] New
 Standard normal
 Normal, mean m and std. deviation 1
 Normal, mean m and std. deviation s
 Beta
 Binomial
 Chisquared
 Exponential New
 Gamma
 Hypergeometric
 Logistic, mean 0 and std. deviation π/√3 New
 Logistic, mean 0, scale s, std. deviation sπ/√3 New
 Logistic, mean m, scale s, std. deviation sπ/√3 New
 Negative binomial
 Poisson
 Student's t
 Weibull, shape a, scale b New
 Weibull, shape a, scale b, location g New
 Weibull (proportional hazards), shape a, scale b
 Weibull (proportional hazards), shape a, scale b, location g New
Randomnumber generators
 64bit Mersenne Twister generator New
 32bit KISS generator
Mathematical functions
 Programming functions
 Absolute value
 Ceiling
 Combinatorial
 Floor
 Maximum
 Minimum
 Modulus
 Relative difference
 Round of x in units of y
 Running sum
 Sign
 Truncation
 Common transcendental functions
 Natural logarithm
 Base10 logarithm
 Exponential
 Natural log of n factorial
 Complementary loglog
 Inverse of the complementary loglog
 Logit
 Inverse of the logit
 Square root
 Natural log of gamma
 digamma
 trigamma
Trigonometric functions
 Sine of radians
 Cosine of radians
 Tangent of radians
 Arcsine returning radians
 Arccosine returning radians
 Arctangent returning radians
 Twoargument arctangent
 Inverse hyperbolic sine
 Inverse hyperbolic cosine
 Inverse hyperbolic tangent
 Hyperbolic sine
 Hyperbolic cosine
 Hyperbolic tangent
Timeseries functions
 Return whether time is within a specified range, excluding
the range's endpoints
 Return whether time is within a specified range, including
the range's endpoints
String functions
 Full Unicode (UTF8) support New
 Abbreviation
 Concatenation
 Duplication
 Reduce multiple, consecutive internal blanks to one blank
 Remove leading blanks
 Remove trailing blanks
 Remove both leading and trailing blanks
 Lowercase string
 Convert string to "proper" case
 Uppercase string
 Localeaware "titlecase" string New
 Pluralize string
 Reversed string
 Substitution of characters for pattern found in string
 Substitution of characters for word found in string
 Extract substring
 Length of string
 Position of first character in string in list of match characters
 Position of first character in string not in list of match characters
 Position of string in another string
 nth word of string
 Number of words in string
 Convert string to numeric
 Convert numeric to string
 Sort and compare Unicode strings based on locale New
 Regular expression pattern matching
 Regular expression pattern replacement
 Regular expression pattern subexpressions
 Convert string to valid Stata name
 Wildcard pattern matching
 Convert strings to/from Unicode (UTF8) and extended ASCII New
 Escape and unescape Unicode (UTF8) strings New
 Unicode character for code point New
 Code point for Unicode character New
 ASCII character for decimal number
 Soundex code for string
 U.S. Census soundex code for string
Lowlevel programming functions
 Partition interval into n equallength intervals
 Recode number into one of several specified categories
 Byte order of computer architecture on which Stata is
currently running
 Version of caller of currently running program to assist
with backward compatibility version control
 Round if rounding does not exceed specified tolerance
 Convert number to singleprecision floatingpoint value
 Restrict returned value to a range
 Conditional function to return one value if argument is true
and another value if argument is false
 Check for any missing value in set or arguments
 Access to system parameters, system constants, and current
setting values
 Access to results of Stata commands
 Return whether observation is in estimation subsample
 Check whether value is in a list of arguments, string or
numeric
 Check whether value lies within a specified range of numbers
or strings
 Return maximum output width for value displayed with
specified display format
 Access to machine precision of double and singleprecision
floatingpoint numbers
 Access to cutoff value for normalized/denormalized IEEE
doubleprecision floating point numbers
 Access to largest and smallest possible values of each
numeric Stata variable storage type
 Read contents of file into string
 Write string to file
 Check whether file exists
 Normalize Unicode strings New
 Search for invalid UTF8 sequences New
