Introduction to multi-level linear modelling with Stata (13th & 15th November, 2017)

Participant capacity: 30. (Please confirm your attendance by FILLING UP THIS FORM). Places will be confirmed on a first-come, first-served basis.



Day-1: 13th Novemeber, 2017

Day-2: 15th November, 2017

Time: 10:00-16:00
Instructor: Mohammod Mostazir
Location: F19 IT Suite, Medical School Building, St Luke's Campus

Workshop aim:

The aim of this two-day workshop is to provide an introduction to multi-level linear modelling using the statistical software package Stata.  The course will enhance participant’s capacity of statistical programming in Stata and modelling of hierarchical linear clustered data. We will only cover Linear models i.e. continuous outcome variables.

Why Stata:

A recent meta-analysis revealed Stata to be the highest used software in the Health service research (HSR). It is flexible and intuitive with great power to answer research questions.


Basic statistics will not be covered in terms of conceptual teaching but will be touched through programming context. Though will be covered through programming, some basic level of understanding about linear regression models is required i.e. interpretation of coefficients, variance, standard error etc. No programming knowledge is required as the course targets to cover the programming part in Stata. No personal laptop/notebook is required as the software is installed in the lab computers.

Programme outline:

Day-1: 13th November, 2017, Time: 10:00-16:00

Introduction to Stata

- Managing Stata

  • Opening Stata, window management, writing syntax, executing commands
  • Import data (from SPSS, Excel, CSV, TEXT)
  • Basic commands (generate/recode/label variables, change variable string to numeric, data storage type etc.)
  • Explore basic descriptive statistics i.e. mean, standard deviation, correlation, t-test, chi-square test etc.)
  • Basic graphics (scatter plot, linear/quadratic relationships/histogram, density plot)
  • Loop programming
  • Using/installing user written programmes

- Multivariate linear regression with Stata

  • Fitting regression models in Stata
  • Exploring slopes, interaction effects
  • Use of Stata's "margins" command (further testing hypothesis)
  • Interaction plot using "margins"
  • Test of interim hypotheses (using linear combination of covariates exploiting matrices)

Day-2: 15th November, 2017, Time: 10:00-16:00

Multi-level/hierarchical linear regression model with Stata

  • Setting data for hierarchical/longitudinal data
  • Variance component models
  • Intra-class correlations (ICC)
  • Multivariate Random Intercept models
  • Interactions
  • Multivariate Random Coefficient models
  • Further test of hypotheses
  • Exploring subject specific slopes (Time permitting)
  • Further model guidance (Time permitting)

For further information about the workshop please email Mohammod Mostazir.