Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: st: Re: st: Re: st: syntax : keep variables listed in ìf'


From   SCHOUMAKER Bruno <bruno.schoumaker@uclouvain.be>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: st: Re: st: Re: st: syntax : keep variables listed in ìf'
Date   Tue, 13 Jul 2010 11:07:19 +0200

Marteen, Steve,

Thanks A LOT.

It works perfectly, and is much shorter than what I was thinking of ...

Indeed, a space is needed after the operators when the right hand side of the condition includes a variable name.

Bruno

Le 13/07/2010 11:01, Steve Samuels a écrit :
That should have been
"if foo>rep78"

Steve

Maarten, I think you need to add a space after each operator, or something like

"foo if mpg>rep78"

will fail.
*
*   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/


--
Bruno SCHOUMAKER

Centre de recherche en démographie et sociétés
Université catholique de Louvain
1-17 PLace Montesquieu
1348 Louvain-la-Neuve
BELGIUM

Tel. +32 10 474136
Fax. +32 10 472952

bruno.schoumaker@uclouvain.be
www.uclouvain.be/demo

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index