Statalist


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

st: RE: Create a normalized variable


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

Line for the server...

Not sure about the "rank" thing, but

***********
clear*
set obs 1063
g var=8*runiform()
g normvar=var/8
***********

HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, November 20, 2008 3:52 PM
To: [email protected]
Subject: st: Create a normalized variable

Dear Statalist,
I need to create a normalized variable between 0 and 1 starting from
another variable of 1063 observations with ranks between 0 and 8, could
you please help me?
Regards,
Alejandra Molina

*
*   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/

*
*   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