Dear Nick,
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/