Stata
Products Purchase Support Company
Search
   >> Home >> Products >> Capabilities >> Matrix programming Bookmark and Share

Matrix programming—Mata

Environment

  • Interactive—type matrix expressions and see results
  • Development—full development environment for developing programs and commands
  • Automatically compiled code

General features and matrix operators

  • Support for real and complex values
  • Joining by rows or columns
  • Addition, subtraction, multiplication, scalar division
  • Elementwise arithmetic
  • Transposition and reshaping
  • Kronecker and Hadamard products
  • Inner and outer products

Optimizer (Updated)

  • Code the function, function and gradient, or function, gradient, and Hessian
  • Newton–Raphson, BFGS, DFP, BHHH, Nelder–Mead, and Gauss–Newton techniques
  • Versions for general problems and statistical problems like maximum likelihood New
  • Debugger
  • Covariance matrix based on Hessian, outer product of gradients, or robust/sandwich

Mathematical and matrix functions

  • LAPACK numerical analysis routines (Updated)
  • Symmetric, nonsymmetric, and generalized inverses
  • Cholesky, LU, QR, and SVD solvers
  • Transcendental and trigonometric functions
  • Gamma and factorial functions
  • Density and distribution functions
  • Polynomial evaluation, arithmetic, and calculus
  • Hilbert, Toeplitz, and Vandermonde matrices
  • Duplication, commutation, and elimination matrices New
  • Random-number generation
  • Fast Fourier analysis
  • Cubic splines
  • Means, sums, minimums, and maximums of matrices
  • Numerical first and second derivatives New

Object-oriented programming New

  • Inheritance
  • Virtual functions
  • Encapsulation of data structures and programs

Decompositions

  • Eigenvalues and eigenvectors (Updated)
  • Cholesky
  • LU and LUD
  • QR
  • Schur New
  • Hessenberg New
  • Singular value
  • Permutation matrices

Data accumulation

  • Cross products
  • Cross products of deviations from means
  • Weighted and GLS-type cross products
  • Support for quad-precision cross products

Stata interface

  • Convert Stata datasets to matrices and vice versa
  • Virtual matrix views onto dataset
  • Access and set estimation-class and other macros
  • Manipulate dataset value labels

Other features

  • String scalars and matrices
  • File I/O, including buffered I/O
  • C-like syntax
  • Fast execution

See New in Stata 11 for more about what was added in Stata Release 11.

Read the Introduction to Mata.

Stata 11
Overview: Why use Stata?
Stata/MP
64-bit Stata
Capabilities
Overview
Data management
Graphics
Basic statistics
Linear models
Binary and discrete outcomes
Panel data
Survey methods
Time series
Survival analysis
Epidemiology tools
Mixed models
GLM
ANOVA / MANOVA
Multiple imputation
Exact statistics
Nonparametric methods
Multivariate methods
Cluster analysis
Resampling
Model testing
Maximum likelihood
Other statistical methods
Programming
Matrix programming—Mata
Matrix language
Internet capabilities
Accessibility
Sample session
User-written commands
New in Stata 11
Supported platforms
Which Stata package?
Technical support
User comments
Products
Stata 11
Order Stata
Upgrade
Training
Bookstore
Stata Journal
Stata Press
Stata News
STB
Stat/Transfer
Gift Shop

Site overview
Products
Resources & support
Company
Site index

© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index