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

st: RE: RE: subscripting in groups


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: subscripting in groups
Date   Thu, 23 Dec 2004 15:47:48 -0000

-tsset- should work fine with panel 
data. Looking again at the example 
data you showed previously, I see 
that you do not have data for each 
year. However, the error message
below arises for a different reason. 

Try 

. duplicates list code year 

Nick 
[email protected] 

Katsuhide Isa
> 
> Thank you for your comment.
> 
> > May I suggest -tsspell- on SSC?
> >
> > tsset code year
> > tsspell dept
> 
> When I typed,
> 
> tsset code year
> 
> I got the following error:
> 
> repeated time values in sample
> r(451);
> 
> -tsset- is a time series command, while my data is longitudinal
> data, so the above error was shown, I suspect.
> # Sorry if I'm mistaken
> Or, does this message imply -year- contasins some irregular
> values?
> 
> I'd appreciate additional advice.
> 
> K.I.
> 
> P.S.
> As you suggest, I'd have dropped all missings  on -dept-.
> before creating new variables.

*
*   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