Statalist The Stata Listserver


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

st: RE: Problem with local variable


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Problem with local variable
Date   Sun, 18 Mar 2007 18:31:09 -0000

Still wrong! The problem is with a local macro. 

Nick 
n.j.cox@durham.ac.uk 

Jean Bouyer
 
> Oops, sorry, the last mail had a wrong title...
> 

> In a loop, I use a local integer variable x that goes from 1 to k. In 
> some commands within the loop, I need using the value x-1. I succeed 
> in creating another local variable : local x1=`x'-1. But I wonder why 
> it didn't work when I used directly ``x'-1'. What is wrong in this 
> syntax ?

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