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

Re: st: regression models with small number of clusters


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: regression models with small number of clusters
Date   Sat, 8 Jan 2005 03:49:52 -0000 (GMT)

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/



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