Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Transformation


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: Transformation
Date   Thu, 05 Oct 2006 16:00:41 -0400

gen newvar = oldvar + 1

?


I am trying to transform a variable taking values from 0 to 6 to another ranging from 1 to 7. Can someone provide me with the formula for doing this transformation?


*
*   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