Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: duplicates in timevar in panels


From   "Mahesh Ramachandran" <mramachandran@clarku.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: duplicates in timevar in panels
Date   Thu, 26 Jun 2008 14:37:10 -0400 (EDT)

hello all,

I am working on a panel data set : 2000 households over 10 years(120 months)

It has a household identifier as panel id and year/month variable as timevar.

when I tried to tsset it, I get the following result:

. tsset panel_id timevar
repeated time values within panel
r(451);

My goal is to identify and isolates those panels which has repeated time values and remove the duplicates.
So I tried :
by panel_id: duplicates re timevar,

and response was that duplicates can not be combined with "by" command. Can you suggest me a way to remove
the duplicates.

Thanks,
MR
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index