
Stata 19 is here—explore all the features.
StataCorp will be a sponsor and exhibitor at the CSP 2024 Annual Conference. Attending from StataCorp: Chuck Huber, Director, Statistical Outreach. We're also hosting a Practical Computing Demo. For more information about the meeting, visit the CSP 2024 Annual Conference page.
Try Stata for free by requesting a short-term evaluation license. To be notified of future software releases, free webinars, classroom and web-based training courses, and more, sign up for an email alert.
Title: | Introduction to difference in differences in Stata |
Presenter: | Chuck Huber, Director, Statistical Outreach |
Date: | Thursday, 29 February 2024 |
Time: | 2:00–4:00 p.m. CT |
Description: | This talk will briefly introduce the concepts and jargon of difference-in-differences (DID) models and show how to fit the models using Stata's suite of DID commands. We will demonstrate how to fit models for repeated cross-sectional data using didregress and for panel/longitudinal data using xtdidregress. We will also fit heterogeneous DID models where the average treatment effect varies over time or cohort using hdidregress and xthdidregress. We will discuss the model assumptions and how to check these assumptions after fitting a model. We can check the parallel-trends assumption using estat trendplots and estat ptrends, and we can check for anticipation of treatment using estat granger. After fitting heterogeneous DID models, we will also demonstrate how to aggregate the average treatment effect among the treated (ATET) using estat aggregation and how to visualize the trends in ATETs using estat atetplot. |
Fee: | Free |
Chuck Huber is Director of Statistical Outreach at StataCorp LLC and Adjunct Associate Professor of Biostatistics at the Texas A&M School of Public Health and at the New York University School of Global Public Health. In addition to working with Stata's team of software developers, he produces instructional videos for the Stata YouTube channel, writes blog entries, develops online NetCourses, and gives talks about Stata at conferences and universities. Most of his current work is focused on statistical methods used by behavioral and health scientists. He has published in the areas of neurology, human and animal genetics, alcohol and drug abuse prevention, nutrition, and birth defects. Dr. Huber currently teaches survey sampling at NYU and introductory biostatistics at Texas A&M, where he previously taught categorical data analysis, survey data analysis, and statistical genetics.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2025 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.