Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: tsset problem


From   "Tharyan, Rajesh" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: tsset problem
Date   Thu, 3 Dec 2009 11:04:54 +0000

Hi,

The problem is exactly what it says..your data has repeated year values within id. Is there a reason why there are repeated values? 
If not get rid of these repeated observations  and then tsset your data

bysort id: drop if year==year[_n-1]
tsset id year 

Hope this helps
R

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of "Elisabeth Müller"
Sent: 03 December 2009 10:47
To: [email protected]
Subject: st: tsset problem

Hello,

I have a problem when defining a panel. I type:

tsset id year

the error message is:
repeated time values within panel

Everything is ordere by id. What could be the problem?

Thanks
E
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
*
*   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/

*
*   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/



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