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

Re: st: RE: RE: Random numbers and egen cut()

From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: Random numbers and egen cut()
Date   Thu, 06 Jan 2005 12:29:00 -0500

At 09:03 AM 1/6/2005 -0800, Wallace, John wrote:
Thanks Nick, that worked nicely.  Do you know why didn't -egen
cut(),group()- produce similar results?  I thought when you specifed
group it would bin the -cut()- values into -group()- sets of equal size.
I thought perhaps there might be a problem with ties, but it seems
unlikely since the random values are floats.
Not sure - but you did get groups of equal size -- 300 in group 0, 300 in group 1, etc. However, you wanted them to be equal sized within each block, and your programming did not accomplish that.

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal):
WWW (department):

* For searches and help try:

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