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: Re: st: Re: st: Re: st: syntax : keep variables listed in ìf'


From   SCHOUMAKER Bruno <[email protected]>
To   [email protected]
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

[email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index