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

RE: st: Keeping values in multiple variables


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Keeping values in multiple variables
Date   Thu, 9 Jun 2005 21:30:52 +0100

In at least some languages the left-leaning 
` is called grave, not acute. 

Nick 
[email protected] 

Rafal Raciborski
 
> It is not 'k' but `k'.  Note that the opening quote is an 
> acute quotation mark
> (usually found under the escape key together with the tilde).
> rafal
 
[email protected]

> > Thank you for the tip, but it's stating that 'k' is an 
> invalid name, although
> > it is defined.  If you have any more ideas I would love to see them.

Felipe Salazar <[email protected]>:

> > > If I understand correctly, you have 204 variables named 
> mon1 mon2 mon3
> > > ... mon204. I would type:
> > >
> > > local k=1
> > > while `k'<=204 {
> > >    keep if mon`k'=="3"
> > >    local ++k

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