Statalist The Stata Listserver


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

Re: st: Transformation


From   <suryadipta.roy@lawrence.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Transformation
Date   Thu, 05 Oct 2006 15:16:46 -0500

Jeff,

Thanks so much! It looks so trivial when the answer is given!

Suryadipta.

On Thu, 05 Oct 2006 16:00:41 -0400
Jeph Herrin <junk@spandrel.net> wrote:

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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index