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   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: how to create panel data out of different sample each year
Date   Tue, 26 Dec 2006 17:04:21 +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.
 
--- Clive Nicholas <[email protected]> wrote:
> 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.

You will still not have a panel dataset, and that makes sense since a
panel means that you opserve the same persons multiple times. If you
don't do that then you'll never get a panel dataset.


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   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