Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: ? loop [correction]


From   "Ganesh, Saravana" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: ? loop [correction]
Date   Wed, 15 Oct 2003 15:45:53 +0100

I am not quite clear as what that extra space does as the results seem to be the same?
Ganesh

-----Original Message-----
From: Nick Cox [mailto:[email protected]]
Sent: Wednesday, October 15, 2003 3:35 PM
To: [email protected]
Subject: st: RE: RE: ? loop [correction] 


Correction below.

Nick 
[email protected] 

> If you want to keep track of which are used, 
> 
> gen therapies = "" 
> foreach v of var cya aza pred2 okt_p mmf tli { 
> 	replace therapies = therapies + "`v'" if `v' == 2 
> } 
> 
> tab therapies 

An extra space would help, i.e. "`v' " 
 

*
*   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/
This e-mail and any attached files are confidential and are intended
solely for the use of the individual or entity to whom they are
addressed.

This communication represents the originators personal views and
opinions, which do not necessarily reflect those of The Royal College of
Surgeons of England.

If you are not the intended recipient, or the person responsible for
delivering the e-mail to the intended recipient, be advised that you
have received this e-mail in error, and that any use, dissemination,
forwarding, printing or copying of this e-mail is strictly prohibited.

http://www.rcseng.ac.uk

Registered Charity Number: 212808


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