Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index