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: RE: error with xtset
From
"Hoffman, George" <[email protected]>
To
"[email protected]" <[email protected]>
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: [email protected] [mailto:[email protected]] 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/