Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: Create a normalized variable


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Create a normalized variable
Date   Thu, 20 Nov 2008 16:26:35 +0100

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/



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