Thank you Jenny and Nick.
I have two sets of panel data which is the same format, only the value is different. I just finished one set of the model testing. But the other set of the data could not work at all.
I got
. tsset id year
repeated time values within panel
r(451);
. isid id year
variables id year do not uniquely identify the observations
r(459);
Actually my data was sorted by id (panel-firms) and year (time variable-1990-2005). When I describe it, the data was sorted by id year. However, no matter what I do, it is not accepted at all. Please help.
Thank you again.
Alan.
I agree with Jenny than Alan's problem is unlikely
to arise from variable names. But it is not correct
that choice of variable names is absolutely free.
Name choice is constrained in terms of length
and characters allowed and the fact that certain
words are reserved.
Nick
[email protected]
Jenny Winkler
> I don't know if this answers your question but 'repeated
> within th panel'
> means that there are more than one observation for a certain
> country and
> year.
>
> If you want to tell stata tat the data you are using are
> panel data you have
> to put tsset country year or something similar (the first
> variable fort he
> cross sections, the second fort he time parameters).
>
> I don't think, you're problem has anything to do with the name of the
> variable, which you can choose absolutely freely for certain.
> From: [email protected]
> To: [email protected]
> Subject: time variable year limit
> Date: Thu, 23 Aug 2007 12:06:21 +0000
>
>
> Hello,
>
> I try to use year, yr, y, t, time, tim, etc. as the name of a time variable (tsset). But I always got 'repeated within the panel' or 'invalid time variable'.
>
> Must the time variable have a restrict name or year limit, such as minimum 2 or 3 years? Your help is appreciated.
>
> Thank you.
>
> Alan
>
_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk
*
* 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/