Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: drawing two stage random samples

From   Shehzad Ali <>
To   Stata List <>
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

*   For searches and help try:

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