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

st: RE: RE: Create a normalized variable

From   "Martin Weiss" <>
To   <>
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()-...


-----Original Message-----
From: [] 
Sent: Thursday, November 20, 2008 4:23 PM
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

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:

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