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]

RE: st: RE: error with xtset


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

What is your panel ID variable? Group and year do not identify each observation, as your tabulation shows. (262 observations fit group==1 and year==2004). This is what stata is complaining about.

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

Dear George, I have checked that already there is missing  data in group and year.


On Tue, Jun 11, 2013 at 4:09 PM, Hoffman, George <ghoffman@mcw.edu> wrote:
> 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/
*
*   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