Improving your Stata: data management, publication-quality outputs, and automating tasks

Course dates

22 - 24 May 2018.

Course duration

3 days (approximately 18 hours teaching).
Registration will start at 9am on the first day, the course will finish by 3.30pm on the final day.

Course tutors

Dr Rachael Hughes, Michael Lawton (course organisers) and others.

Course aims 

The aim of this course is to provide a more advanced knowledge of Stata 15 statistical software package.

Course objectives

By the end of day 3 participants should be able to:

  • understand how to use Stata efficiently through using a greater range of commands;
  • manipulate data using the egen command;
  • create sample data;
  • reshape a dataset between wide and long formats;
  • create a summary dataset of the original data;
  • access stored results from Stata commands;
  • automatically format and save output for tables;
  • create publication-quality graphs;
  • use looping structures for repetitive code;
  • create a new dataset without altering an existing dataset open in Stata.  

Who the course is intended for

Prerequisites - It is assumed that participants will have attended the 'Introduction to Stata' course (or be familiar with the contents of this course), AND are able to: open and save datasets; generate and rename variables; label variables and values; restrict commands to a subset of the data using the if, in and by qualifiers; generate a Stata date from a string; change the working directory; and use commands display, list, summarize and tabulate.

Participants should have a working knowledge of basic statistics such as linear regression. However, the course is focused on data management and programming skills rather than statistical content.

Course outline

  • Advanced functions and expressions using egen.
  • Collecting statistics and reshaping datasets.
  • Creating sample data.
  • Accessing stored results from Stata commands.
  • Creating publication-style tables in Stata.
  • How to use macros and scalars.
  • Creating publication-style graphs in Stata.
  • Using loops to do repetitive tasks.
  • Posting data to a file.
  • Organising and documenting work.

Please note: This course was previously called 'Advanced Stata'.
Practical sessions of this course will be held in a computer lab, so you will not need to bring a laptop. Stata version 15 will be used during the course.


Booking for this course is now closed.

I thought the pace of the course kept things clear. Interacting with Stata, typing commands and dealing with errors was an important part of learning and kept me more engaged. Teachers were clear and there was always support on hand.

Course feedback, March 2017

Course fee


More information on course fees, fee waivers and reduced prices.

Course venue

Bristol Medical School
Canynge Hall
39 Whatley Road
United Kingdom

Map and directions

Course refreshments

We provide morning and afternoon refreshment breaks, including tea and coffee, biscuits and fresh fruit.

If you have specific dietary needs we ask that you let us know in advance.

Lunch is not included. There are a range of local cafes and supermarkets nearby for students to purchase lunch. 


Information about accommodation in the area.


For further information please email

Edit this page