StataProg Plan

2
1 Course: Advanced Stata programming and introductory Mata Date: September 34 2012 Lecturer: Dr. Ulrich Kohler (http://www.wzb.eu/bal/usi/leute/kohler.en.htm ) Social Science Research Center Berlin Site: Institute of Economics, University of Copenhagen Contact: Søren LethPetersen Seats: 35 , allocated on a first come, first served basis ECTS: 1 point (PhD students) Application: Registration deadline is August 1 st 2012, by email to Christel Brink Hansen ([email protected] ) Arranged and funded by the Danish Microeconometric Network. The Danish Microeconometric Network invites you to a twoday Stataprogramming course. It will be given by Dr. Ulrich Kohler, Social Science Research Center Berlin and coeditor of Stata Journal. The first day covers advanced dofile and adofile programming. Second day introduces Mata. A programoutline is found on the next page of this invitation. IMPORTANT: This course is a repetition of the Stata course arranged by the Microeconometric Network in June 2011. Prerequirements: Own labtopcomputer with Stata installed on it. Participants should be familiar with Stata. They should know how to start a dofile from the commandline. Morover, command of the data manipulation tools generateand replace, basic dataanalysis tools such as tabulate, summarize, and regress, and some experiences with graphare necessary prerequisites. A course webpage will be available before course start. Participants are expected to download material from this site prior to the course.

Transcript of StataProg Plan

Page 1: StataProg Plan

1  

Course:AdvancedStataprogrammingandintroductoryMataDate:   September 3‐4 2012 

Lecturer:  Dr. Ulrich Kohler (http://www.wzb.eu/bal/usi/leute/kohler.en.htm)   Social Science Research Center Berlin  

Site:  Institute of Economics, University of Copenhagen 

Contact:   Søren Leth‐Petersen 

Seats:   35 , allocated on a first come, first served basis 

ECTS:   1 point (PhD students) 

Application:  Registration deadline is August 1st 2012, by e‐mail to Christel Brink Hansen 

([email protected]

Arranged and funded by the Danish Microeconometric Network.  

The Danish Microeconometric Network invites you to a two‐day Stata‐programming course. It will be 

given by Dr. Ulrich Kohler, Social Science Research Center Berlin and co‐editor of Stata Journal.  

The first day covers advanced do‐file and ado‐file programming. Second day introduces Mata. 

A program‐outline is found on the next page of this invitation.  

IMPORTANT: This course is a repetition of the Stata course arranged by the Microeconometric 

Network in June 2011.  

 

Prerequirements: 

Own labtop‐computer with Stata installed on it. 

Participants should be familiar with Stata. They should know how to start a do‐file from the 

command‐line. Morover, command of the data manipulation tools ‐generate‐ and ‐replace‐, basic 

data‐analysis tools such as ‐tabulate‐, ‐summarize‐, and ‐regress‐, and some experiences with ‐

graph‐ are necessary prerequisites. 

 

A course web‐page will be available before course start. Participants are expected to download 

material from this site prior to the course. 

 

Page 2: StataProg Plan

2  

 

Program: 

Day 1. 

Advanced Stata Programming 

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 

The course covers two types of Stata programming: do‐file programming and ado‐file programming. 

It starts by presenting programming tools such as local macros, extended macro functions, inline 

macro expansion, loops, and branches and gives examples for their use in everyday data analysis. 

The second part of the course explains the nuts and bolds of defining a "program" in Stata. Finally 

the course provides a step‐by‐step tutorial for implementing a user‐written command into Stata 

("Ado‐Files").  

Participants should be already familiar Stata. They should know how to start a do‐file from the 

command‐line. Morover, command of the data manipulation tools ‐generate‐ and ‐replace‐, basic 

data‐analysis tools such as ‐tabulate‐, ‐summarize‐, and ‐regress‐, and some experiences with ‐

graph‐ are absolutely necessary prerequisites. 

 

Day 2 

Introduction to Mata programming 

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 

 

Mata is a full‐fledged programming language that operates in the Stata environment. The mata 

language is primarily designed to manipulate matrizes, which makes it particualrly usefull for 

programming statistical methods. The course introduces basic concepts of the language and 

discusses ways to interact between Stata and Mata. The course shows examples for definition of 

functions in Mata and provides a step‐by‐step tutorial for implementing a user‐written Stata 

command with Mata.  

Participants should be already familiar Stata. Participants of the first course are well prepared for 

participating in this course.