Oops! I should offer up a correction to one part of my solution to Krishna
Rao's question:
To -generate- a continuous variable running from 1-100 (_not_ 0-100), it
is not:
> . g y=uniform()*100
but, of course
. g y=ceil(uniform()*100)
Changing -ceil- to -floor- gives a variable running from 0-99. I wasn't
able to -generate- a variable running from 0-100 in the short amount of
time I gave myself, but I hope the solution I gave _as a whole_ ought to
suffice.
CLIVE NICHOLAS |t: 0(044)7903 397793
Politics |e: [email protected]
Newcastle University |http://www.ncl.ac.uk/geps
*
* 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/