Thursday, March 09, 2006
Re: st: Rescaling variable
Cornelia Schmidt wrote: > I would like to rescale a variable from (-10 to 10) to (0-10). Does anybody > know how this works?
. gen newvar = (oldvar + 10)/20 * 10
-- email@example.com +49 (030) 25491-361 * * 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/
Links to this post: