Statalist The Stata Listserver


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

Re: st: Getting a random sample from panel data


From   "Stas Kolenikov" <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Getting a random sample from panel data
Date   Wed, 10 May 2006 14:57:26 -0500

you should be able to tweak -sample- with -cluster- option for your
purposes. It selects the whole cluster, in your case, the whole panel.

On 5/10/06, Christer Thrane <ch-thran@online.no> wrote:
Hi,

In my panel data (one observation per year), the variable lpnr identifies
persons and the variable aar identifies panels.

I wish to obtain a 10% probability sample that is representative in terms of
persons (lpnr). But if the person is selected, I want to follow him or her
throughout the panels (aar).

Findit "random sample" did not help me, though.

Any help is appriciated.

Best regards,

Christer Thrane
Lillehammer University College
Norway


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


--
Stas Kolenikov
http://stas.kolenikov.name

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index