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

-- kohler@wz-berlin.de +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/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?