Statalist


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

st: RE: Create a normalized variable


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