I am not clear what Stas has in mind here.
As far as I can see the official -sample-
command has no -cluster()- option.
However, this question arose quite recently
on Statalist. Scott Merryman and I put our answers together as
an FAQ:
How can I sample clusters, not individuals?
http://www.stata.com/support/faqs/data/sampleby.html
The Statalist FAQ does advise you to look at the FAQs
before posting.
Nick
[email protected]
Stas Kolenikov
> you should be able to tweak -sample- with -cluster- option for your
> purposes. It selects the whole cluster, in your case, the whole panel.
Christer Thrane
> > 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.
*
* 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/