Home  /  Learn  /  Web training  /  Multilevel/mixed models using Stata

Multilevel/mixed models using Stata

4 days 3–4 hours daily

This course introduces multilevel/mixed modeling for nested and longitudinal data and its implementation in Stata. Mixed models contain both fixed effects, analogous to regression coefficients, and random effects, effects that vary across clusters. Participants will learn how to use mixed models to answer research questions about the observation- and cluster-level data and how to disaggregate these effects. Introductory theory, estimation, model building, and diagnostics will be discussed and demonstrated through many examples.

Are you more interested in panel-data models with unobserved individual-level heterogeneity, endogenous variables, or lagged variables? Check out our Panel-data analysis using Stata course.

← Back to all courses

Upcoming sessions

17–20 November 2026

11:00 a.m. to 2:30 p.m. CST (5:00 p.m. to 8:30 p.m. UTC)

Enrollment deadline: 13 November

Course leader

Meghan Cain portrait

Meghan Cain

Assistant Director, Educational Services

Meghan Cain is the Assistant Director of Educational Services at StataCorp LLC. She earned her PhD in quantitative psychology from the University of Notre Dame, where her research focused on structural equation modeling, multilevel modeling, and Bayesian statistics. At Stata, she oversees training courses, webinars, and videos, and develops and presents many of them herself. She also reviews Stata Press books and provides statistical expertise for marketing content.

Prerequisite

  • Knowledge of linear regression and a working knowledge of Stata.

Course topics

  • The nested data problem and potential solutions


  • The multilevel/mixed-effects model (MLMM) with mixed

    • Theory and intuition
    • Random-intercept models
    • Random-coefficient (random-slope) models
    • Estimation methods: maximum likelihood, restricted maximum likelihood, generalized least squares, and small-sample inference
    • Model comparison: Wald test, likelihood-ratio test, information criteria
    • Using residuals and diagnostic plots to check assumptions

  • Longitudinal data analysis

    • Exploring and visualizing longitudinal data with the xt suite of commands
    • Random-intercept models with xtreg
    • Growth curve models with mixed
    • Alternative covariance structures

  • More complex models

    • Three-plus level models
    • Crossed-effects models
    • Binary and count responses with the me suite of commands
    • Estimation via adaptive Gaussian quadrature

  • Report results from a multilevel modeling analysis

“The course was great—exactly what I was looking for. The instructor did an excellent job making difficult concepts easy to understand, showing us tricks in using Stata, and she also skillfully answered many difficult questions.”

Dr. William Mangino
Associate Professor of Sociology
Hofstra University

Future sessions

Inform me when the next session is available.




 

I would like to receive the following email alerts:

*Select all that apply

To ensure delivery of emails to your inbox, add [email protected] to your address book.