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: problem with bsample


From   Woolton Lee <[email protected]>
To   statalist <[email protected]>
Subject   st: problem with bsample
Date   Thu, 15 Apr 2010 11:12:36 -0400

I am having an odd problem with STATA's bsample command.  I have a
discharge dataset where each row of the dataset represents a patient
zip code hospital zip code combination.  In other words patients from
one zip code that were admitted to a hospital in the hospital zip
code.  Some patient zip codes fall into a treatment group (tx = 1) and
some which fall in a comparison group (tx = 0).  We are using the
following command (essentially)

bsample , strata(tx) cluster(patzip)

this stratifies the sampling by treatment and control group and
clusters the draws by patient zip code.  However, for one of our CA
markets we are finding that the bsample obtains a draw that contains
no observations from the treatment group - (which given the command
above doesn't make any sense).  This particular market has roughly 95%
of its observations in the comparison group and 5% of observations in
the treatment group.  But given that bsample is supposed to be drawing
its samples stratified by treatment/comparison group this still should
not happen.  Has anyone seen this before?  If so, do you have any
ideas how to handle it?

Thanks for your help,

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