COURSE ID: D-IN19 LANGUAGE:

A GENTLE INTRODUCTION TO MATA

Mata, Stata’s relatively “low level” built-in matrix compiled language, is similar in many ways to R, Matlab or GAUSS. As such, it cannot be considered a replacement for Stata, nor is it intended to be a stand-alone statistical package in itself. Rather it is a programming tool which is best used as a supplement to Stata, in order to execute those tasks, which Stata does not do very well on its own. One of the main drawbacks in learning Mata however, is that the Mata Reference Manual, whilst extremely detailed, offers little advice on how Mata can be actively implemented. In this course therefore, we seek to bridge this gap, offering participants a gentle, but extensive introduction into Mata’s programming capabilities. To this end, the opening sessions focus on more general considerations, such as when the use of Mata is either justified or warranted and offers participants an overview of Mata’s syntax and its principle commands. The program then moves on to illustrate both Mata’s functions and built-in libraries and how Mata’s operators (such as functions, pointers and structures) and code can be effectively integrated in both user written do and ado-files.

At the end of the course, it is expected that participants will be able to independently implement the techniques learnt during the course of the workshop in order be able to use Mata to work more effectively in Stata.

This course is, by its nature, to be considered very much a “hands-on/applied training course”. Each session is composed of both a theoretical component (in which the techniques are explained), and an applied (hands-on) segment, during which participants have the opportunity to implement the techniques under the watchful eye of the course tutor. Throughout the course, theoretical sessions are reinforced by practical examples, in which the course tutor discusses and highlights potential pitfalls and the advantages of individual programming techniques.

Researchers in any field interested in learning Stata’s programming matrix language. Ph.D. students and researchers interested in extending their existing knowledge of Mata.

A good knowledge of do files programming and a basic knowledge of ado files programming is required. The knowledge of alternative “low-level” and matrix programming languages may greatly enhance the understanding of more advanced topics like pointers, structures and classes.

SESSION I

A Mata taxonomy
Obtaining help in Stata
Using Mata interactively
Mata syntax and operators
Subscripting
Customizing graphs
Functions: types, declarations and arguments
Compile and use a function
Flow of control: loops and branching
Built-in Mata functions
Mata libraries
Using Mata with do-files

 

SESSION II

Functions of functions
Pointers and structures
Classes
Optimization: optimize and moptimize
Using Mata with ado-files

 

COURSE REFERENCES

An Introduction to Stata Programming, Christopher F. Baum, Second Edition, Stata Press 2016
The Mata Book: A Book for Serious Programmers and Those Who Want to Be, William Gould, Stata Press 2018

The workshop will be held in Milano on the 4th-5th May 2020.

KINDLY NOTE:

Due to the current Public Health situation in Europe, we unfortunately have to reschedule this course date. We will be monitoring the virus situation very carefully over the forthcoming weeks, so as to be in a position to publish a feasible updated course schedule as soon as possible. Please accept our apologies for any inconvenience caused.

Full-Time Students*: € 700.00
Academic: € 950.00
Commercial: € 1250.00

**To be eligible for student prices, participants must provide proof of their full-time student status for the current academic year.

Fees are subject to VAT (applied at the current Italian rate of 22%). Under current EU fiscal regulations, VAT will not however applied to companies, Institutions or Universities providing a valid tax registration number.

Please note that a non-refundable deposit of €100.00 for students and €250.00 for Academic and Commercial participants, is required to secure a place and is payable upon registration. The number of participants is limited to 10. Places will be allocated on a first come, first serve basis.

Course fees cover: teaching materials (handouts, Stata do-files, program templates and datasets to use during the course), a temporary course licence of Stata valid for 30 days from the beginning of the course, light lunch and coffee breaks.

To maximize the usefulness of this course, we strongly recommend that participants bring their own laptops with them, to enable them to actively participate in the empirical sessions.

Individuals interested in attending this workshop must return their completed registration forms by e-mail (training@tstat.eu) to TStat by the 14th April 2020.


NAME

EMAIL

OBJECT

ADDITIONAL COMMENTS

I authorise the use of my personal data pursuant to Article 13 of L. Decree no 196 / 2003

Mata, Stata’s relatively “low level” built-in matrix compiled language, is similar in many ways to R, Matlab or GAUSS. As such, it cannot be considered a replacement for Stata, nor is it intended to be a stand-alone statistical package in itself. Rather it is a programming tool which is best used as a supplement to Stata, in order to execute those tasks, which Stata does not do very well on its own. One of the main drawbacks in learning Mata however, is that the Mata Reference Manual, whilst extremely detailed, offers little advice on how Mata can be actively implemented. In this course therefore, we seek to bridge this gap, offering participants a gentle, but extensive introduction into Mata’s programming capabilities.