Hi Alan,
i have the same problem as you have. i use bilateral flow data for
investment. therefore, my reporter country has investment outflows a
large number of partner countries. hence, for each year, the reporter
has multiple partners. using tsset as you do with probably using the
reporter as the panel id will lead to the error message you got. i
went around that problem with creating a new variable which contains
the country pair as panel identifier. however, than you might run into
problems with variables which do not change over time for the pair
(such as distance) which might impose difficulties when you apply
panel data techniques...
code:
egen VARNAME = group (reporter partner), label
//creates a unique identifier for each country pair
tsset VARNAME year
hope it helps a bit.
georg
On 8/23/07, Jenny Winkler <[email protected]> wrote:
> Hi Alan,
>
> 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.
>
> Greetings,
>
> Jenny
>
> -----Urspr�ngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Alan Williamson
> Gesendet: Donnerstag, 23. August 2007 14:06
> An: [email protected]
> Betreff: st: time variable year limit
>
> 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
> _________________________________________________________________
> 100's of Music vouchers to be won with MSN Music
> https://www.musicmashup.co.uk/index.html
>
>
> *
> * 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/
>
>
> *
> * 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/
>
*
* 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/