How to delete duplicate observations in Stata | Stata Tutorial

4K views Mar 19, 2023

In this video, we learn how to drop/delete duplicate observations in stata. We also see how do we report duplicate observations and list them. And at the end of the video, we learn how to tag duplicate observations. We normally have to deal with this issue when we are going to xtset data in stata. We sometimes get an error "repeated time values within panel r(451);". This error is because we have repeated observations. 00:00 Error repeated time values within panel 2:00 Report duplicate observations 5:45 List of all duplicates observations 6:10 Duplicates from each group 6:40 Duplicates with respect to all observations 7:10 Drop duplicates with respect to variables 8:30 Drop duplicates in just one group 9:15 Tag the duplicate observations 10:38 Drop duplicates based on a subset of data Website: thedatahall.com

#Computer Security
  # Java (Programming Language)
  # Networking