gen split = runiform()>.33
or a variation thereof to make sure you have exactly a third of
observations in the desired group
On Sun, Apr 12, 2009 at 4:48 PM, Galina Hayes <[email protected]> wrote:
> Hello everyone,
> I want to randomly split a data set of 800 or so observations into two groups, with 1/3rd of observations in the first group and 2/3rds in the second group, and am blanking on how to do this. Can anyone help?
> Thanks,
> Galina
> *
> * 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/
>
*
* 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/