More and more social science studies are in panel designs. Repeated measures violate the OLS assumption of iid errors. In this video clip, we show how to use Stata to estimate fixed-effect and random-effect models for longitudinal data with xtreg command. Also, to get your data ready for Stata, we cover the usage of reshape and xtset commands in Stata 10.