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: Repeating values error in panel data
From
Martin Pszczola <[email protected]>
To
[email protected]
Subject
st: Repeating values error in panel data
Date
Sat, 23 Apr 2011 00:56:14 -0500
Hello;
I have trade data for 10 years between 1995-2005. Each of those years repeat in the data set because there are numerous combinations of reporting countries and partner countries. In trying to xtset, I get an error saying that the panel cannot be set because of repeating years. Other than differencing to remove the time trend, how may I set up the panel in Stata without fundamentally changing the data set? I have tried the suggestion posted by Cox in an earlier thread suggesting "egen panelid=group(var1 va2) but it seems to take Stata a long time to digest due to the size of the data. Any help will be appreciated. M
*
* 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/