Beta and noncentral beta distributions
Cumulative beta distribution
Probability density of the beta distribution
Right-tailed beta distribution
Inverse cumulative beta distribution
Inverse of the upper-tailed 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
Right-tailed binomial distribution
Inverse cumulative binomial distribution
Inverse of the upper-tailed binomial distribution
Chi-squared distribution
Cumulative chi-squared distribution
Probability density of chi-squared distribution
Right-tailed chi-squared distribution
Inverse cumulative chi-squared distribution
Inverse of the upper-tailed chi-squared distribution
Noncentral chi-squared distribution
Cumulative noncentral chi-squared distribution
Inverse cumulative noncentral chi-squared distribution
Noncentrality parameter of the noncentral chi-squared distribution
Probability density of noncentral chi-squared distribution
Reverse cumulative noncentral chi-squared distribution
Inverse of upper-tailed noncentral chi-squared 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 upper-tailed exponential distribution
F and noncentral F distributions
Cumulative F distribution
Probability density of the F distribution
Right-tailed F distribution
Inverse cumulative noncentral F distribution New
Inverse cumulative F distribution
Inverse of the upper-tailed distribution
Cumulative noncentral F distribution
Probability density of the noncentral F
Right-tailed noncentral F distribution
Inverse upper-tailed noncentral F distribution
Noncentrality parameter of the noncentral F distribution
Gamma distribution
Cumulative gamma distribution
Probability density of the gamma distribution
Right-tailed gamma distribution
Inverse cumulative gamma distribution
Inverse of the upper-tailed distribution
Partial derivatives of the cumulative gamma distribution
Second partial derivatives of the cumulative gamma distribution
Natural log of the inverse gamma density
Hypergeometric distribution
Cumulative hypergeometric distribution
Probability mass of the hypergeometric distribution
Logistic distribution
Probability density of the logistic distribution
Cumulative logistic distribution
Reverse cumulative logistic distribution
Inverse cumulative logistic distribution
Inverse upper-tailed logistic distribution
Negative binomial distribution
Cumulative negative binomial distribution
Probability mass function of the negative binomial distribution
Right-tailed negative binomial distribution
Inverse cumulative negative binomial distribution
Inverse of the upper-tailed 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
Poisson distribution
Cumulative Poisson distribution
Probability mass of the Poisson distribution
Right-tailed Poisson distribution
Inverse cumulative Poisson distribution
Inverse of the upper-tailed Poisson distribution
Student’s t and noncentral Student’s t distributions
Cumulative Student’s t distribution
Robability density of the Student’s t distribution
Right-tailed Student’s t distribution
Inverse cumulative Student’s t distribution
Inverse of the upper-tailed Student’s t distribution
Cumulative noncentral Student’s t distribution
Probability density of the noncentral Student’s t distribution
Right-tailed noncentral Student’s t distribution
Inverse cumulative noncentral Student’s t distribution New
Inverse of the upper-tailed 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
Upper-tailed Weibull distribution
Inverse cumulative Weibull distribution
Inverse upper-tailed 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 upper-tailed 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, half-year, 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
© Copyright 1996–2026 StataCorp LLC