Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: duplicates for one variable
From
Shehzad Ali <[email protected]>
To
Stata List <[email protected]>
Subject
st: duplicates for one variable
Date
Wed, 24 Nov 2010 14:35:19 +0000 (GMT)
Hi listers,
I am looking to find duplicate observations on a certain variable 'time'. Here
is what the data looks like:
id time var3
1 10 2.5
1 20 3.0
1 30 3.5
2 10 2.5
2 10 4.0
I want to identify the observations that are duplicate on the time variable
only, i.e. the last observation in the dataset above.
I would appreciate your help.
Many thanks,
Shehzad
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/