Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to create panel data out of different sample each year


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: how to create panel data out of different sample each year
Date   Tue, 26 Dec 2006 15:40:22 -0000 (GMT)

Murat Karaoz wrote:

[...]

> how to form the "id" (identifier) variable in this situation. Because all
> observations have different id every year which create problem. then xt
> functions dont work.

Since you appear to say that all of your IDs are unique, I'd have thought
the obvious answer would be simply to:

. g id = _n

and proceed thereon.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

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