Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Repeating values error in panel data


From   Martin Pszczola <martinpsz@gmail.com>
To   statalist@hsphsun2.harvard.edu
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/


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