Not quite sure what the problem is ("relate"?) BTW, I just noticed that you
entered "capscore" into the brackets after runiform(). Maybe that frustrated
your earlier attempts. These brackets are not meant to pass anything to the
function, just leave them empty...
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Thursday, November 20, 2008 4:56 PM
To: Martin Weiss
Subject: RE: RE: Create a normalized variable
Perfect...with uniform....
But I still have a problem: I created a normalized variable from 0 to 1
(with the suggested commands) but I could not relate it with the variable
I was interested in.
I mean, I should work with variable's values from 1 to 8 and generate a
new normalized variable from o to 1.
Thanks again
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/