Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: standardizing on [0,1]

From   "Chevalier,A" <>
To   <>
Subject   st: RE: standardizing on [0,1]
Date   Fri, 19 Jul 2002 17:57:43 +0100

the following should do the trick,
su var
gen nvar=(var-r(mean))/r(sd)
if you have more than one variable, it's easy enough to write a small programme doing it (even my students managed the feast).

	-----Original Message----- 
	From: Moliterno, Thomas [] 
	Sent: Fri 19/07/2002 17:48 
	Subject: st: standardizing on [0,1]

	I have a variable with values ranging from -1.58e-6 to 946515 (annual
	scores on a particular matrix derived measure).  I would like to
	standardize these values on [0,1] so that the observation with the
	highest value is given the value 1.  Any thoughts on an efficient way to
	do this?  Thanks to all in advance.
	Thomas P. Moliterno
	Graduate School of Management
	University of California, Irvine
	*   For searches and help try:


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