Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: tsset


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: tsset
Date   Fri, 18 Oct 2002 19:13:04 +0100

Landman, Todd

> I have a cross-national time-series data set arranged with 
> countries (i) and
> year (t) for the period 1976-2000.  I use 
> 
> tsset stateid year, yearly 
> 
> and it does not show the unit and time settings (as it has 
> done for other
> data sets I have used), but says there are repeated values 
> for each panel. I
> have tabulated stateid with year and find the same mean and 
> summary stats
> for each country, so I do not have a repeated year in any 
> panel. How can I
> remedy this tsset problem?
> 

Another check is 

bysort stateid year : assert _N == 1 

If you get an error message, 

by stateid year : gen freq = _N -1 
list if freq 

Nick 
[email protected] 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index