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: RE: error with xtset


From   "Hoffman, George" <ghoffman@mcw.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: error with xtset
Date   Tue, 11 Jun 2013 10:39:15 +0000

You probably have several rows of missing data in group and year.
You could:
tab group year, mis
drop if group==.&year==.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Prakash Singh
Sent: Tuesday, June 11, 2013 4:56 AM
To: statalist
Subject: st: error with xtset

Dear all, I am working with unbalanced polled cross section data which having 4 district and 2 years information. when I am using xtset I am getting error which says repeated time values within panel.

 xtset  group year
repeated time values within panel
r(451);

 the tabulation of entity and year is given below

tab group year

           |         Year
     group |      2004       2006 |     Total
-----------+----------------------+----------
         1 |       262        342 |       604
         2 |       188        247 |       435
         3 |       103        130 |       233
         4 |        70         95 |       165
-----------+----------------------+----------
     Total |       623        814 |     1,437

Could anyone suggest what is wrong with my command or data.

Regards
Prakash
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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