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

Coronavirus (COVID-19) information

The Short Course Programme in Population Health Sciences has been temporarily suspended.

Please note: this course was previously named "Advanced Stata". The course itself remains unchanged.


We anticipate opening bookings in late November 2020.

Information on this page relates to the last run of the course and is for reference only. 

Mailing List

Sign up to our mailing list to be notified when bookings reopen. 

We may need to make responsive changes to our future programme to follow the latest Public Health, Government and University guidance on coronavirus (COVID-19).

Please be aware that all information about short courses planned for 2021 is provisional and subject to change.

Course dates

20 - 22 January 2020

Course duration

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

Course tutors

Daisy Gaunt, 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 the course participants should be able to:

  1. understand how to use Stata efficiently through using a greater range of commands;
  2. manipulate data using the egen command;
  3. create sample data;
  4. reshape a dataset between wide and long formats;
  5. create a summary dataset of the original data;
  6. access stored results from Stata commands;
  7. automatically format and save output for tables;
  8. create publication-quality graphs;
  9. use looping structures for repetitive code;
  10. create a new dataset without altering an existing dataset open in Stata; and
  11. create Word documents using Stata with embedded tables, graphs and scalar results.

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
  • Creating publication-style graphs in Stata
  • Using loops to do repetitive tasks
  • Posting data to a file
  • Organising and documenting work
  • Automate embedding results in a Word document

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.

Overall I thought the course was really excellent and I would highly recommend it. The teachers were all very knowledgeable and approachable. The use of frequent application of new material in Stata exercises helped to consolidate a lot of the information.

Course feedback, January 2020

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.

Related short courses


For further information please email

Edit this page