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