Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: programming question


From   "Banya, Winston" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: programming question
Date   Mon, 3 Nov 2003 11:47:31 -0000

Dear All,

Can someone pleases show me the command if any that randomly allocates 2
treatments for example to say 10 people. I need to assign 2 treatments A and
B to 10 people in equal numbers.

I was wondering that if the first line is 

set obs 10, then what will follow for the random allocation?

Kind regards

Winston Banya
Statistician
Care of The Elderly Section
Imperial College Faculty of Medicine
Hamersmith Hospital Campus
Du Cane Road
London W12 0NN

Tel: (+44) 0208 383 4284
Fax: (+44) 0208 383 3378
Email: [email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index