Bookmark and Share

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]

st: How to genrate a variable containing some values of other variable


From   Alberto R Osella <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: How to genrate a variable containing some values of other variable
Date   Thu, 05 May 2011 14:50:59 +0200

Dear Statalisters,

I'm workin with Stata 11.2 on Windows and have the following problem:

I has a variable which takes on values from 1 to 301 and I want to generate a new variable which should take on the following values 1,6,11,...,305 (1(5)305).

So if anyone could point me in the right direction I'd be very grateful.
Cheers


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

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index