Stata: Data Analysis and Statistical Software
Bookmark and Share


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

st: Drawing a random sample with constrains


From   Frauke Rudolf <FRAUKE.RUDOLF@ki.au.dk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Drawing a random sample with constrains
Date   Mon, 26 Nov 2012 13:55:33 +0000

Hi!
I would like to split a dataset of 1259 individuals in two (randomly), but with the constraint that there should be an equal number of unfavorable outcomes in each and 10
outcome events per independent variable (there are 11). Is that possible? And if yes, how?
Thank you in advance,
Frauke

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index