Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Random sample panel data
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Random sample panel data
Date
Fri, 20 Apr 2012 23:48:51 +0100
You can help yourself. The Statalist FAQ advises at
http://www.stata.com/support/faqs/res/statalist.html#before
"search can tell you about all built-in Stata commands, all ado-files
published in the Stata Technical Bulletin or the Stata Journal, and
all FAQs on the Stata website, www.stata.com."
Here you are:
FAQ . . . . . . . . . . . . . . . . . . Sampling clusters, not individuals
. . . . . . . . . . . . . . . . . . . . . . N. J. Cox and S. Merryman
5/06 How can I sample clusters, not individuals?
http://www.stata.com/support/faqs/data/sampleby.html
On Fri, Apr 20, 2012 at 9:55 PM, Caliph Omar Moumin
<[email protected]> wrote:
> I am having difficult in selecting suitable sample from a stata dataset with multiple observations per Id variable. The data is many as 27000 observations. But there are many id variable with multiple observation, and more than 15 variables, for example if variable var1 is the id variable and it has observation “A” which is repeated 10 times, I want a random selection which if it selects observation "A" in var1, then it selects all observations of “ A”, not only once, but 10 times in this case.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/