CODICE CORSO: D-IN20-OL LINGUA:

Taking Your Stata Programming Skills To The Next Level: Developing And Modifying Stata Ado Files

The objective of TStat Training’s more advanced course is to provide participants with the programming commands and options required to autonomously develop and modify Stata ADO files. The opening session offers a quick overview of the fundamental concepts and commands (macros, vectors, scalers, looping, branching, temporary objects, foreach, forvalues) intrinsic to successful programming development. Session two moves on to illustrate the most effective way to develop a Stata ADO file, introducing participants to more specific programming concepts (such as arguments, local subroutines and the temporary storing of results) and Stata’s programming commands tokenizemacro shift, marksample and markout “byable” and sortpreserve. In section three participants are introduced to Stata’s inbuilt matrix capabilities, before moving on in the final session to developing their own programs for linear and maximum likelihood estimators.

 

In common with TStat’s course philosophy, each session is composed of both a theoretical component (in which the programming techniques are fully explained via a series of course specifi c developed examples), and an applied (hands-on) segment, during which participants have the opportunity to implement the techniques under the watchful eye of the course tutor.

 

At the end of the course, it is expected that participants will be able to independently implement both the techniques learnt and personalize the ADO program templates specifically developed during the course in order to enhance the effectiveness of their research.

Researchers or professionals with a good knowledge of the introductory programming skills covered on our A Little bit of Programming goes an Awfully Long Way.. wising to take their Programming skills to the next level in order to be able to program their only Stata ADO files for data analysis and data management and to develop develop Stata commands for least squares and maximum-likelihood estimators.

It is assumed that participants have a sound working knowledge of Stata and are familiar with the concepts and Stata commands treated in our introductory Stata Programming course: A Little bit of Programming goes an Awfully Long Way..

SESSION I: PROGRAMMING BASICS | A QUICK REVIEW

 

Macros

Global macros
Local macros

Scalars and matrices
Temporary objects
Looping
Branching

 

SESSION II: WRITING STATA PROGRAMS

 

Programming in Stata
Do-files and ADO-files
Writing and modifying a Stata program
Programs without arguments
Programs with positional arguments
Programs with named positional arguments
Storing and retrieving program results
Programs with arguments using the “syntax” construct
Using tokenize and macro shift
ADO-files
Implementing program options
The return statements
Sample restriction with marksample and markout
Making a command “byable
The use of sortpreserve
Writing an rclass ADO-file
Implementing program options
Sample restrictions with marksample
The usefulness of markout
Make a program “byable
The use of sortpreserve
Writing an eclass ADO-file
More on storing results in e()
eclass program template
Temporarily destroying the data in memory
Local sub-routines

 

SESSION III: STATA MATRIX CAPABILITIES

 

Stata matrix commands
Stata matrix input and output
Matrix input from Stata estimation results
Stata matrix subscripts and combining matrices
Matrix operators
Matrix functions
Defining a macro by a matrix function
Matrix accumulation commands

 

SESSION IV: PROGRAMMING ESTIMATORS

 

Programming Linear Least Squares estimation
Programming Maximum Likelihood estimation
Some examples

 

COURSE REFERENCES

An Introduction to Stata Programming, Christopher F. Baum, Second Edition, StataPress 2016

Due to the ongoing COVID-19 situation, the 2021 edition of this training course will be offered ONLINE on a part-time basis on the 26th and 29th-30th of March 2021 from 10.00 am to 1.30 pm Central European Time (CET).

Full-time students*: € 535.00
Academic: € 760.00
Commercial: € 1010.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.

 

The number of participants is limited to 8. Places, will be allocated on a first come, first serve basis. The course will be officially confirmed, when at least 5 individuals are enrolled.

 

Course fees cover: i) teaching materials (copies of lecture slides, databases and Stata programs specifi cally developed for the course; ii) a temporary licence of Stata valid for 30 days from the day before the course commences.

 

Individuals interested in attending the training course, must return their completed registration forms to TStat by the 16th March 2021.


L’iscrizione al corso dovrà avvenire tramite lo specifico modulo di registrazione e pervenire a TStat S.r.l. almeno 15 giorni prima dell’inizio del corso stesso. E’ possibile richiedere il modulo di registrazione compilando il seguente form oppure inviando una mail a formazione@tstat.it


NOME*


EMAIL*


OGGETTO


IL TUO MESSAGGIO


Termini e condizioni*
Ho letto la Privacy Policy

Accetto il trattamento dei dati



CORSO ONLINE

The objective of TStat Training’s more advanced course is to provide participants with the programming commands and options required to autonomously develop and modify Stata ADO files.

 

Due to the ongoing COVID-19 situation, the 2021 edition of this training course will be offered ONLINE on a part-time basis on the 26th and 29th-30th of March 2021.