Statalist


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

st: RE: RE: Create a normalized variable


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: mmolina@uniroma3.it [mailto:mmolina@uniroma3.it] 
Sent: Thursday, November 20, 2008 4:23 PM
To: martin.weiss1@gmx.de
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index