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]
st: RE: drawing two stage random samples
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: drawing two stage random samples
Date
Tue, 29 May 2012 13:00:35 +0100
The only apparent non-standard detail here is sampling physicians first,
i.e. selecting clusters first, then individuals.
On that there is an existing FAQ which -search sample, faq- points to.
Some other references are added here.
FAQ . . . . . . . . . . . . . . How can I draw a random sample of my data?
. . . . . . . . . . . . . . . . . . UCLA Academic Technology Services
7/08 http://www.ats.ucla.edu/stat/stata/faq/sample.htm
FAQ . . . . . . . . . . . . . . . . . Random samples from existing dataset
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
7/09 How can I take random samples from an existing dataset?
http://www.stata.com/support/faqs/stat/sampling.html
FAQ . . . . . . . . . . . . . . . . . . Sampling clusters, not individuals
. . . . . . . . . . . . . . . . . . . . . . N. J. Cox and S. Merryman
7/11 How can I sample clusters, not individuals?
http://www.stata.com/support/faqs/data/sampleby.html
Example . . . . . . . . . . . Textbook examples: Sampling: Design and Analysis
. . . . . . . . . . . . . . . . . . UCLA Academic Technology Services
4/05 examples from the book Sampling: Design and
Analysis by Sharon L. Lohr
http://www.ats.ucla.edu/stat/stata/examples/lohr/
The FAQ does recommend using -search- before you mail the list.
Nick
[email protected]
Shehzad Ali
I am looking to draw a random sample from my dataset that has nested levels, i.e. patients (pt_id) nested within physicians (doc-id). I would like to randomly sample physicians (say 20%) and then randomly sample patients (say 20%) from the randomly selected physicians. The data is in long form with unique pt_id that are nested within doc_id.
*
* 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/