Bookmark and Share

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: drawing two stage random samples


From   Shehzad Ali <[email protected]>
To   Stata List <[email protected]>
Subject   st: drawing two stage random samples
Date   Tue, 29 May 2012 12:34:59 +0100 (BST)

Hi listers,

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.

Any advice would be appreciated.

Many thanks
Shehzad

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index