Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: How to create a new variable ...
From
Alberto R Osella <[email protected]>
To
[email protected]
Subject
Re: st: How to create a new variable ...
Date
Thu, 05 May 2011 20:44:29 +0200
Thank you Nick!!
Alberto R. Osella, MD, PhD
Laboratorio di Epidemiologia e Biostatistica
IRCCS Saverio de Bellis
Via Turi, 27
70013 Castellana Grotte (BA)
Italia
Tel: +39 0804994655
Fax: +39 0804994650
e-mail: [email protected]
Il 05/05/2011 20:27, Nick Cox ha scritto:
gen newvar = cond(mod(oldvar, 5) == 0, 5, mod(oldvar, 5))
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/