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

st: RE: re: rescaling variables


From   "Jonathan" <[email protected]>
To   <[email protected]>
Subject   st: RE: re: rescaling variables
Date   Sat, 9 Jul 2005 13:47:58 +0100

Thanks kit! : - ]

-----Mensaje original-----
De: [email protected]
[mailto:[email protected]] En nombre de Kit Baum
Enviado el: Saturday, July 09, 2005 1:46 PM
Para: [email protected]
Asunto: st: re: rescaling variables

As your 7th grade algebra teacher probably told you,

z = x/2 + 5  will take x {-10,10} into the range {0, 10}.

set obs 21
g x = -11 + _n
g z = x/2 + 5
list

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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