Well, which -version- do you use? Probably not 10.1. In other versions, just
say -uniform()- instead of -runiform()-...
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Thursday, November 20, 2008 4:23 PM
To: [email protected]
Subject: st: RE: Create a normalized variable
Should be more clear to say "values" between 0 and 8, sorry...
Not sure about the "rank" thing, but
***********
clear*
set obs 1063
g var=8*runiform()
g normvar=var/8
***********
I did
g rank=8*runiform(capscore) but I obtained:
Unknown function runiform()
What is it wrong?
Thanks again
*
* 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/